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

Side by Side Diff: LayoutTests/editing/deleting/delete-character-003.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 <div id="container"> 1 <div id="container">
2 <div id="sample" contenteditable="true"></div> 2 <div id="sample" contenteditable="true"></div>
3 </div> 3 </div>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 function $(id) { return document.getElementById(id); } 6 function $(id) { return document.getElementById(id); }
7 var sample = $('sample'); 7 var sample = $('sample');
8 var selection = window.getSelection(); 8 var selection = window.getSelection();
9 function testIt(sourceHTML, expectedHTML, expectedNode, expectedOffset) 9 function testIt(sourceHTML, expectedHTML, expectedNode, expectedOffset)
10 { 10 {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 testIt('a<br><br>|b', 'a<br>b', 'sample.lastChild', 0); 43 testIt('a<br><br>|b', 'a<br>b', 'sample.lastChild', 0);
44 testIt('a<br><br><br>|b', 'a<br><br>b', 'sample.lastChild', 0); 44 testIt('a<br><br><br>|b', 'a<br><br>b', 'sample.lastChild', 0);
45 45
46 testIt('a<br>b|', 'a<br><br>', 'sample', 2); 46 testIt('a<br>b|', 'a<br><br>', 'sample', 2);
47 testIt('a<br><br>b|', 'a<br><br><br>', 'sample', 3); 47 testIt('a<br><br>b|', 'a<br><br><br>', 'sample', 3);
48 testIt('a<br><br><br>b|', 'a<br><br><br><br>', 'sample', 4); 48 testIt('a<br><br><br>b|', 'a<br><br><br><br>', 'sample', 4);
49 49
50 if (window.testRunner) 50 if (window.testRunner)
51 $('container').outerHTML = ''; 51 $('container').outerHTML = '';
52 </script> 52 </script>
53 <script src="../../fast/js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/editing/deleting/delete-character-002.html ('k') | LayoutTests/editing/deleting/delete-listitem-003.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698