Changeset 160875 in webkit
- Timestamp:
- Dec 19, 2013, 4:39:14 PM (11 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r160865 r160875 1 2013-12-19 Alexey Proskuryakov <ap@apple.com> 2 3 Layout Test plugins/destroy-during-npp-new.html is flaky 4 https://bugs.webkit.org/show_bug.cgi?id=126027 5 6 * plugins/destroy-during-npp-new.html: Streamlined the test a little bit to see 7 what changes, if anything. There should be no effect on what is tested. 8 1 9 2013-12-19 Myles C. Maxfield <mmaxfield@apple.com> 2 10 -
trunk/LayoutTests/plugins/destroy-during-npp-new.html
r120417 r160875 9 9 10 10 var newWindow = window.open("data:text/html,Hello world!") 11 if (!newWindow) 12 alert("Please disable pop-up blocker"); 11 13 12 function tryCloseWindow(w) { 13 if (!w) 14 function finishWhenClosed() { 15 if (newWindow.closed) { 16 if (window.testRunner) 17 testRunner.notifyDone(); 14 18 return; 15 16 w.close(); 17 18 function doneIfClosed() { 19 if (w.closed) { 20 if (window.testRunner) 21 testRunner.notifyDone(); 22 return; 23 } 24 setTimeout(doneIfClosed, 1); 25 }; 26 doneIfClosed(); 27 } 19 } 20 setTimeout(finishWhenClosed, 1); 21 }; 28 22 29 23 window.onload = function() { 30 tryCloseWindow(newWindow);24 newWindow.close(); 31 25 32 26 var testPlugin = document.getElementById('testPlugin'); 33 27 if (!testPlugin || !testPlugin.parentNode) 34 28 document.documentElement.appendChild(document.createTextNode("SUCCESS")); 29 30 finishWhenClosed(); 35 31 } 36 32 </script>
Note:
See TracChangeset
for help on using the changeset viewer.