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

Side by Side Diff: LayoutTests/http/tests/plugins/geturlnotify-from-npp-destroystream.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 <html> 1 <html>
2 <script> 2 <script>
3 function streamDestroyed() 3 function streamDestroyed()
4 { 4 {
5 plg.getURL("data:text/html,Stream data"); 5 plg.getURL("data:text/html,Stream data");
6 } 6 }
7 7
8 function runTest() { 8 function runTest() {
9 plg.getURL("/plugins/resources/slow-resource.pl"); 9 plg.getURL("/plugins/resources/slow-resource.pl");
10 10
11 if (window.testRunner) { 11 if (window.testRunner) {
12 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
13 testRunner.waitUntilDone(); 13 testRunner.waitUntilDone();
14 } 14 }
15 15
16 var url = 'data:text/html,<scri' + 'pt>if (window.testRunner) testRunner.not ifyDone();</scri' + 'pt>'; 16 var url = 'data:text/html,<scri' + 'pt>if (window.testRunner) testRunner.not ifyDone();</scri' + 'pt>';
17 url += '<div>This tests that a plug-in that calls NPP_GetURLNotify from its NPP_DestroyStream during teardown ' 17 url += '<div>This tests that a plugin that calls NPP_GetURLNotify from its N PP_DestroyStream during teardown '
18 url += 'will not cause a crash.</div><div>SUCCESS! Did not crash!</div>'; 18 url += 'will not cause a crash.</div><div>SUCCESS! Did not crash!</div>';
19 19
20 setTimeout(function() { window.location.href = url; }, 100); 20 setTimeout(function() { window.location.href = url; }, 100);
21 } 21 }
22 22
23 </script> 23 </script>
24 <body onload="runTest()"> 24 <body onload="runTest()">
25 <embed name="plg" type="application/x-webkit-test-netscape" onstreamdestroy="str eamDestroyed()"></embed> 25 <embed name="plg" type="application/x-webkit-test-netscape" onstreamdestroy="str eamDestroyed()"></embed>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698