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

Side by Side Diff: LayoutTests/editing/input/reveal-contenteditable-on-paste-vertically.html

Issue 914573004: Discard scrolling to the saved scroll points if there is any selection done by user. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/editing/input/reveal-contenteditable-on-paste-vertically-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <script type="text/javascript" src="resources/reveal-utilities.js"></script> 3 <script type="text/javascript" src="resources/reveal-utilities.js"></script>
4 <style type="text/css"> 4 <style type="text/css">
5 /* This is needed for divs percent heights to work. */ 5 /* This is needed for divs percent heights to work. */
6 html { height:100%; } 6 html { height:100%; }
7 body { margin:0; padding:0; height:100%; } 7 body { margin:0; padding:0; height:100%; }
8 </style> 8 </style>
9 </head> 9 </head>
10 <body> 10 <body>
11 <div contenteditable="true" id="copy">WebKit</div>
yoichio 2015/02/13 06:32:18 Why do you need to update these test? Looks not re
11 <div>After pasting text in a scrolled out of view editor control, the control is to be brought in the center of the view</div> 12 <div>After pasting text in a scrolled out of view editor control, the control is to be brought in the center of the view</div>
12 <div style="height:200%"></div> 13 <div style="height:200%"></div>
13 <div>To test manually, have some text in the clipboard, scroll the page up to th e top, then paste. The control should be scrolled into the middle of the view.</ div> 14 <div>To test manually, have some text in the clipboard, scroll the page up to th e top, then paste. The control should be scrolled into the middle of the view.</ div>
14 <div style="width:150px; border:thin solid black" contenteditable="true" id="inp ut"></div> 15 <div style="width:150px; border:thin solid black" contenteditable="true" id="inp ut"></div>
15 <div style="height:200%"></div> 16 <div style="height:200%"></div>
16 <div contenteditable="true" id="copy">WebKit</div>
17 <div id="results"></div> 17 <div id="results"></div>
18 <script> 18 <script>
19 19
20 if (window.testRunner) 20 if (window.testRunner)
21 testRunner.dumpAsText(); 21 testRunner.dumpAsText();
22 performVerticalScrollingPasteTest(); 22 performVerticalScrollingPasteTest();
23 assertInputIsInTheMiddleOfViewport(); 23 assertInputIsInTheMiddleOfViewport();
24 24
25 </script> 25 </script>
26 </body> 26 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/input/reveal-contenteditable-on-paste-vertically-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698