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

Side by Side Diff: LayoutTests/fast/css/first-letter-range-insert.html

Issue 1025493002: Turn fast/css/first-letter-range-insert.html into a dumpAsText test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/css/first-letter-range-insert-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
1 1
2 <style> 2 <style>
3 div:first-child { 3 div:first-child {
4 -webkit-column-count:65540; 4 -webkit-column-count:65540;
5 } 5 }
6 div:first-letter { 6 div:first-letter {
7 color: green; 7 color: green;
8 } 8 }
9 </style> 9 </style>
10 <script> 10 <script>
11 if (window.testRunner)
12 testRunner.dumpAsText();
11 document.addEventListener("readystatechange", function() { 13 document.addEventListener("readystatechange", function() {
12 document.execCommand("SelectAll") 14 document.execCommand("SelectAll")
13 window.getSelection().deleteFromDocument(); 15 window.getSelection().deleteFromDocument();
14 }); 16 });
15 17
16 document.addEventListener("DOMCharacterDataModified", modifiedListener); 18 document.addEventListener("DOMCharacterDataModified", modifiedListener);
17 function modifiedListener(evt) { 19 function modifiedListener(evt) {
18 document.removeEventListener("DOMCharacterDataModified", modifiedListener); 20 document.removeEventListener("DOMCharacterDataModified", modifiedListener);
19 window.getSelection().getRangeAt(0).insertNode(document.getElementById('dfn')) ; 21 window.getSelection().getRangeAt(0).insertNode(document.getElementById('dfn')) ;
20 } 22 }
21 </script> 23 </script>
22 <body> 24 <body>
23 <!-- Passes if no CRASH in debug. --> 25 <!-- Passes if no CRASH in debug. -->
24 26
25 <dfn id='dfn'></dfn> 27 <dfn id='dfn'></dfn>
26 28
27 <span> 29 <span>
28 <div id='node'> 30 <div id='node'>
29 c B 31 c B
30 </div> 32 </div>
31 </span> 33 </span>
32 </body> 34 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/first-letter-range-insert-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698