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

Side by Side Diff: LayoutTests/editing/inserting/insert-without-inheriting-style.html

Issue 18452012: Should not inherit style from control like element during inserting text just after deleting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/editing/inserting/insert-without-inheriting-style-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 <div id="container">
2 <div contenteditable="true" id="sample">foo <input type="button" value="bar"> ba z</div>
3 </div>
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script>
6 function $(id) { return document.getElementById(id); }
7
8 var range = document.createRange();
9 range.setStartAfter(document.querySelector('input'));
10 var selection = window.getSelection();
11 selection.removeAllRanges();
12 selection.addRange(range);
13 document.execCommand('Delete');
14 document.execCommand('InsertText', false, 'quux');
15 shouldBeEqualToString('$("sample").innerHTML', 'foo quux&nbsp;baz');
16
17 if (window.testRunner)
18 $('container').outerHTML = '';
19 </script>
20 <script src="../../fast/js/resources/js-test-post.js"></script>
21 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/inserting/insert-without-inheriting-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698