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

Side by Side Diff: LayoutTests/svg/custom/loadevents-async.html

Issue 134263003: Followup fixes for bug 332066. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 11 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/svg/custom/loadevents-async-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
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("This test ensures that tree mutation on the load doesn't break cons istency.");
9 var invoked = false;
10 var spanElement = document.createElementNS("http://www.w3.org/1999/xhtml", "span ");
11 var divElement = document.createElementNS("http://www.w3.org/1999/xhtml", "div") ;
12 var useElement = document.createElementNS("http://www.w3.org/2000/svg", "use");
13 var emptyDocument = document.implementation.createDocument("", "", null);
14
15 document.body.appendChild(spanElement);
16 divElement.appendChild(useElement);
17 useElement.addEventListener("load", function () { emptyDocument.adoptNode(useEle ment); invoked = true; }, false);
18 spanElement.appendChild(divElement);
19 document.body.appendChild(useElement);
20 shouldBeFalse("invoked");
21
22 jsTestIsAsync = true;
23 setTimeout(function() {
24 shouldBeTrue("invoked");
25 finishJSTest();
26 }, 1);
27
28 </script>
29 <body>
30 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/custom/loadevents-async-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698