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

Side by Side Diff: LayoutTests/editing/selection/caret-in-empty-inline-2.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 <!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="../../fast/js/resources/js-test-pre.js" type="text/javascript"></sc ript>
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/85793">85793</a>: Caret is not rendered in empty inline contenteditable elements</p> 12 <p> Bug <a href="http://webkit.org/b/85793">85793</a>: Caret is not rendered in empty inline contenteditable elements</p>
13 <p>This test verifies that an empty inline contenteditable element, placed after 13 <p>This test verifies that an empty inline contenteditable element, placed after
14 another inline element, gets a valid caret rect.</p> 14 another inline element, gets a valid caret rect.</p>
15 <span>Previous span</span><span id="testInline" CONTENTEDITABLE></span><br> 15 <span>Previous span</span><span id="testInline" CONTENTEDITABLE></span><br>
16 <div id="console"></div> 16 <div id="console"></div>
17 </body> 17 </body>
18 <script> 18 <script>
19 var testInline = document.getElementById("testInline"); 19 var testInline = document.getElementById("testInline");
20 getSelection().collapse(testInline, 0); 20 getSelection().collapse(testInline, 0);
21 if (window.internals) { 21 if (window.internals) {
22 var caretRect = internals.absoluteCaretBounds(); 22 var caretRect = internals.absoluteCaretBounds();
23 shouldBe("caretRect.left", "268"); 23 shouldBe("caretRect.left", "268");
24 shouldBe("caretRect.top", "180"); 24 shouldBe("caretRect.top", "180");
25 shouldBe("caretRect.width", "1"); 25 shouldBe("caretRect.width", "1");
26 shouldBe("caretRect.height", "20"); 26 shouldBe("caretRect.height", "20");
27 } 27 }
28 </script> 28 </script>
29 <script src="../../fast/js/resources/js-test-post.js" type="text/javascript"></s cript>
30 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698