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

Side by Side Diff: LayoutTests/editing/selection/extend-by-word-002.html

Issue 249353003: Apply the correct style to first-letter pseudo elements composed of different renderers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 3
4 <style> 4 <style>
5 .editing { 5 .editing {
6 border: 2px solid red; 6 border: 2px solid red;
7 padding: 12px; 7 padding: 12px;
8 font-size: 24px; 8 font-size: 24px;
9 } 9 }
10 .cell { 10 .cell {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 range.setStart($("test").querySelectorAll("li")[0], 0); 58 range.setStart($("test").querySelectorAll("li")[0], 0);
59 var selection = window.getSelection(); 59 var selection = window.getSelection();
60 selection.removeAllRanges(); 60 selection.removeAllRanges();
61 selection.addRange(range); 61 selection.addRange(range);
62 for (var i = 0; i < 6; ++i) 62 for (var i = 0; i < 6; ++i)
63 selection.modify('extend', 'forward', 'word'); 63 selection.modify('extend', 'forward', 'word');
64 shouldBeEqualToString('selection.type', 'Range'); 64 shouldBeEqualToString('selection.type', 'Range');
65 shouldBe('selection.anchorNode', '$("test").querySelectorAll("li")[0].childNodes [0]'); 65 shouldBe('selection.anchorNode', '$("test").querySelectorAll("li")[0].childNodes [0]');
66 shouldBe('selection.anchorOffset', '0'); 66 shouldBe('selection.anchorOffset', '0');
67 shouldBe('selection.focusNode', '$("test").querySelectorAll("li a")[3].firstChil d'); 67 shouldBe('selection.focusNode', '$("test").querySelectorAll("li a")[3].firstChil d');
68 shouldBe('selection.focusOffset', '4'); 68 shouldBe('selection.focusOffset', '5');
69 if (window.testRunner) 69 if (window.testRunner)
70 $('container').outerHTML = ''; 70 $('container').outerHTML = '';
71 </script> 71 </script>
72 </body> 72 </body>
73 </html> 73 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/selection/extend-by-word-002-expected.txt » ('j') | Source/core/rendering/RenderBlock.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698