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

Side by Side Diff: LayoutTests/editing/input/scroll-viewport-page-up-down.html

Issue 1212753002: Convert tests (except fast/, imported/) using ahem font to ahem.js style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 <head> 1 <head>
2 <script src="../../resources/ahem.js"></script>
2 <style type="text/css"> 3 <style type="text/css">
3 .ahem { font: 20px Ahem; } 4 .ahem { font: 20px Ahem; }
4 </style> 5 </style>
5 <script> 6 <script>
6 7
7 if (window.testRunner) 8 if (window.testRunner)
8 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
9 10
10 var onMacPlatform = navigator.userAgent.search(/\bMac OS X\b/) != -1; 11 var onMacPlatform = navigator.userAgent.search(/\bMac OS X\b/) != -1;
11 12
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 <div>Page up/down (option+page up/down on Mac) should move the move cursor and s croll the content 81 <div>Page up/down (option+page up/down on Mac) should move the move cursor and s croll the content
81 in contenteditable elements. This sample covers scroll position test of a) ifram e element containing 82 in contenteditable elements. This sample covers scroll position test of a) ifram e element containing
82 contenteditable body and b) content editable div element. Even though the cursor will move exactly to 83 contenteditable body and b) content editable div element. Even though the cursor will move exactly to
83 the same location on all platforms (covered by test option-page-up-down.html), p lease note that Mac will 84 the same location on all platforms (covered by test option-page-up-down.html), p lease note that Mac will
84 scroll the visible area by placing the cursor position in the middle. All other platforms will scroll by 85 scroll the visible area by placing the cursor position in the middle. All other platforms will scroll by
85 keeping the cursor aligned with the top edge of the visible area. </div> 86 keeping the cursor aligned with the top edge of the visible area. </div>
86 <iframe src="../resources/contenteditable-iframe-fixed-size-src.html" style="hei ght:150px; padding: 0px;"></iframe> 87 <iframe src="../resources/contenteditable-iframe-fixed-size-src.html" style="hei ght:150px; padding: 0px;"></iframe>
87 <div id="editable" contenteditable="true" class="ahem" style="height:150px; over flow:auto; padding: 0px; margin: 0px;"></div> 88 <div id="editable" contenteditable="true" class="ahem" style="height:150px; over flow:auto; padding: 0px; margin: 0px;"></div>
88 <div id="results"></div> 89 <div id="results"></div>
89 </body> 90 </body>
OLDNEW
« no previous file with comments | « LayoutTests/editing/input/option-page-up-down.html ('k') | LayoutTests/editing/pasteboard/smart-paste-in-text-control.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698