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

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

Issue 1319473007: Delete a bunch of NPAPI layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
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");
9
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.
12 gc();
13 var initialLiveDocumentCount = window.internals.numberOfLiveDocuments();
14
15 var iframe = document.createElement('iframe');
16 document.body.appendChild(iframe);
17 iframe.contentWindow.document.documentElement.innerHTML = '<embed id="plugin " type="application/x-webkit-test-netscape" test="leak-window-scriptable-object" ></embed>';
18
19 shouldBeTrue("window.internals.numberOfLiveDocuments() > initialLiveDocument Count");
20
21 document.body.removeChild(iframe);
22
23 gc();
24 shouldBeTrue("window.internals.numberOfLiveDocuments() == initialLiveDocumen tCount");
25 }
26
27 var successfullyParsed = true;
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698