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

Side by Side Diff: LayoutTests/fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata.html

Issue 10916125: Merge 125162 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 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/dom/shadow/suppress-mutation-events-in-shadow-characterdata-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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../js/resources/js-test-pre.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <div id="host"></div> 6 <div id="host"></div>
7 <script> 7 <script>
8 description("Ensures that DOMCharacterDataModified isn't fired inside shadows.") ; 8 description("Ensures that DOMCharacterDataModified isn't fired inside shadows.") ;
9 var fired = false; 9 var fired = false;
10 var host = document.getElementById("host"); 10 var host = document.getElementById("host");
11 var shadow = new WebKitShadowRoot(host); 11 var shadow = new WebKitShadowRoot(host);
12 var div = document.createElement("div"); 12 var div = document.createElement("div");
13 div.addEventListener("DOMCharacterDataModified", function(evt) { 13 div.addEventListener("DOMCharacterDataModified", function(evt) {
14 fired = true; 14 fired = true;
15 }, false); 15 }, false);
16 16
17 shadow.appendChild(div); 17 shadow.appendChild(div);
18 div.innerHTML = "Hello, "; 18 div.innerHTML = "Hello, ";
19 div.firstChild.appendData("World!"); 19 div.firstChild.appendData("World!");
20 shouldBeFalse("fired"); 20 shouldBeFalse("fired");
21 shouldBe("div.innerHTML", "'Hello, World!'"); 21 shouldBe("div.innerHTML", "'Hello, World!'");
22 </script> 22 </script>
23 <script src="../../js/resources/js-test-post.js"></script> 23 <script src="../../js/resources/js-test-post.js"></script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/suppress-mutation-events-in-shadow-characterdata-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698