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

Side by Side Diff: LayoutTests/plugins/npruntime/leak-window-scriptable-object.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("Test that a plugin that fails to release the window script object d oesn't result in the window's document being leaked"); 8 description("Test that a plugin that fails to release the window script object d oesn't result in the window's document being leaked");
9 9
10 if (window.internals) { 10 if (window.internals) {
11 // Test that the live document count returns to the initial value, rather th an to a specific value, so this test is robust to leaks in preceding tests. 11 // Test that the live document count returns to the initial value, rather th an to a specific value, so this test is robust to leaks in preceding tests.
12 gc(); 12 gc();
13 gc(); // FIXME: Unclear why this is needed, see crbug.com/307614 13 gc(); // FIXME: Unclear why this is needed, see crbug.com/307614
14 var initialLiveDocumentCount = window.internals.numberOfLiveDocuments(); 14 var initialLiveDocumentCount = window.internals.numberOfLiveDocuments();
15 15
16 var iframe = document.createElement('iframe'); 16 var iframe = document.createElement('iframe');
17 document.body.appendChild(iframe); 17 document.body.appendChild(iframe);
18 iframe.contentWindow.document.documentElement.innerHTML = '<embed id="plugin " type="application/x-webkit-test-netscape" test="leak-window-scriptable-object" ></embed>'; 18 iframe.contentWindow.document.documentElement.innerHTML = '<embed id="plugin " type="application/x-webkit-test-netscape" test="leak-window-scriptable-object" ></embed>';
19 19
20 shouldBeTrue("window.internals.numberOfLiveDocuments() > initialLiveDocument Count"); 20 shouldBeTrue("window.internals.numberOfLiveDocuments() > initialLiveDocument Count");
21 21
22 document.body.removeChild(iframe); 22 document.body.removeChild(iframe);
23 23
24 gc(); 24 gc();
25 shouldBeTrue("window.internals.numberOfLiveDocuments() == initialLiveDocumen tCount"); 25 shouldBeTrue("window.internals.numberOfLiveDocuments() == initialLiveDocumen tCount");
26 } 26 }
27 27
28 var successfullyParsed = true; 28 var successfullyParsed = true;
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW
« no previous file with comments | « LayoutTests/plugins/npruntime/browser-object-identity.html ('k') | LayoutTests/plugins/npruntime/npruntime.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698