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

Side by Side Diff: LayoutTests/fast/dom/MutationObserver/parser-mutations.html

Issue 12317072: Merge 143386 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <body> 3 <body>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 5
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 9
10 var observer = new WebKitMutationObserver(function(mutations, observer) { 10 var observer = new MutationObserver(function(mutations, observer) {
11 window.mutations = mutations; 11 window.mutations = mutations;
12 }); 12 });
13 observer.observe(document.body, {childList: true, subtree:true}); 13 observer.observe(document.body, {childList: true, subtree:true});
14 </script> 14 </script>
15 15
16 <p> 16 <p>
17 Mutation records should be delivered for all parser mutations after the abov e script. 17 Mutation records should be delivered for all parser mutations after the abov e script.
18 </p> 18 </p>
19 19
20 <!-- Test parserRemoveChild and takeAllChildrenFrom doing the adoption agency al gorithm. --> 20 <!-- Test parserRemoveChild and takeAllChildrenFrom doing the adoption agency al gorithm. -->
(...skipping 14 matching lines...) Expand all
35 shouldBeEqualToString('mutations[9].target.tagName', 'A'); 35 shouldBeEqualToString('mutations[9].target.tagName', 'A');
36 shouldBeEqualToString('mutations[9].removedNodes[0].tagName', 'FIGURE'); 36 shouldBeEqualToString('mutations[9].removedNodes[0].tagName', 'FIGURE');
37 shouldBe('mutations[9].removedNodes.length', '1'); 37 shouldBe('mutations[9].removedNodes.length', '1');
38 shouldBe('mutations[9].addedNodes.length', '0'); 38 shouldBe('mutations[9].addedNodes.length', '0');
39 shouldBeEqualToString('mutations[18].target.tagName', 'FIGURE'); 39 shouldBeEqualToString('mutations[18].target.tagName', 'FIGURE');
40 shouldBe('mutations[18].addedNodes.length', '1'); 40 shouldBe('mutations[18].addedNodes.length', '1');
41 shouldBe('mutations[18].removedNodes.length', '0'); 41 shouldBe('mutations[18].removedNodes.length', '0');
42 shouldBeEqualToString('mutations[18].addedNodes[0].tagName', 'DIV'); 42 shouldBeEqualToString('mutations[18].addedNodes[0].tagName', 'DIV');
43 </script> 43 </script>
44 </body> 44 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698