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

Unified Diff: third_party/WebKit/LayoutTests/animations/timing-model.html

Issue 2970883003: Separate out animations tests with prefixing (Closed)
Patch Set: Rebaseline virtual/threaded version of test too Created 3 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/animations/timing-model.html
diff --git a/third_party/WebKit/LayoutTests/animations/timing-model.html b/third_party/WebKit/LayoutTests/animations/timing-model.html
index bf839fc7538de46efaf80cc8a471ec52b86c672a..1b3991472ee0bcccee30f87a54f5e13289242919 100644
--- a/third_party/WebKit/LayoutTests/animations/timing-model.html
+++ b/third_party/WebKit/LayoutTests/animations/timing-model.html
@@ -283,9 +283,8 @@ function log(message, klass) {
document.body.appendChild(child);
}
-var prefix = 'animation' in document.body.style ? '' : '-webkit-';
function assertIterationTime(animation, expectations) {
- testElement.style.setProperty(prefix + 'animation', 'invalid ' + animation);
+ testElement.style.setProperty('animation', 'invalid ' + animation);
update();
expectations.forEach(function(expectation) {
@@ -293,18 +292,12 @@ function assertIterationTime(animation, expectations) {
console.log('ERROR: Test requires too much precision. ' + JSON.stringify(expectation));
return;
}
- testElement.style.setProperty(prefix + 'animation-name', 'invalid');
+ testElement.style.setProperty('animation-name', 'invalid');
update();
var delay = expectation.at * -1;
- testElement.style.setProperty(prefix + 'animation-delay', delay + 's');
- testElement.style.setProperty(prefix + 'animation-name', 'test');
- update();
- // FIXME: Set play-state: paused before starting the animation.
- // For now, updating the style another two times makes this work in WebKit/Blink
- testElement.style.setProperty(prefix + 'animation-name', 'test');
- update();
- testElement.style.setProperty(prefix + 'animation-name', 'test');
+ testElement.style.setProperty('animation-delay', delay + 's');
+ testElement.style.setProperty('animation-name', 'test');
update();
var result = getComputedStyle(testElement).left;
@@ -330,14 +323,6 @@ body {
font-weight: bold;
color: red;
}
-@-webkit-keyframes test {
- 0% {
- left: 0px;
- }
- 100% {
- left: 1px;
- }
-}
@keyframes test {
0% {
left: 0px;

Powered by Google App Engine
This is Rietveld 408576698