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

Side by Side Diff: LayoutTests/fast/forms/associatedFormControls-leak-nodes.html

Issue 48903019: Delete js-test-post.js. (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> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <iframe id="frame"></iframe> 4 <iframe id="frame"></iframe>
5 5
6 <script src="../js/resources/js-test-pre.js"></script> 6 <script src="../js/resources/js-test-pre.js"></script>
7 <script> 7 <script>
8 if (!window.internals) { 8 if (!window.internals) {
9 debug("This test only runs on \"content_shell --dump-render-tree\", as it re quires existence of window.internals."); 9 debug("This test only runs on \"content_shell --dump-render-tree\", as it re quires existence of window.internals.");
10 } else { 10 } else {
11 gc(); 11 gc();
12 var documentsBefore = window.internals.numberOfLiveDocuments(); 12 var documentsBefore = window.internals.numberOfLiveDocuments();
13 13
14 var frame = document.getElementById('frame'); 14 var frame = document.getElementById('frame');
15 frame.contentDocument.body.innerHTML = '<form></form>'; 15 frame.contentDocument.body.innerHTML = '<form></form>';
16 document.body.removeChild(frame); 16 document.body.removeChild(frame);
17 frame = null; 17 frame = null;
18 18
19 gc(); 19 gc();
20 var documentsAfter = window.internals.numberOfLiveDocuments(); 20 var documentsAfter = window.internals.numberOfLiveDocuments();
21 21
22 // -1 is from removing frame itself. 22 // -1 is from removing frame itself.
23 shouldBe('documentsBefore - 1', 'documentsAfter'); 23 shouldBe('documentsBefore - 1', 'documentsAfter');
24 } 24 }
25 </script> 25 </script>
26 <script src="../js/resources/js-test-post.js"></script>
27 </body> 26 </body>
28 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/access-key-mutated.html ('k') | LayoutTests/fast/forms/autofocus-focus-only-once.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698