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

Side by Side Diff: LayoutTests/fast/parser/append-child-followed-by-document-write.html

Issue 1156273002: Add assert that updateLayoutTree clears dirty bits. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check the accept conditions for documents. Created 5 years, 6 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
1 <script> 1 <script>
2 function go() { 2 function go() {
3 document.open(); 3 document.open();
4 var a = document.createElement("a"); 4 var a = document.createElement("a");
5 document.appendChild(a); 5 document.appendChild(a);
6 document.write("<b id='b'></b>"); 6 document.write("<b id='b'></b>");
7 var b = document.getElementById('b'); 7 var b = document.getElementById('b');
8 8
9 // Ideally we would use the dump-as-markup test framework for this test, but 9 // Ideally we would use the dump-as-markup test framework for this test, but
10 // the contortions we go through here are too tricky for dump-as-markup. 10 // the contortions we go through here are too tricky for dump-as-markup.
11 // TODO(esprehn): Is this really true?
11 12
12 var firstChildHTML = document.firstChild.outerHTML; 13 alert("document.documentElement.outerHTML: " + document.documentElement.outerH TML + "\n" +
13 var secondChildHTML = document.firstChild.nextSibling.outerHTML; 14 "document.childNodes.length: " + document.childNodes.length + "\n" +
14 15 "b element: " + b + "\n");
15 alert("document.firstChild.outerHTML: " + firstChildHTML + "\n" +
16 "document.firstChild.nextSibling.outerHTML: " + secondChildHTML);
17 } 16 }
18 17
19 window.addEventListener("load", go, false); 18 window.addEventListener("load", go, false);
20 19
21 if (window.testRunner) 20 if (window.testRunner)
22 testRunner.dumpAsText(); 21 testRunner.dumpAsText();
23 </script> 22 </script>
24 This test covers some tricky ground where we call appendChild between 23 This test covers some tricky ground where we call appendChild between
25 document.open an document.write. This sequence of calls results in an unusual 24 document.open an document.write. This sequence of calls results in an unusual
26 situation where the parser is in the Initial state but the document is not 25 situation where the parser is in the Initial state but the document is not
27 empty. 26 empty.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698