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

Side by Side Diff: LayoutTests/fast/dom/Range/split-text-in-range.html

Issue 14629026: Fix an assertion failure in Range::textNodeSplit by Text::splitText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/split-text-in-range-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
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script>
4 <div id="parent1">text</div>
5 <script>
6 var parent = document.getElementById('parent1');
7 var target = parent.firstChild;
8
9 function handleInsertion() {
10 document.removeEventListener('DOMNodeInserted', handleInsertion);
11 target.nextSibling.remove();
12 }
13
14 document.addEventListener('DOMNodeInserted', handleInsertion, false);
15 var r = new Range();
16 //window.getSelection().addRange(r);
17 r.setStart(target, 0);
18 r.setEnd(target, 4);
19 target.splitText(2);
20 description('No assertion failures even if an DOM mutation event handler updates the new node created by Text::splitText.');
21 testPassed(' if the test wasn\'t terminated by an assertion.');
22 parent.remove();
23 </script>
24 <script src="../../js/resources/js-test-post.js"></script>
25 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Range/split-text-in-range-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698