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

Side by Side Diff: LayoutTests/plugins/npruntime/object-from-destroyed-plugin.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 1
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 </head> 3 </head>
4 <script> 4 <script>
5 function runTest() { 5 function runTest() {
6 plugin = document.getElementById('plugin'); 6 plugin = document.getElementById('plugin');
7 7
8 // Get our test object. 8 // Get our test object.
9 testObject = plugin.testObject; 9 testObject = plugin.testObject;
10 10
11 // Now destroy the plug-in. 11 // Now destroy the plugin.
12 plugin.parentNode.removeChild(plugin); 12 plugin.parentNode.removeChild(plugin);
13 13
14 // testObject is now a dangling object and every operation on it should thro w. 14 // testObject is now a dangling object and every operation on it should thro w.
15 shouldThrow('testObject.gettingProperty'); 15 shouldThrow('testObject.gettingProperty');
16 shouldThrow('testObject.settingProperty = 10'); 16 shouldThrow('testObject.settingProperty = 10');
17 shouldThrow('testObject()'); 17 shouldThrow('testObject()');
18 shouldThrow('new testObject();') 18 shouldThrow('new testObject();')
19 } 19 }
20 </script> 20 </script>
21 <body onLoad="runTest()"> 21 <body onLoad="runTest()">
22 <embed id="plugin" type="application/x-webkit-test-netscape" test="npruntime-obj ect-from-destroyed-plugin"></embed> 22 <embed id="plugin" type="application/x-webkit-test-netscape" test="npruntime-obj ect-from-destroyed-plugin"></embed>
23 <p id="description"></p> 23 <p id="description"></p>
24 <div id="console"></div> 24 <div id="console"></div>
25 25
26 <script> 26 <script>
27 description("Test various operation on an NPObject whose plug-in has been destro yed"); 27 description("Test various operation on an NPObject whose plugin has been destroy ed");
28 28
29 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698