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

Side by Side Diff: sky/tests/mutation-observer/mutation-callback-non-element-crash.html

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
(Empty)
1 <html>
2 <link rel="import" href="../resources/dump-as-text.html" />
3 <body id="body">
4 <script>
5 function mutationCallback(mutations, observer) {
6 mutations[0].addedNodes[-1];
7 }
8
9 var mutationObserver = new MutationObserver(mutationCallback);
10 var body = document.getElementById("body");
11 mutationObserver.observe(body, {childList: true});
12 body.appendChild(document.createTextNode("PASS. We didn't crash"));
13 </script>
14 </body>
15 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698