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

Side by Side Diff: LayoutTests/fast/dom/MutationObserver/mutation-callback-non-element-crash.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 <html> 2 <html>
3 <body> 3 <body>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 function mutationCallback(mutations, observer) { 8 function mutationCallback(mutations, observer) {
9 mutations[0].addedNodes[-1]; 9 mutations[0].addedNodes[-1];
10 } 10 }
11 11
12 var mutationObserver = new WebKitMutationObserver(mutationCallback); 12 var mutationObserver = new MutationObserver(mutationCallback);
13 mutationObserver.observe(document.body, {childList: true}); 13 mutationObserver.observe(document.body, {childList: true});
14 document.body.appendChild(document.createTextNode("PASS. WebKit didn't crash")); 14 document.body.appendChild(document.createTextNode("PASS. WebKit didn't crash"));
15 </script> 15 </script>
16 </body> 16 </body>
17 </html> 17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698