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

Side by Side Diff: chrome/test/data/npapi/plugin_delete_in_deallocate.html

Issue 7806020: Add DeletePluginInDeallocate UI test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct Copyright header. Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/ui/npapi_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="npapi.js"></script>
4 <script>
5 function setTestObject(object) {
6 window.testObject = object;
7 setTimeout("deleteTestObject()", 0);
8 var statusPanel = document.getElementById("statusPanel");
9 statusPanel.innerText = "Received test object...";
10 }
11
12 function deleteTestObject() {
13 window.testObject = null;
14 var statusPanel = document.getElementById("statusPanel");
15 statusPanel.innerText = "Deleted test object...";
16 gc();
17 }
18
19 function deletePlugin() {
20 var statusPanel = document.getElementById("statusPanel");
21 statusPanel.innerText = "Deleting plugin...";
22 var plugin = document.getElementById("delete_plugin_in_deallocate_test");
23 if (plugin.parentNode && plugin.parentNode.removeChild) {
24 plugin.parentNode.removeChild(plugin);
25 }
26 }
27 </script>
28 </head>
29
30 <body>
31 <div id="statusPanel" style="border: 1px solid red; width: 100%">
32 Test running....
33 </div>
34
35 NPObject Delete in Deallocate<p>
36
37 Tests the case where deallocation of an NPObject belonging to the plugin
38 triggers scripting which causes the whole plugin to be torn down, and verifies
39 that the object being deallocated is not deallocated a second time.
40
41
42 <embed type="application/vnd.npapi-test"
43 src="foo"
44 name="delete_plugin_in_deallocate_test"
45 id="signaller"
46 mode="np_embed">
47
48 <embed type="application/vnd.npapi-test"
49 src="foo"
50 name="delete_plugin_in_deallocate_test"
51 id="delete_plugin_in_deallocate_test"
52 mode="np_embed">
53
54 </body>
55 </html>
OLDNEW
« no previous file with comments | « no previous file | chrome/test/ui/npapi_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698