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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/input/reveal-edit-on-input-vertically.html

Issue 1413493005: Update layout tests to work when smooth scrolling is enabled by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on nit Created 5 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
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>After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view</div> 11 <div>After starting typing 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> 12 <div style="height:200%"></div>
13 <div>To test manually, scroll the page up to the top, then start typing. Input b ox should be scrolled into the middle of the view.</div> 13 <div>To test manually, scroll the page up to the top, then start typing. Input b ox should be scrolled into the middle of the view.</div>
14 <input type="text" name="input" id="input" /> 14 <input type="text" name="input" id="input" />
15 <div style="height:200%"></div> 15 <div style="height:200%"></div>
16 <div id="results"></div> 16 <div id="results"></div>
17 <script> 17 <script>
18 18
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.dumpAsText(); 20 testRunner.dumpAsText();
21 if (window.internals)
22 internals.settings.setScrollAnimatorEnabled(false);
21 performVerticalScrollingInputTest(); 23 performVerticalScrollingInputTest();
22 assertInputIsInTheMiddleOfViewport(); 24 assertInputIsInTheMiddleOfViewport();
23 25
24 </script> 26 </script>
25 </body> 27 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698