Changeset 61599 in webkit


Ignore:
Timestamp:
Jun 21, 2010 9:24:02 PM (14 years ago)
Author:
dimich@chromium.org
Message:

DumpRenderTree should allow tests with modal dialogs
https://bugs.webkit.org/show_bug.cgi?id=35350

Patch by Prasad Tammana <prasadt@chromium.org> on 2010-06-21
Reviewed by Darin Adler, Dmitry Titov.

WebKitTools:

  • DumpRenderTree/LayoutTestController.cpp:

(abortModalCallback):
(LayoutTestController::staticFunctions):

  • DumpRenderTree/LayoutTestController.h:
  • DumpRenderTree/mac/LayoutTestControllerMac.mm:

(LayoutTestController::abortModal):
Add abortModal method to LayoutTestController and make it available from script.

  • DumpRenderTree/mac/UIDelegate.mm: Add support for showModalDialog.

(-[UIDelegate modalWindowWillClose:]): Observer for NSWindowWillCloseNotifications to call
abortModal from when modal window closes.
(-[UIDelegate webViewRunModal:]): Delegate method for showModalDialog to run the modal loop.

LayoutTests:

Added a new test show-modal-dialog.html to harness tests to verify that showModalDialog works.

Added a new test, show-modal-dialog-onblur-onfocus.html, that takes advantage of the showModalDialog
functionality added to UIDelegate.mm. The test is only enabled on mac for now. This test will catch
regressions on the bug fix for https://bugs.webkit.org/show_bug.cgi?id=33962.

Support for showModalDialog affected the expected output for many tests that operate under the assumption
that the method is undefined. Modified the tests accordingly, in some cases disabled showModalDialog (not
currently tested anyway. Opened a bug to add showModalDialog specific tests where appropriate - Bug# 39897.

  • fast/dom/Window/window-function-frame-getter-precedence-expected.txt:
  • fast/dom/Window/window-function-frame-getter-precedence.html:
  • fast/dom/Window/window-function-name-getter-precedence-expected.txt:
  • fast/dom/Window/window-function-name-getter-precedence.html:
  • fast/dom/Window/window-lookup-precedence-expected.txt:
  • fast/dom/Window/window-lookup-precedence.html:
  • fast/dom/Window/window-properties-expected.txt:
  • fast/dom/Window/window-properties.html:
  • fast/dom/script-tests/prototype-inheritance.js:

Tweak tests so that showModalDialog part gets exercised only if its defined to keep output consistent across platforms.
Where its not possible, skip the test for showModalDialog, which is not currently exercised anyway.

  • fast/events/resources/modal-dialog.html: Added.
  • fast/events/show-modal-dialog-onblur-onfocus-expected.txt: Added.
  • fast/events/show-modal-dialog-onblur-onfocus.html: Added.
  • fast/harness/resources/modal-dialog.html: Added.
  • fast/harness/show-modal-dialog-expected.txt: Added.
  • fast/harness/show-modal-dialog.html: Added.

New tests that take advantage of showModalDialog in DRT.

  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8-expected.txt:
  • fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9-expected.txt:

Update the expected output to reflect the fact that these tests pass now. Skip the tests on gtk, qt and win. They were all expected
to fail anyway. So no coverage lost.

  • http/tests/security/cross-frame-access-call-expected.txt:
  • http/tests/security/cross-frame-access-call.html:
  • http/tests/security/cross-frame-access-get-expected.txt:
  • http/tests/security/cross-frame-access-get.html:
  • http/tests/security/cross-frame-access-put-expected.txt:

Skip showModalDialog to make test pass for all platforms. Added a FIXME with bug # to add a test specifically for showModalDialog.

  • http/tests/security/resources/cross-frame-iframe-for-put-test.html:
  • platform/chromium-mac/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
  • platform/chromium-mac/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
  • platform/chromium-mac/http/tests/security/cross-frame-access-get-expected.txt:
  • platform/chromium-win/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
  • platform/chromium-win/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
  • platform/chromium-win/fast/dom/Window/window-lookup-precedence-expected.txt:
  • platform/chromium-win/http/tests/security/cross-frame-access-get-expected.txt:
  • platform/chromium-win/http/tests/security/cross-frame-access-put-expected.txt:
  • platform/chromium/http/tests/security/cross-frame-access-call-expected.txt:
  • platform/chromium/test_expectations.txt:
  • platform/gtk/Skipped:
  • platform/qt/Skipped:
  • platform/qt/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
  • platform/qt/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
  • platform/qt/fast/dom/Window/window-lookup-precedence-expected.txt: Removed.

Updaate expected output to reflect test changes. Removed some platform specific files where the only reason they're different is
because of showModalDialog.

  • platform/qt/http/tests/security/cross-frame-access-call-expected.txt:
  • platform/qt/http/tests/security/cross-frame-access-get-expected.txt:
  • platform/win/Skipped:

Skip failing tests. Note that there is no test functionality lost. These are either new tests or tests that were dysfunctional anyway
in the absence of showModalDialog in DRT.

Location:
trunk
Files:
6 added
7 deleted
54 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r61595 r61599  
     12010-06-21  Prasad Tammana  <prasadt@chromium.org>
     2
     3        Reviewed by Darin Adler, Dmitry Titov.
     4
     5        DumpRenderTree should allow tests with modal dialogs
     6        https://bugs.webkit.org/show_bug.cgi?id=35350
     7
     8        Added a new test show-modal-dialog.html to harness tests to verify that showModalDialog works.
     9
     10        Added a new test, show-modal-dialog-onblur-onfocus.html, that takes advantage of the showModalDialog
     11        functionality added to UIDelegate.mm.  The test is only enabled on mac for now.  This test will catch
     12        regressions on the bug fix for https://bugs.webkit.org/show_bug.cgi?id=33962.
     13
     14        Support for showModalDialog affected the expected output for many tests that operate under the assumption
     15        that the method is undefined.  Modified the tests accordingly, in some cases disabled showModalDialog (not
     16        currently tested anyway.  Opened a bug to add showModalDialog specific tests where appropriate - Bug# 39897.
     17
     18        * fast/dom/Window/window-function-frame-getter-precedence-expected.txt:
     19        * fast/dom/Window/window-function-frame-getter-precedence.html:
     20        * fast/dom/Window/window-function-name-getter-precedence-expected.txt:
     21        * fast/dom/Window/window-function-name-getter-precedence.html:
     22        * fast/dom/Window/window-lookup-precedence-expected.txt:
     23        * fast/dom/Window/window-lookup-precedence.html:
     24        * fast/dom/Window/window-properties-expected.txt:
     25        * fast/dom/Window/window-properties.html:
     26        * fast/dom/script-tests/prototype-inheritance.js:
     27        Tweak tests so that showModalDialog part gets exercised only if its defined to keep output consistent across platforms.
     28        Where its not possible, skip the test for showModalDialog, which is not currently exercised anyway.
     29
     30        * fast/events/resources/modal-dialog.html: Added.
     31        * fast/events/show-modal-dialog-onblur-onfocus-expected.txt: Added.
     32        * fast/events/show-modal-dialog-onblur-onfocus.html: Added.
     33        * fast/harness/resources/modal-dialog.html: Added.
     34        * fast/harness/show-modal-dialog-expected.txt: Added.
     35        * fast/harness/show-modal-dialog.html: Added.
     36        New tests that take advantage of showModalDialog in DRT.
     37
     38        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1-expected.txt:
     39        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10-expected.txt:
     40        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11-expected.txt:
     41        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2-expected.txt:
     42        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3-expected.txt:
     43        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4-expected.txt:
     44        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5-expected.txt:
     45        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6-expected.txt:
     46        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7-expected.txt:
     47        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8-expected.txt:
     48        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9-expected.txt:
     49        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1-expected.txt:
     50        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10-expected.txt:
     51        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11-expected.txt:
     52        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2-expected.txt:
     53        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3-expected.txt:
     54        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4-expected.txt:
     55        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5-expected.txt:
     56        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6-expected.txt:
     57        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7-expected.txt:
     58        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8-expected.txt:
     59        * fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9-expected.txt:
     60        Update the expected output to reflect the fact that these tests pass now.  Skip the tests on gtk, qt and win.  They were all expected
     61        to fail anyway.  So no coverage lost.
     62
     63        * http/tests/security/cross-frame-access-call-expected.txt:
     64        * http/tests/security/cross-frame-access-call.html:
     65        * http/tests/security/cross-frame-access-get-expected.txt:
     66        * http/tests/security/cross-frame-access-get.html:
     67        * http/tests/security/cross-frame-access-put-expected.txt:
     68        Skip showModalDialog to make test pass for all platforms.  Added a FIXME with bug # to add a test specifically for showModalDialog.
     69
     70        * http/tests/security/resources/cross-frame-iframe-for-put-test.html:
     71        * platform/chromium-mac/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
     72        * platform/chromium-mac/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
     73        * platform/chromium-mac/http/tests/security/cross-frame-access-get-expected.txt:
     74        * platform/chromium-win/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
     75        * platform/chromium-win/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
     76        * platform/chromium-win/fast/dom/Window/window-lookup-precedence-expected.txt:
     77        * platform/chromium-win/http/tests/security/cross-frame-access-get-expected.txt:
     78        * platform/chromium-win/http/tests/security/cross-frame-access-put-expected.txt:
     79        * platform/chromium/http/tests/security/cross-frame-access-call-expected.txt:
     80        * platform/chromium/test_expectations.txt:
     81        * platform/gtk/Skipped:
     82        * platform/qt/Skipped:
     83        * platform/qt/fast/dom/Window/window-function-frame-getter-precedence-expected.txt: Removed.
     84        * platform/qt/fast/dom/Window/window-function-name-getter-precedence-expected.txt: Removed.
     85        * platform/qt/fast/dom/Window/window-lookup-precedence-expected.txt: Removed.
     86        Updaate expected output to reflect test changes.  Removed some platform specific files where the only reason they're different is
     87        because of showModalDialog.
     88
     89        * platform/qt/http/tests/security/cross-frame-access-call-expected.txt:
     90        * platform/qt/http/tests/security/cross-frame-access-get-expected.txt:
     91        * platform/win/Skipped:
     92        Skip failing tests.  Note that there is no test functionality lost.  These are either new tests or tests that were dysfunctional anyway
     93        in the absence of showModalDialog in DRT.
     94
    1952010-06-21  Chris Fleizach  <cfleizach@apple.com>
    296
  • trunk/LayoutTests/fast/dom/Window/window-function-frame-getter-precedence-expected.txt

    r61564 r61599  
    3131PASS: typeof window.addEventListener should be object and is.
    3232PASS: typeof window.removeEventListener should be object and is.
    33 FAIL: typeof window.showModalDialog should be object but instead is undefined
    3433PASS: typeof window.captureEvents should be object and is.
    3534PASS: typeof window.releaseEvents should be object and is.
  • trunk/LayoutTests/fast/dom/Window/window-function-frame-getter-precedence.html

    r61564 r61599  
    1717        }
    1818
    19         function shouldBe(a, b)
     19        function shouldBe(a, b, printOnlyOnFailure)
    2020        {
    2121            var evalA;
     
    2525                evalA = e;
    2626            }
    27             if (evalA == b)
    28                 log("PASS: " + a + " should be " + b + " and is.", "green");
    29             else
     27            if (evalA == b) {
     28                if (!printOnlyOnFailure)
     29                    log("PASS: " + a + " should be " + b + " and is.", "green");
     30            } else
    3031                log("FAIL: " + a + " should be " + b + " but instead is " + evalA, "red");
    3132        }
     
    3839            document.body.appendChild(iframe);
    3940
    40             shouldBe("typeof window." + functionName, "object");
     41            // showModalDialog only works on mac in the DRT.  So run this test only if its defined and print output only on failure.
     42            // This'll keep the output consistent on all platforms.
     43            if (functionName == "showModalDialog") {
     44                if (window.showModalDialog != undefined)
     45                    shouldBe("typeof window." + functionName, "object", true);
     46            } else
     47                shouldBe("typeof window." + functionName, "object");
    4148
    4249            document.body.removeChild(iframe);
  • trunk/LayoutTests/fast/dom/Window/window-function-name-getter-precedence-expected.txt

    r61564 r61599  
    3131PASS: typeof window.addEventListener should be function and is.
    3232PASS: typeof window.removeEventListener should be function and is.
    33 FAIL: typeof window.showModalDialog should be function but instead is undefined
    3433PASS: typeof window.captureEvents should be function and is.
    3534PASS: typeof window.releaseEvents should be function and is.
  • trunk/LayoutTests/fast/dom/Window/window-function-name-getter-precedence.html

    r61564 r61599  
    1717        }
    1818
    19         function shouldBe(a, b)
     19        function shouldBe(a, b, printOnlyOnFailure)
    2020        {
    2121            var evalA;
     
    2525                evalA = e;
    2626            }
    27             if (evalA == b)
    28                 log("PASS: " + a + " should be " + b + " and is.", "green");
    29             else
     27            if (evalA == b) {
     28                if (!printOnlyOnFailure)
     29                    log("PASS: " + a + " should be " + b + " and is.", "green");
     30            } else
    3031                log("FAIL: " + a + " should be " + b + " but instead is " + evalA, "red");
    3132        }
     
    3738            document.body.appendChild(element);
    3839
    39             shouldBe("typeof window." + functionName, "function");
     40            // showModalDialog only works on mac in the DRT.  So run this test only if its defined and print output only on failure.
     41            // This'll keep the output consistent on all platforms.
     42            if (functionName == "showModalDialog") {
     43                if (window.showModalDialog != undefined)
     44                    shouldBe("typeof window." + functionName, "function", true);
     45            } else
     46                shouldBe("typeof window." + functionName, "function");
    4047
    4148            document.body.removeChild(element);
  • trunk/LayoutTests/fast/dom/Window/window-lookup-precedence-expected.txt

    r61564 r61599  
    6161PASS 'function setTimeout() {    [native code]}' is 'function setTimeout() {    [native code]}'
    6262PASS 'function setTimeout() {    [native code]}' is 'function setTimeout() {    [native code]}'
    63 FAIL win['showModalDialog'] should be null (of type object). Was undefined (of type undefined).
    64 FAIL win['showModalDialog'] should be null (of type object). Was undefined (of type undefined).
    6563PASS 'function stop() {    [native code]}' is 'function stop() {    [native code]}'
    6664PASS 'function stop() {    [native code]}' is 'function stop() {    [native code]}'
  • trunk/LayoutTests/fast/dom/Window/window-lookup-precedence.html

    r61564 r61599  
    3939    var name = prop[0];
    4040    var original = win[name];
     41    // showModalDialog is not currently implemented in DumpRenderTree for all platforms.
     42    if (name == "showModalDialog")
     43      return;
    4144    // Check subframe precedence.
    4245    try {
  • trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt

    r61586 r61599  
    22642264window.setInterval [function]
    22652265window.setTimeout [function]
    2266 window.showModalDialog [undefined]
    22672266window.status [string]
    22682267window.statusbar [object BarInfo]
  • trunk/LayoutTests/fast/dom/Window/window-properties.html

    r61564 r61599  
    8484    "window.FileError" : 1,
    8585    "window.FileReader" : 1,
    86     "window.ondeviceorientation" : 1
     86    "window.ondeviceorientation" : 1,
     87
     88    // showModalDialog is not implemented on all platforms in DumpRenderTree.
     89    "window.showModalDialog" : 1
    8790};
    8891
  • trunk/LayoutTests/fast/dom/script-tests/prototype-inheritance.js

    r61564 r61599  
    2020    "Int8Array", "Uint8Array", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array",
    2121    "FileError", "FileReader",
    22     "indexedDB"
     22    "indexedDB", "showModalDialog"
    2323];
    2424
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T1
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T10
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T11
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T2
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T3
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T4
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T5
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T6
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T7
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T8
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9-expected.txt

    r61564 r61599  
    11S10.2.2_A1.1_T9
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T1
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T10
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T11
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T2
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T3
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T4
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T5
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T6
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T7
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T8
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9-expected.txt

    r61564 r61599  
    11S10.2.2_A1.2_T9
    22
    3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context
     3PASS
    44
    55TEST COMPLETE
  • trunk/LayoutTests/http/tests/security/cross-frame-access-call-expected.txt

    r61564 r61599  
    8383PASS: window.resizeBy.call(targetWindow, 0, 0); should be 'undefined' and is.
    8484PASS: window.resizeTo.call(targetWindow, 0, 0); should be 'undefined' and is.
    85 PASS: window.showModalDialog.call(targetWindow); should be 'TypeError: Result of expression 'window.showModalDialog' [undefined] is not an object.' and is.
    8685PASS: window.location.toString.call(targetWindow.location) should be 'undefined' and is.
    8786
  • trunk/LayoutTests/http/tests/security/cross-frame-access-call.html

    r61564 r61599  
    5656    shouldBe("window.resizeTo.call(targetWindow, 0, 0);", "undefined");
    5757
     58    // FIXME:  showModalDialog now works on DRT and thus breaks this test.  Will uncomment after adding a separate test for Mac for showModalDialog - Bug #39897
    5859    // Throws a TypeError and logs to the error console
    59     shouldBe("window.showModalDialog.call(targetWindow);", '"TypeError: Result of expression \'window.showModalDialog\' [undefined] is not an object."');
     60    // shouldBe("window.showModalDialog.call(targetWindow);", '"TypeError: Result of expression \'window.showModalDialog\' [undefined] is not an object."');
    6061
    6162    // - Tests for the Location object -
  • trunk/LayoutTests/http/tests/security/cross-frame-access-get-expected.txt

    r61564 r61599  
    534534PASS: canGet('targetWindow.setInterval') should be 'false' and is.
    535535PASS: canGet('targetWindow.setTimeout') should be 'false' and is.
    536 PASS: canGet('targetWindow.showModalDialog') should be 'false' and is.
    537536PASS: canGet('targetWindow.stop') should be 'false' and is.
    538537
  • trunk/LayoutTests/http/tests/security/cross-frame-access-get.html

    r61564 r61599  
    133133            "setInterval",
    134134            "setTimeout",
    135             "showModalDialog",
     135            // FIXME: This function is now implemented on mac and hence the expected output changes.  Uncomment after adding a
     136            // mac specific test for showModalDialog.  Bug# 39897
     137            // "showModalDialog",
    136138            "stop"
    137139        ];
  • trunk/LayoutTests/http/tests/security/cross-frame-access-put-expected.txt

    r61564 r61599  
    563563ALERT: PASS: window.setInterval should be 'function setInterval() {    [native code]}' and is.
    564564ALERT: PASS: window.setTimeout should be 'function setTimeout() {    [native code]}' and is.
    565 ALERT: PASS: window.showModalDialog should be 'undefined' and is.
     565ALERT: PASS: window.showModalDialog matched the expected value.
    566566ALERT: PASS: window.stop should be 'function stop() {    [native code]}' and is.
    567567This test checks cross-frame access security of window attribute setters (rdar://problem/5326791).
  • trunk/LayoutTests/http/tests/security/resources/cross-frame-iframe-for-put-test.html

    r61564 r61599  
    460460            shouldBe("window.setInterval", "setIntervalOld");
    461461            shouldBe("window.setTimeout", "setTimeoutOld");
    462             shouldBe("window.showModalDialog", "showModalDialogOld");
     462
     463            // showModalDialog is not implemented on all platforms for DumpRenderTree.  So don't display the values.
     464            shouldBe("window.showModalDialog", "showModalDialogOld", true);
    463465            shouldBe("window.stop", "stopOld");
    464466        }, 0);
  • trunk/LayoutTests/platform/chromium-mac/http/tests/security/cross-frame-access-get-expected.txt

    r56251 r61599  
    1 CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-get.html. Domains, protocols and ports must match.
    2 
    31CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-get.html. Domains, protocols and ports must match.
    42
     
    536534PASS: canGet('targetWindow.setInterval') should be 'false' and is.
    537535PASS: canGet('targetWindow.setTimeout') should be 'false' and is.
    538 PASS: canGet('targetWindow.showModalDialog') should be 'false' and is.
    539536PASS: canGet('targetWindow.stop') should be 'false' and is.
    540537
  • trunk/LayoutTests/platform/chromium-win/fast/dom/Window/window-lookup-precedence-expected.txt

    r56267 r61599  
    6161PASS 'function setTimeout() { [native code] }' is 'function setTimeout() { [native code] }'
    6262PASS 'function setTimeout() { [native code] }' is 'function setTimeout() { [native code] }'
    63 PASS 'function showModalDialog() { [native code] }' is 'function showModalDialog() { [native code] }'
    64 PASS 'function showModalDialog() { [native code] }' is 'function showModalDialog() { [native code] }'
    6563PASS 'function stop() { [native code] }' is 'function stop() { [native code] }'
    6664PASS 'function stop() { [native code] }' is 'function stop() { [native code] }'
  • trunk/LayoutTests/platform/chromium-win/http/tests/security/cross-frame-access-get-expected.txt

    r56271 r61599  
    1 CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-get.html. Domains, protocols and ports must match.
    2 
    31CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-get.html. Domains, protocols and ports must match.
    42
     
    536534PASS: canGet('targetWindow.setInterval') should be 'false' and is.
    537535PASS: canGet('targetWindow.setTimeout') should be 'false' and is.
    538 PASS: canGet('targetWindow.showModalDialog') should be 'false' and is.
    539536PASS: canGet('targetWindow.stop') should be 'false' and is.
    540537
  • trunk/LayoutTests/platform/chromium-win/http/tests/security/cross-frame-access-put-expected.txt

    r56271 r61599  
    571571ALERT: PASS: window.setInterval should be 'function () { [native code] }' and is.
    572572ALERT: PASS: window.setTimeout should be 'function () { [native code] }' and is.
    573 ALERT: PASS: window.showModalDialog should be 'function () { [native code] }' and is.
     573ALERT: PASS: window.showModalDialog matched the expected value.
    574574ALERT: PASS: window.stop should be 'function () { [native code] }' and is.
    575575This test checks cross-frame access security of window attribute setters (rdar://problem/5326791).
  • trunk/LayoutTests/platform/chromium/http/tests/security/cross-frame-access-call-expected.txt

    r59126 r61599  
    1 CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-call.html. Domains, protocols and ports must match.
    2 
    31CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-call.html. Domains, protocols and ports must match.
    42
     
    8583PASS: window.resizeBy.call(targetWindow, 0, 0); should be 'undefined' and is.
    8684PASS: window.resizeTo.call(targetWindow, 0, 0); should be 'undefined' and is.
    87 *** FAIL: window.showModalDialog.call(targetWindow); should be 'TypeError: Result of expression 'window.showModalDialog' [undefined] is not an object.' but instead is undefined. ***
    8885PASS: window.location.toString.call(targetWindow.location) should be 'undefined' and is.
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r61573 r61599  
    28762876BUG47083 : fast/text/hyphenate-character.html = IMAGE+TEXT
    28772877BUG47083 : fast/text/hyphens.html = IMAGE+TEXT
     2878
     2879// Related to https://bugs.webkit.org/show_bug.cgi?id=35350
     2880BUG45048 : fast/events/show-modal-dialog-onblur-onfocus.html = FAIL
     2881BUG45048 : fast/harness/show-modal-dialog.html = FAIL
  • trunk/LayoutTests/platform/gtk/Skipped

    r61586 r61599  
    59005900# https://bugs.webkit.org/show_bug.cgi?id=40859
    59015901media/video-controls-rendering.html
     5902
     5903# https://bugs.webkit.org/show_bug.cgi?id=35350
     5904fast/events/show-modal-dialog-onblur-onfocus.html
     5905fast/harness/show-modal-dialog.html
     5906fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10.html
     5907fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11.html
     5908fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2.html
     5909fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2.html
     5910fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4.html
     5911fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4.html
     5912fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6.html
     5913fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6.html
     5914fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8.html
     5915fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8.html
     5916fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10.html
     5917fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11.html
     5918fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1.html
     5919fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1.html
     5920fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3.html
     5921fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3.html
     5922fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5.html
     5923fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5.html
     5924fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7.html
     5925fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7.html
     5926fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9.html
     5927fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9.html
  • trunk/LayoutTests/platform/qt/Skipped

    r61586 r61599  
    54145414# preloader tests.
    54155415fast/preloader
     5416
     5417# https://bugs.webkit.org/show_bug.cgi?id=35350
     5418fast/events/show-modal-dialog-onblur-onfocus.html
     5419fast/harness/show-modal-dialog.html
     5420fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10.html
     5421fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11.html
     5422fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2.html
     5423fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2.html
     5424fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4.html
     5425fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4.html
     5426fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6.html
     5427fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6.html
     5428fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8.html
     5429fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8.html
     5430fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10.html
     5431fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11.html
     5432fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1.html
     5433fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1.html
     5434fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3.html
     5435fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3.html
     5436fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5.html
     5437fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5.html
     5438fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7.html
     5439fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7.html
     5440fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9.html
     5441fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9.html
  • trunk/LayoutTests/platform/qt/http/tests/security/cross-frame-access-call-expected.txt

    r59122 r61599  
    1 CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-call.html. Domains, protocols and ports must match.
    2 
    31CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-call.html. Domains, protocols and ports must match.
    42
     
    8583PASS: window.resizeBy.call(targetWindow, 0, 0); should be 'undefined' and is.
    8684PASS: window.resizeTo.call(targetWindow, 0, 0); should be 'undefined' and is.
    87 *** FAIL: window.showModalDialog.call(targetWindow); should be 'TypeError: Result of expression 'window.showModalDialog' [undefined] is not an object.' but instead is undefined. ***
    8885PASS: window.location.toString.call(targetWindow.location) should be 'undefined' and is.
    8986
  • trunk/LayoutTests/platform/qt/http/tests/security/cross-frame-access-get-expected.txt

    r54568 r61599  
    1 CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-get.html. Domains, protocols and ports must match.
    2 
    31CONSOLE MESSAGE: line 1: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-get-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-get.html. Domains, protocols and ports must match.
    42
     
    536534PASS: canGet('targetWindow.setInterval') should be 'false' and is.
    537535PASS: canGet('targetWindow.setTimeout') should be 'false' and is.
    538 PASS: canGet('targetWindow.showModalDialog') should be 'false' and is.
    539536PASS: canGet('targetWindow.stop') should be 'false' and is.
    540537
  • trunk/LayoutTests/platform/win/Skipped

    r61586 r61599  
    903903fast/text/hyphenate-character.html
    904904fast/text/hyphens.html
     905
     906# https://bugs.webkit.org/show_bug.cgi?id=35350
     907fast/events/show-modal-dialog-onblur-onfocus.html
     908fast/harness/show-modal-dialog.html
     909fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10.html
     910fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11.html
     911fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2.html
     912fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2.html
     913fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4.html
     914fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4.html
     915fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6.html
     916fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6.html
     917fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8.html
     918fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8.html
     919fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10.html
     920fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11.html
     921fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1.html
     922fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1.html
     923fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3.html
     924fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3.html
     925fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5.html
     926fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5.html
     927fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7.html
     928fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7.html
     929fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9.html
     930fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9.html
  • trunk/WebKitTools/ChangeLog

    r61583 r61599  
     12010-06-21  Prasad Tammana  <prasadt@chromium.org>
     2
     3        Reviewed by Darin Adler, Dmitry Titov.
     4
     5        DumpRenderTree should allow tests with modal dialogs
     6        https://bugs.webkit.org/show_bug.cgi?id=35350
     7
     8        * DumpRenderTree/LayoutTestController.cpp:
     9        (abortModalCallback):
     10        (LayoutTestController::staticFunctions):
     11        * DumpRenderTree/LayoutTestController.h:
     12        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
     13        (LayoutTestController::abortModal):
     14        Add abortModal method to LayoutTestController and make it available from script.
     15
     16        * DumpRenderTree/mac/UIDelegate.mm: Add support for showModalDialog.
     17        (-[UIDelegate modalWindowWillClose:]): Observer for NSWindowWillCloseNotifications to call
     18        abortModal from when modal window closes.
     19        (-[UIDelegate webViewRunModal:]): Delegate method for showModalDialog to run the modal loop.
     20
    1212010-06-21  Simon Fraser  <simon.fraser@apple.com>
    222
  • trunk/WebKitTools/DumpRenderTree/LayoutTestController.cpp

    r61564 r61599  
    14741474}
    14751475
     1476
     1477#if PLATFORM(MAC)
     1478static JSValueRef abortModalCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
     1479{
     1480    LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject));
     1481    controller->abortModal();
     1482    return JSValueMakeUndefined(context);
     1483}
     1484#endif
     1485
    14761486static JSValueRef markerTextForListItemCallback(JSContextRef context, JSObjectRef, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    14771487{
     
    16001610{
    16011611    static JSStaticFunction staticFunctions[] = {
     1612#if PLATFORM(MAC)
     1613        { "abortModal", abortModalCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
     1614#endif
    16021615        { "addDisallowedURL", addDisallowedURLCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    16031616        { "addUserScript", addUserScriptCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
  • trunk/WebKitTools/DumpRenderTree/LayoutTestController.h

    r61564 r61599  
    258258    void setWebViewEditable(bool);
    259259
     260
     261#if PLATFORM(MAC)
     262    void abortModal();
     263#endif
     264
    260265    // The following API test functions should probably be moved to platform-specific
    261266    // unit tests outside of DRT once they exist.
  • trunk/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm

    r61564 r61599  
    867867    [editingBehaviorNS release];
    868868}
     869
     870void LayoutTestController::abortModal()
     871{
     872    [NSApp abortModal];
     873}
  • trunk/WebKitTools/DumpRenderTree/mac/UIDelegate.mm

    r61564 r61599  
    6666
    6767    printf ("CONSOLE MESSAGE: line %d: %s\n", [lineNumber intValue], [message UTF8String]);
     68}
     69
     70- (void)modalWindowWillClose:(NSNotification *)notification
     71{
     72    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowWillCloseNotification object:nil];
     73    [NSApp abortModal];
     74}
     75
     76- (void)webViewRunModal:(WebView *)sender
     77{
     78    gLayoutTestController->setWindowIsKey(false);
     79    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(modalWindowWillClose:) name:NSWindowWillCloseNotification object:nil];
     80    [NSApp runModalForWindow:[sender window]];
     81    gLayoutTestController->setWindowIsKey(true);
    6882}
    6983
Note: See TracChangeset for help on using the changeset viewer.