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

Side by Side Diff: LayoutTests/editing/selection/internal-caret-rect.html

Issue 58533003: Move fast/js/resources files to resources. (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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js" type="text/javascript"></sc ript> 4 <script src="../../resources/js-test.js" type="text/javascript"></script>
5 <style> 5 <style>
6 body { 6 body {
7 font: 20px Ahem; 7 font: 20px Ahem;
8 } 8 }
9 </style> 9 </style>
10 </head> 10 </head>
11 <body> 11 <body>
12 <p> Bug <a href="http://webkit.org/b/86390">86390</a>: Expose FrameSelection::ab soluteCaretBounds via window.internals</p> 12 <p> Bug <a href="http://webkit.org/b/86390">86390</a>: Expose FrameSelection::ab soluteCaretBounds via window.internals</p>
13 <p>This test demonstrates the usage of window.internals.absoluteCaretBounds()</p > 13 <p>This test demonstrates the usage of window.internals.absoluteCaretBounds()</p >
14 <div id="testDiv" CONTENTEDITABLE>abcd</div> 14 <div id="testDiv" CONTENTEDITABLE>abcd</div>
(...skipping 19 matching lines...) Expand all
34 getSelection().collapse(textNode, 1); // after a 34 getSelection().collapse(textNode, 1); // after a
35 verifyCaretRect(28, 160, 1, 20); 35 verifyCaretRect(28, 160, 1, 20);
36 getSelection().collapse(textNode, 2); // after b 36 getSelection().collapse(textNode, 2); // after b
37 verifyCaretRect(48, 160, 1, 20); 37 verifyCaretRect(48, 160, 1, 20);
38 getSelection().collapse(textNode, 3); // after c 38 getSelection().collapse(textNode, 3); // after c
39 verifyCaretRect(68, 160, 1, 20); 39 verifyCaretRect(68, 160, 1, 20);
40 getSelection().collapse(textNode, 4); // after d 40 getSelection().collapse(textNode, 4); // after d
41 verifyCaretRect(88, 160, 1, 20); 41 verifyCaretRect(88, 160, 1, 20);
42 </script> 42 </script>
43 </html> 43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698