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

Side by Side Diff: LayoutTests/fast/dom/Range/range-insertNode-assertion.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../js/resources/js-test-pre.js"></script>
4 <div id="parent1">text</div> 4 <div id="parent1">text</div>
5 <div id="parent2">text</div> 5 <div id="parent2">text</div>
6 <script> 6 <script>
7 function handleInsertion() { 7 function handleInsertion() {
8 document.removeEventListener('DOMNodeInserted', handleInsertion); 8 document.removeEventListener('DOMNodeInserted', handleInsertion);
9 parent.innerHTML = ''; 9 parent.innerHTML = '';
10 } 10 }
(...skipping 16 matching lines...) Expand all
27 document.addEventListener('DOMNodeInserted', handleInsertion2); 27 document.addEventListener('DOMNodeInserted', handleInsertion2);
28 parent = document.getElementById('parent2'); 28 parent = document.getElementById('parent2');
29 r.setStart(parent2.firstChild, 2); 29 r.setStart(parent2.firstChild, 2);
30 r.setEnd(parent2.firstChild, 2); 30 r.setEnd(parent2.firstChild, 2);
31 r.insertNode(document.createElement('span')); 31 r.insertNode(document.createElement('span'));
32 32
33 description('No assertion failures even if a DOM mutation event handler updates nodes in a Range during Range::insertNode.'); 33 description('No assertion failures even if a DOM mutation event handler updates nodes in a Range during Range::insertNode.');
34 testPassed('if this did not crash.'); 34 testPassed('if this did not crash.');
35 parent.remove(); 35 parent.remove();
36 </script> 36 </script>
37 <script src="../../js/resources/js-test-post.js"></script>
38 </body> 37 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698