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

Side by Side Diff: LayoutTests/fast/repaint/positioned-input-text-cursor-repaint.html

Issue 709613003: To ensure consistency between layouts, we need to reset any overriden top for centering the textfie… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
(Empty)
1 <!DOCTYPE html>
Julien - ping for review 2014/11/11 16:57:58 This test is not in the right directory: fast/repa
pals 2014/11/12 13:29:08 Done.
2 <script>
3 var i = 0;
4 var refreshIntervalId;
5
6 function repaintTest()
7 {
8 refreshIntervalId = setInterval(function(){moveInputElement();}, 10);
Julien - ping for review 2014/11/11 16:57:58 setInterval is *almost never* a good solution. If
pals 2014/11/12 13:29:08 The bug does not reproduce in case of fulllayout.
Julien - ping for review 2014/11/19 01:13:27 simplifiedlayout is just a type of layout. You sho
9 }
10
11 function moveInputElement()
12 {
13 var input = document.getElementById('input');
14 i++;
15 input.style.left = i*10 + 'px';
16 input.style.width = '200px';
17 if (i >= 3) {
18 clearInterval(refreshIntervalId);
19 if (window.testRunner)
20 testRunner.notifyDone();
21 }
22 }
23
24 if (window.testRunner)
25 testRunner.waitUntilDone();
26 window.onload = repaintTest();
27 </script>
28
29 <style>
30 input {
31 position: absolute;
32 top: 0;
33 left: 0;
34 height: 50px;
35 }
36 </style>
37
Julien - ping for review 2014/11/11 16:57:58 Tests should have a description of what they test
pals 2014/11/12 13:29:08 Done.
38 <input id="input" type="text" autofocus>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698