Changeset 65513 in webkit


Ignore:
Timestamp:
Aug 17, 2010 10:13:22 AM (14 years ago)
Author:
steveblock@google.com
Message:

2010-08-17 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

[Qt] fast/dom/Geolocation/disconnected-frame-permission-denied.html fails
https://bugs.webkit.org/show_bug.cgi?id=44059

  • fast/dom/Geolocation/disconnected-frame-permission-denied-expected.txt:
  • fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js: (onIframeLoaded): ():
  • platform/chromium/test_expectations.txt:
  • platform/qt/Skipped:
Location:
trunk/LayoutTests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r65511 r65513  
     12010-08-17  Steve Block  <steveblock@google.com>
     2
     3        Reviewed by Jeremy Orlow.
     4
     5        [Qt] fast/dom/Geolocation/disconnected-frame-permission-denied.html fails
     6        https://bugs.webkit.org/show_bug.cgi?id=44059
     7
     8        * fast/dom/Geolocation/disconnected-frame-permission-denied-expected.txt:
     9        * fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js:
     10        (onIframeLoaded):
     11        ():
     12        * platform/chromium/test_expectations.txt:
     13        * platform/qt/Skipped:
     14
    1152010-08-17  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
    216
  • trunk/LayoutTests/fast/dom/Geolocation/disconnected-frame-permission-denied-expected.txt

    r65416 r65513  
    77PASS error.code is error.PERMISSION_DENIED
    88PASS error.message is "User denied Geolocation"
     9
     10PASS error.code is error.PERMISSION_DENIED
     11PASS error.message is "User denied Geolocation"
     12
    913PASS successfullyParsed is true
    1014
  • trunk/LayoutTests/fast/dom/Geolocation/script-tests/disconnected-frame-permission-denied.js

    r65416 r65513  
    11description("Tests that when a request is made on a Geolocation object, permission is denied and its Frame is disconnected before a callback is made, the error callback is invoked with PERMISSION_DENIED.");
    22
    3 if (window.layoutTestController)
     3// Prime the Geolocation instance by denying permission. This makes sure that we execute the
     4// same code path for both preemptive and non-preemtive permissions policies.
     5if (window.layoutTestController) {
    46    layoutTestController.setGeolocationPermission(false);
     7    layoutTestController.setMockGeolocationPosition(51.478, -0.166, 100);
     8} else
     9    debug('This test can not be run without the LayoutTestController');
    510
     11var error;
    612function onIframeLoaded() {
    713    iframeGeolocation = iframe.contentWindow.navigator.geolocation;
    8     iframe.src = 'data:text/html,This frame should be visible when the test completes';
     14    iframeGeolocation.getCurrentPosition(function() {
     15        testFailed('Success callback invoked unexpectedly');
     16        finishJSTest();
     17    }, function(e) {
     18        error = e;
     19        shouldBe('error.code', 'error.PERMISSION_DENIED');
     20        shouldBe('error.message', '"User denied Geolocation"');
     21        debug('');
     22        iframe.src = 'data:text/html,This frame should be visible when the test completes';
     23    });
    924}
    1025
    11 var error;
    1226function onIframeUnloaded() {
     27    // Make another request, with permission already denied.
    1328    iframeGeolocation.getCurrentPosition(function () {
    1429        testFailed('Success callback invoked unexpectedly');
     
    1833        shouldBe('error.code', 'error.PERMISSION_DENIED');
    1934        shouldBe('error.message', '"User denied Geolocation"');
     35        debug('');
    2036        finishJSTest();
    2137    });
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r65483 r65513  
    32003200BUGWK44051 : editing/pasteboard/drop-text-events.html = TEXT
    32013201
    3202 // Due to http://trac.webkit.org/changeset/65416
    3203 BUGWK44059 : fast/dom/Geolocation/disconnected-frame-permission-denied.html = FAIL
    3204 
    32053202// Probably http://trac.webkit.org/changeset/65381
    32063203// This test causes the next one to run to ASSERT
  • trunk/LayoutTests/platform/qt/Skipped

    r65511 r65513  
    54905490# BlodBuilder is not enabled
    54915491http/tests/local/blob/send-data-blob.html
    5492 
    5493 # [Qt] fast/dom/Geolocation/disconnected-frame-permission-denied.html fails
    5494 # https://bugs.webkit.org/show_bug.cgi?id=44059
    5495 fast/dom/Geolocation/disconnected-frame-permission-denied.html
Note: See TracChangeset for help on using the changeset viewer.