Changeset 61551 in webkit
- Timestamp:
- Jun 21, 2010 10:17:39 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r61550 r61551 1 2010-06-21 Prasad Tammana <prasadt@chromium.org> 2 3 Reviewed by Darin Adler. 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 1 21 2010-06-21 Lucas De Marchi <lucas.demarchi@profusion.mobi> 2 22 -
trunk/LayoutTests/fast/dom/Window/window-function-frame-getter-precedence-expected.txt
r42447 r61551 31 31 PASS: typeof window.addEventListener should be object and is. 32 32 PASS: typeof window.removeEventListener should be object and is. 33 FAIL: typeof window.showModalDialog should be object but instead is undefined34 33 PASS: typeof window.captureEvents should be object and is. 35 34 PASS: typeof window.releaseEvents should be object and is. -
trunk/LayoutTests/fast/dom/Window/window-function-frame-getter-precedence.html
r30157 r61551 17 17 } 18 18 19 function shouldBe(a, b )19 function shouldBe(a, b, printOnlyOnFailure) 20 20 { 21 21 var evalA; … … 25 25 evalA = e; 26 26 } 27 if (evalA == b) 28 log("PASS: " + a + " should be " + b + " and is.", "green"); 27 if (evalA == b) { 28 if (!printOnlyOnFailure) 29 log("PASS: " + a + " should be " + b + " and is.", "green"); 30 } 29 31 else 30 32 log("FAIL: " + a + " should be " + b + " but instead is " + evalA, "red"); … … 38 40 document.body.appendChild(iframe); 39 41 40 shouldBe("typeof window." + functionName, "object"); 42 // showModalDialog only works on mac in the DRT. So run this test only if its defined and print output only on failure. 43 // This'll keep the output consistent on all platforms. 44 if (functionName == "showModalDialog" && window.showModalDialog != undefined) 45 shouldBe("typeof window." + functionName, "object", true); 46 else 47 shouldBe("typeof window." + functionName, "object"); 41 48 42 49 document.body.removeChild(iframe); -
trunk/LayoutTests/fast/dom/Window/window-function-name-getter-precedence-expected.txt
r30696 r61551 31 31 PASS: typeof window.addEventListener should be function and is. 32 32 PASS: typeof window.removeEventListener should be function and is. 33 FAIL: typeof window.showModalDialog should be function but instead is undefined34 33 PASS: typeof window.captureEvents should be function and is. 35 34 PASS: typeof window.releaseEvents should be function and is. -
trunk/LayoutTests/fast/dom/Window/window-function-name-getter-precedence.html
r30157 r61551 17 17 } 18 18 19 function shouldBe(a, b )19 function shouldBe(a, b, printOnlyOnFailure) 20 20 { 21 21 var evalA; … … 25 25 evalA = e; 26 26 } 27 if (evalA == b) 28 log("PASS: " + a + " should be " + b + " and is.", "green"); 27 if (evalA == b) { 28 if (!printOnlyOnFailure) 29 log("PASS: " + a + " should be " + b + " and is.", "green"); 30 } 29 31 else 30 32 log("FAIL: " + a + " should be " + b + " but instead is " + evalA, "red"); … … 37 39 document.body.appendChild(element); 38 40 39 shouldBe("typeof window." + functionName, "function"); 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" && window.showModalDialog != undefined) 44 shouldBe("typeof window." + functionName, "function", true); 45 else 46 shouldBe("typeof window." + functionName, "function"); 40 47 41 48 document.body.removeChild(element); -
trunk/LayoutTests/fast/dom/Window/window-lookup-precedence-expected.txt
r61136 r61551 61 61 PASS 'function setTimeout() { [native code]}' is 'function setTimeout() { [native code]}' 62 62 PASS '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).65 63 PASS 'function stop() { [native code]}' is 'function stop() { [native code]}' 66 64 PASS 'function stop() { [native code]}' is 'function stop() { [native code]}' -
trunk/LayoutTests/fast/dom/Window/window-lookup-precedence.html
r42176 r61551 39 39 var name = prop[0]; 40 40 var original = win[name]; 41 // showModalDialog is not currently implemented in DumpRenderTree for all platforms. 42 if (name == "showModalDialog") 43 return; 41 44 // Check subframe precedence. 42 45 try { -
trunk/LayoutTests/fast/dom/Window/window-properties-expected.txt
r61531 r61551 2264 2264 window.setInterval [function] 2265 2265 window.setTimeout [function] 2266 window.showModalDialog [undefined]2267 2266 window.status [string] 2268 2267 window.statusbar [object BarInfo] -
trunk/LayoutTests/fast/dom/Window/window-properties.html
r60902 r61551 84 84 "window.FileError" : 1, 85 85 "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 87 90 }; 88 91 -
trunk/LayoutTests/fast/dom/script-tests/prototype-inheritance.js
r60902 r61551 20 20 "Int8Array", "Uint8Array", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", 21 21 "FileError", "FileReader", 22 "indexedDB" 22 "indexedDB", "showModalDialog" 23 23 ]; 24 24 -
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
r58534 r61551 1 1 S10.2.2_A1.1_T1 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T10 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T11 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T2 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T3 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T4 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T5 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T6 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T7 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T8 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.1_T9 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T1 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T10 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T11 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T2 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T3 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T4 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T5 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T6 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T7 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T8 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST 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
r58534 r61551 1 1 S10.2.2_A1.2_T9 2 2 3 FAIL SputnikError: #1: scope chain must contain same objects in the same order as the calling context 3 PASS 4 4 5 5 TEST COMPLETE -
trunk/LayoutTests/http/tests/security/cross-frame-access-call-expected.txt
r59118 r61551 83 83 PASS: window.resizeBy.call(targetWindow, 0, 0); should be 'undefined' and is. 84 84 PASS: 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.86 85 PASS: window.location.toString.call(targetWindow.location) should be 'undefined' and is. 87 86 -
trunk/LayoutTests/http/tests/security/cross-frame-access-call.html
r59118 r61551 56 56 shouldBe("window.resizeTo.call(targetWindow, 0, 0);", "undefined"); 57 57 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 58 59 // 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."'); 60 61 61 62 // - Tests for the Location object - -
trunk/LayoutTests/http/tests/security/cross-frame-access-get-expected.txt
r42430 r61551 534 534 PASS: canGet('targetWindow.setInterval') should be 'false' and is. 535 535 PASS: canGet('targetWindow.setTimeout') should be 'false' and is. 536 PASS: canGet('targetWindow.showModalDialog') should be 'false' and is.537 536 PASS: canGet('targetWindow.stop') should be 'false' and is. 538 537 -
trunk/LayoutTests/http/tests/security/cross-frame-access-get.html
r29654 r61551 133 133 "setInterval", 134 134 "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", 136 138 "stop" 137 139 ]; -
trunk/LayoutTests/http/tests/security/cross-frame-access-put-expected.txt
r57261 r61551 563 563 ALERT: PASS: window.setInterval should be 'function setInterval() { [native code]}' and is. 564 564 ALERT: PASS: window.setTimeout should be 'function setTimeout() { [native code]}' and is. 565 ALERT: PASS: window.showModalDialog should be 'undefined' and is.565 ALERT: PASS: window.showModalDialog matched the expected value. 566 566 ALERT: PASS: window.stop should be 'function stop() { [native code]}' and is. 567 567 This 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
r57261 r61551 460 460 shouldBe("window.setInterval", "setIntervalOld"); 461 461 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); 463 465 shouldBe("window.stop", "stopOld"); 464 466 }, 0); -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r61520 r61551 2871 2871 BUG47035 WIN DEBUG : fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html = PASS TEXT 2872 2872 BUG47036 WIN SLOW : html5lib/runner.html = PASS 2873 2874 # Related to https://bugs.webkit.org/show_bug.cgi?id=35350 2875 BUG45048 : fast/events/show-modal-dialog-onblur-onfocus.html = FAIL 2876 BUG45048 : fast/harness/resources/modal-dialog.html = FAIL 2877 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10.html = FAIL 2878 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11.html = FAIL 2879 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2.html = FAIL 2880 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2.html = FAIL 2881 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4.html = FAIL 2882 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4.html = FAIL 2883 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6.html = FAIL 2884 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6.html = FAIL 2885 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8.html = FAIL 2886 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8.html = FAIL 2887 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10.html = FAIL 2888 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11.html = FAIL 2889 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1.html = FAIL 2890 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1.html = FAIL 2891 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3.html = FAIL 2892 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3.html = FAIL 2893 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5.html = FAIL 2894 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5.html = FAIL 2895 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7.html = FAIL 2896 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7.html = FAIL 2897 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9.html = FAIL 2898 BUG45048 : fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T9.html = FAIL -
trunk/LayoutTests/platform/gtk/Skipped
r61548 r61551 5900 5900 # https://bugs.webkit.org/show_bug.cgi?id=40859 5901 5901 media/video-controls-rendering.html 5902 5903 # https://bugs.webkit.org/show_bug.cgi?id=35350 5904 fast/events/show-modal-dialog-onblur-onfocus.html 5905 fast/harness/resources/modal-dialog.html 5906 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10.html 5907 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11.html 5908 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2.html 5909 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2.html 5910 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4.html 5911 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4.html 5912 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6.html 5913 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6.html 5914 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8.html 5915 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8.html 5916 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10.html 5917 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11.html 5918 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1.html 5919 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1.html 5920 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3.html 5921 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3.html 5922 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5.html 5923 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5.html 5924 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7.html 5925 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7.html 5926 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9.html 5927 fast/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
r61548 r61551 5421 5421 # preloader tests. 5422 5422 fast/preloader 5423 5424 # https://bugs.webkit.org/show_bug.cgi?id=35350 5425 fast/events/show-modal-dialog-onblur-onfocus.html 5426 fast/harness/resources/modal-dialog.html 5427 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10.html 5428 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11.html 5429 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2.html 5430 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2.html 5431 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4.html 5432 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4.html 5433 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6.html 5434 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6.html 5435 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8.html 5436 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8.html 5437 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10.html 5438 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11.html 5439 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1.html 5440 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1.html 5441 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3.html 5442 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3.html 5443 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5.html 5444 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5.html 5445 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7.html 5446 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7.html 5447 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9.html 5448 fast/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/win/Skipped
r61548 r61551 903 903 fast/text/hyphenate-character.html 904 904 fast/text/hyphens.html 905 906 # https://bugs.webkit.org/show_bug.cgi?id=35350 907 fast/events/show-modal-dialog-onblur-onfocus.html 908 fast/harness/resources/modal-dialog.html 909 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T10.html 910 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T11.html 911 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T2.html 912 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T2.html 913 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T4.html 914 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T4.html 915 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T6.html 916 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T6.html 917 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T8.html 918 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T8.html 919 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T10.html 920 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T11.html 921 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T1.html 922 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T1.html 923 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T3.html 924 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T3.html 925 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T5.html 926 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T5.html 927 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T7.html 928 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.2_T7.html 929 fast/js/sputnik/Conformance/10_Execution_Contexts/10.2_Entering_An_Execution_Context/10.2.2_Eval_Code/S10.2.2_A1.1_T9.html 930 fast/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
r61545 r61551 1 2010-06-21 Prasad Tammana <prasadt@chromium.org> 2 3 Reviewed by Darin Adler. 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 1 21 2010-06-21 Satish Sampath <satish@chromium.org> 2 22 -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.cpp
r61324 r61551 1474 1474 } 1475 1475 1476 1477 #if PLATFORM(MAC) 1478 static 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 1476 1486 static JSValueRef markerTextForListItemCallback(JSContextRef context, JSObjectRef, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 1477 1487 { … … 1600 1610 { 1601 1611 static JSStaticFunction staticFunctions[] = { 1612 #if PLATFORM(MAC) 1613 { "abortModal", abortModalCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1614 #endif 1602 1615 { "addDisallowedURL", addDisallowedURLCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 1603 1616 { "addUserScript", addUserScriptCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, -
trunk/WebKitTools/DumpRenderTree/LayoutTestController.h
r61324 r61551 258 258 void setWebViewEditable(bool); 259 259 260 261 #if PLATFORM(MAC) 262 void abortModal(); 263 #endif 264 260 265 // The following API test functions should probably be moved to platform-specific 261 266 // unit tests outside of DRT once they exist. -
trunk/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm
r61232 r61551 867 867 [editingBehaviorNS release]; 868 868 } 869 870 void LayoutTestController::abortModal() 871 { 872 [NSApp abortModal]; 873 } -
trunk/WebKitTools/DumpRenderTree/mac/UIDelegate.mm
r60488 r61551 66 66 67 67 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); 68 82 } 69 83
Note: See TracChangeset
for help on using the changeset viewer.