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

Side by Side Diff: LayoutTests/fast/frames/iframe-onload-and-domnodeinserted.html

Issue 10875067: Merge 126131 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/frames/iframe-onload-and-domnodeinserted-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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="g"></div> 7 <div id="g"></div>
8 <script> 8 <script>
9 description("This test ensures that any tree mutation in the load event handler cannot harm the tree consistency.") 9 description("This test ensures that any tree mutation in the load event handler cannot harm the tree consistency.")
10 var docElement = document.documentElement; 10 var docElement = document.documentElement;
11 11
12 textareaElement = document.createElement("textarea"); 12 textareaElement = document.createElement("textarea");
13 iframeElement = document.createElement("iframe"); 13 iframeElement = document.createElement("iframe");
14 14
15 var loadEventFired = false; 15 var loadEventFired = false;
16 textareaElement.appendChild(iframeElement); 16 textareaElement.appendChild(iframeElement);
17 iframeElement.addEventListener("load", function () { iframeElement.innerHTML = " X"; loadEventFired = true; }, false); 17 iframeElement.addEventListener("load", function () { iframeElement.innerHTML = " X"; loadEventFired = true; }, false);
18 textareaElement.addEventListener("DOMNodeInserted", function () { document.imple mentation.createDocument("", "", null).adoptNode(textareaElement) }, false); 18 textareaElement.addEventListener("DOMNodeInserted", function () { document.imple mentation.createDocument("", "", null).adoptNode(textareaElement) }, false);
19 document.documentElement.appendChild(textareaElement); // The DOMNodeInserted ev ent is triggered here through innerHTML = "X" 19 document.documentElement.appendChild(textareaElement); // The DOMNodeInserted ev ent is triggered here through innerHTML = "X"
20 document.getElementById("g").appendChild(textareaElement); 20 document.getElementById("g").appendChild(textareaElement);
21 shouldBeTrue("loadEventFired"); 21 shouldBeTrue("loadEventFired");
22 debug("PASS unless crash."); 22 debug("PASS unless crash.");
23 </script> 23 </script>
24 <script src="../js/resources/js-test-post.js"></script> 24 <script src="../js/resources/js-test-post.js"></script>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/frames/iframe-onload-and-domnodeinserted-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698