OLD | NEW |
---|---|
(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> | |
OLD | NEW |