Changeset 202428 in webkit
- Timestamp:
- Jun 24, 2016 10:34:42 AM (8 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r202421 r202428 1 2016-06-24 John Wilander <wilander@apple.com> 2 3 Make window.open layout tests for about: URLs work on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=159072 5 6 Reviewed by Alex Christensen. 7 8 Fix two window.open layout tests for iOS. They previously used click events. 9 Now they instead turn off the popup blocker and just call window.open() on 10 the load event. 11 12 * http/tests/dom/window-open-about-blank-and-access-document-expected.txt: 13 * http/tests/dom/window-open-about-blank-and-access-document.html: 14 * http/tests/dom/window-open-about-webkit-org-and-access-document-expected.txt: 15 * http/tests/dom/window-open-about-webkit-org-and-access-document.html: 16 * platform/ios-simulator/TestExpectations: 17 Removed the skipping of these two test cases. 18 1 19 2016-06-24 Yusuke Suzuki <utatane.tea@gmail.com> 2 20 -
trunk/LayoutTests/http/tests/dom/window-open-about-blank-and-access-document-expected.txt
r202151 r202428 1 1 CONSOLE MESSAGE: line 1: Injected script running. 2 3 2 PASS newWindow.document is defined. 4 3 -
trunk/LayoutTests/http/tests/dom/window-open-about-blank-and-access-document.html
r202151 r202428 11 11 testRunner.setCanOpenWindows(); 12 12 testRunner.waitUntilDone(); 13 testRunner.setPopupBlockingEnabled(false); 13 14 } 14 15 15 function checkNewWindowDocumentIs Undefined () {16 function checkNewWindowDocumentIsDefined () { 16 17 shouldBeDefined("newWindow.document"); 17 18 if (window.testRunner) … … 19 20 } 20 21 21 function clickHandler() {22 function run() { 22 23 newWindow = window.open("about:blank"); 23 24 try { 24 25 newWindow.document.write("<scri" + "pt>console.log('Injected script running.')</sc" + "ript>"); 25 setTimeout(checkNewWindowDocumentIs Undefined, 500);26 setTimeout(checkNewWindowDocumentIsDefined, 500); 26 27 } catch (e) { 27 28 testFailed("Was not able to write to the new window's document."); … … 30 31 } 31 32 } 32 33 function clickButton() {34 var button = document.getElementById("test");35 var buttonX = button.offsetLeft + button.offsetWidth / 2;36 var buttonY = button.offsetTop + button.offsetHeight / 2;37 if (window.eventSender) {38 eventSender.mouseMoveTo(buttonX, buttonY);39 eventSender.mouseDown();40 eventSender.mouseUp();41 }42 }43 33 </script> 44 34 </head> 45 <body onload="clickButton()"> 46 <button id="test" onclick="clickHandler()"></button> 35 <body onload="run()"> 47 36 <div id="console"></div> 48 37 </body> -
trunk/LayoutTests/http/tests/dom/window-open-about-webkit-org-and-access-document-expected.txt
r202151 r202428 1 CONSOLE MESSAGE: line 45: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "null". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "about". Protocols must match.1 CONSOLE MESSAGE: line 34: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "null". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "about". Protocols must match. 2 2 3 3 CONSOLE MESSAGE: line 347: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "null". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "about". Protocols must match. 4 4 5 6 5 PASS newWindow.document is undefined. 7 6 -
trunk/LayoutTests/http/tests/dom/window-open-about-webkit-org-and-access-document.html
r202151 r202428 10 10 testRunner.setCanOpenWindows(); 11 11 testRunner.waitUntilDone(); 12 testRunner.setPopupBlockingEnabled(false); 12 13 } 13 14 … … 18 19 } 19 20 20 function clickHandler() {21 function run() { 21 22 newWindow = window.open("about://webkit.org"); 22 23 try { … … 29 30 } 30 31 } 31 32 function clickButton() {33 var button = document.getElementById("test");34 var buttonX = button.offsetLeft + button.offsetWidth / 2;35 var buttonY = button.offsetTop + button.offsetHeight / 2;36 if (window.eventSender) {37 eventSender.mouseMoveTo(buttonX, buttonY);38 eventSender.mouseDown();39 eventSender.mouseUp();40 }41 }42 32 </script> 43 33 </head> 44 <body onload="clickButton()"> 45 <button id="test" onclick="clickHandler()"></button> 34 <body onload="run()"> 46 35 <div id="console"></div> 47 36 </body> -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r202420 r202428 255 255 fast/events/prevent-default-prevents-interaction-with-scrollbars.html [ Skip ] 256 256 fast/text/text-disappear-on-deselect.html [ ImageOnlyFailure ] 257 http/tests/dom/window-open-about-blank-and-access-document.html [ Skip ]258 http/tests/dom/window-open-about-webkit-org-and-access-document.html [ Skip ]259 257 260 258 webkit.org/b/148695 fast/shadow-dom [ Pass ]
Note: See TracChangeset
for help on using the changeset viewer.