Chromium Code Reviews| Index: LayoutTests/transitions/interrupted-immediately.html |
| diff --git a/LayoutTests/transitions/interrupted-all-transition.html b/LayoutTests/transitions/interrupted-immediately.html |
| similarity index 88% |
| copy from LayoutTests/transitions/interrupted-all-transition.html |
| copy to LayoutTests/transitions/interrupted-immediately.html |
| index 3c4e1ecd147312448ea753b53f526e1368a1ea97..88f6d15f4112a9fdd6f940478770d6da4b7b5784 100644 |
| --- a/LayoutTests/transitions/interrupted-all-transition.html |
| +++ b/LayoutTests/transitions/interrupted-immediately.html |
| @@ -29,24 +29,23 @@ |
| { |
| var box = document.getElementById('box'); |
| box.style.left = '300px'; |
| - box.style.opacity = 0.5; |
| window.setTimeout(function() { |
|
dstockwell
2013/12/16 09:54:08
Do we need the setTimeout?
Can this be something
Eric Willigers
2013/12/16 23:26:50
We didn't need the first setTimeout for interrupti
dstockwell
2013/12/17 00:15:31
Yeah, what I had is clearly wrong. Since we don't
|
| box.style.left = '0px'; |
| window.setTimeout(function() { |
| var boxPos = parseInt(window.getComputedStyle(box).left); |
| - document.getElementById('result').innerHTML = (boxPos < 200) ? "PASS" : "FAIL"; |
| + document.getElementById('result').innerHTML = (boxPos < 50) ? "PASS" : "FAIL"; |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| }, 250); |
| - }, 500); |
| + }, 1); |
| } |
| window.addEventListener('load', startTransition, false) |
| </script> |
| </head> |
| <body> |
| -<p>Box should start moving left after left style is reset after 500ms</p> |
| +<p>Box should stay left as style is reset after 1ms</p> |
| <div id="container"> |
| <div id="box"> |
| </div> |