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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/cancel.html

Issue 2143653006: Import wpt@c875b4212a473363afe8c09f012edf201386cb5b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update W3CImportExpectations Created 4 years, 5 months 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: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/cancel.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/cancel.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/cancel.html
index 73f05ee1dd38b1ffd753cf034b223b50d143fa63..d7b0df2883d4dede76ed7770840338710d6f63e6 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/cancel.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animation/cancel.html
@@ -13,7 +13,7 @@
promise_test(function(t) {
var div = createDiv(t);
- var animation = div.animate({transform: ['none', 'translate(100px)']},
+ var animation = div.animate({transform: ['translate(100px)', 'translate(100px)']},
100 * MS_PER_SEC);
return animation.ready.then(function() {
assert_not_equals(getComputedStyle(div).transform, 'none',
@@ -26,7 +26,7 @@ promise_test(function(t) {
test(function(t) {
var div = createDiv(t);
- var animation = div.animate({marginLeft: ['0px', '100px']},
+ var animation = div.animate({marginLeft: ['100px', '200px']},
100 * MS_PER_SEC);
animation.effect.timing.easing = 'linear';
animation.cancel();
@@ -34,7 +34,7 @@ test(function(t) {
'margin-left style is not animated after cancelling');
animation.currentTime = 50 * MS_PER_SEC;
- assert_equals(getComputedStyle(div).marginLeft, '50px',
+ assert_equals(getComputedStyle(div).marginLeft, '150px',
'margin-left style is updated when cancelled animation is'
+ ' seeked');
}, 'After cancelling an animation, it can still be seeked');

Powered by Google App Engine
This is Rietveld 408576698