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

Side by Side Diff: LayoutTests/editing/selection/move-by-line-006.html

Issue 1204023002: Deflake tests using ahem font with @font-face. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline and fix an svg test Created 5 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../resources/ahem.js"></script>
3 <body> 4 <body>
4 <p>To manually run the test, put the cursor at the beginning of the next paragra ph, 5 <p>To manually run the test, put the cursor at the beginning of the next paragra ph,
5 and then press the down arrow key. The caret should go to the next line, 6 and then press the down arrow key. The caret should go to the next line,
6 not the beginning of the dashed section.</p> 7 not the beginning of the dashed section.</p>
7 8
8 <div id="result" style="font-family: Ahem; font-size: 16px; color: #fcc; width:4 00px;"> 9 <div id="result" style="font-family: Ahem; font-size: 16px; color: #fcc; width:4 00px;">
9 aaaa aaaa 10 aaaa aaaa
10 <span style="border-style: dashed; background-color: #000"> 11 <span style="border-style: dashed; background-color: #000">
11 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa 12 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa
12 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa</span> 13 aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa</span>
13 </div> 14 </div>
14 <script src="../../resources/dump-as-markup.js"></script> 15 <script src="../../resources/dump-as-markup.js"></script>
15 <script> 16 <script>
16 document.designMode = 'on'; 17 document.designMode = 'on';
17 18
18 var selection = window.getSelection(); 19 var selection = window.getSelection();
19 var result = document.getElementById('result'); 20 var result = document.getElementById('result');
20 selection.collapse(result, 0); 21 selection.collapse(result, 0);
21 selection.modify('move', 'forward', 'line'); 22 selection.modify('move', 'forward', 'line');
22 23
23 Markup.dump('result'); 24 Markup.dump('result');
24 </script> 25 </script>
25 </body> 26 </body>
26 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/dom/Document/CaretRangeFromPoint/basic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698