Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Side by Side Diff: LayoutTests/plugins/destroy-on-setwindow.html

Issue 1005223002: Blink: Replace all "plug-in" with "plugin". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert netscape-dom-access tests. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <p> 1 <p>
2 Test that a plug-in that causes its Widget to be destroyed during setWindow does not cause a crash. 2 Test that a plugin that causes its Widget to be destroyed during setWindow d oes not cause a crash.
3 </p> 3 </p>
4 <embed id="plug-in" type="application/x-webkit-test-netscape" onSetWindow="handl eSetWindow()"> 4 <embed id="plugin" type="application/x-webkit-test-netscape" onSetWindow="handle SetWindow()">
5 <script> 5 <script>
6 var plugIn = document.getElementById("plug-in"); 6 var plugIn = document.getElementById("plugin");
7 var count = 0; 7 var count = 0;
8 8
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
11 11
12 function handleSetWindow() 12 function handleSetWindow()
13 { 13 {
14 count++; 14 count++;
15 15
16 if (count == 2) 16 if (count == 2)
17 plugIn.style.width = "500px"; 17 plugIn.style.width = "500px";
18 else if (count == 3) 18 else if (count == 3)
19 plugIn.parentNode.removeChild(plugIn); 19 plugIn.parentNode.removeChild(plugIn);
20 } 20 }
21 21
22 handleSetWindow(); 22 handleSetWindow();
23 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698