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

Unified Diff: LayoutTests/transitions/interrupted-immediately.html

Issue 110123005: Web Animations CSS: Record if style recalc is for animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Add test where transition is cancelled almost immediately Created 7 years 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698