| Index: third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html b/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
|
| index f6da2ba927a9eafd879588fd5a232579cd445489..e3fa2dcc62e49414dd98efdeefb1484651d74b27 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/forms/relayout-shifts-inner-editor.html
|
| @@ -1,26 +1,5 @@
|
| <!DOCTYPE html>
|
| <script src="../../resources/run-after-layout-and-paint.js"></script>
|
| -<script>
|
| -var i = 0;
|
| -var refreshIntervalId;
|
| -function repaintTest()
|
| -{
|
| - refreshIntervalId = setInterval(function(){moveInputElement();}, 10);
|
| -}
|
| -function moveInputElement()
|
| -{
|
| - i++;
|
| - input.style.left = i*10 + 'px';
|
| - if (i >= 3) {
|
| - runAfterLayoutAndPaint(function() {
|
| - clearInterval(refreshIntervalId);
|
| - }, true);
|
| - }
|
| -}
|
| -if (window.testRunner)
|
| - testRunner.waitUntilDone();
|
| -window.onload = repaintTest();
|
| -</script>
|
| <style>
|
| input {
|
| position: absolute;
|
| @@ -33,3 +12,16 @@ input {
|
| <div>This change checks that the caret in the >input< below doesn't shift out of it after several layouts.</div>
|
| <div>This test has passed if the caret is centered <b>inside</b> the >input<</div>
|
| <input id="input" type="text" autofocus>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +runAfterLayoutAndPaint(function() {
|
| + input.style.left = '10px';
|
| + runAfterLayoutAndPaint(function() {
|
| + input.style.left = '20px';
|
| + runAfterLayoutAndPaint(function() {
|
| + input.style.left = '30px';
|
| + }, true);
|
| + });
|
| +});
|
| +</script>
|
|
|