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

Side by Side Diff: LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html

Issue 22880019: [DOM4] Doctypes now always have a node document and can be moved across document boundaries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve tests Created 7 years, 4 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 | LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <body> 1 <body>
2 <script src="../../js/resources/js-test-pre.js"></script>
2 <script> 3 <script>
3 if (window.testRunner) { 4 window.jsTestIsAsync = true;
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
6 }
7
8 function gc()
9 {
10 if (window.GCController)
11 return GCController.collect();
12
13 for (var i = 0; i < 10000; i++)
14 var s = new String("");
15 }
16 5
17 // Reload multiple times, to make crashing more likely. 6 // Reload multiple times, to make crashing more likely.
18 var iterationsLeft = 50; 7 var iterationsLeft = 50;
19 function test() 8 function test()
20 { 9 {
21 if (--iterationsLeft) { 10 if (--iterationsLeft) {
22 frames[0].history.go(0); 11 frames[0].history.go(0);
23 } else { 12 } else {
24 gc(); 13 gc();
25 document.getElementById("result").innerText = frames[0].document.body.te xtContent; 14 debug(frames[0].document.body.outerHTML);
26 if (window.testRunner) 15 finishJSTest();
27 testRunner.notifyDone();
28 } 16 }
29 } 17 }
30 </script> 18 </script>
31 <div id="result">FAIL</div>
32 <iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test ()"></iframe> 19 <iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test ()"></iframe>
20 <script src="../../js/resources/js-test-post.js"></script>
33 </body> 21 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698