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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/w3c/resources/keyframes-test.js

Issue 2910883002: Clean up duplicate tests in web-animations-api (Closed)
Patch Set: Rebase and remove one more reference to deleted test Created 3 years, 6 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/web-animations-api/w3c/resources/keyframes-test.js
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/w3c/resources/keyframes-test.js b/third_party/WebKit/LayoutTests/web-animations-api/w3c/resources/keyframes-test.js
deleted file mode 100644
index 4613a3255a43c4e46e37a24fa7729bd6d942600d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/w3c/resources/keyframes-test.js
+++ /dev/null
@@ -1,31 +0,0 @@
-(function(){
-'use strict'
-
-function createElement() {
- var element = document.createElement('div');
- document.documentElement.appendChild(element);
- return element;
-}
-
-function heldTiming(progress) {
- return {
- duration: 1000,
- fill: 'forwards',
- delay: -progress * 1000,
- };
-}
-
-function assertAnimationStyles(keyframes, expectations, description) {
- for (var progress in expectations) {
- var element = createElement();
- element.animate(keyframes, heldTiming(progress));
- var computedStyle = getComputedStyle(element);
- for (var property in expectations[progress]) {
- assert_equals(computedStyle[property], expectations[progress][property],
- property + ' at ' + (progress * 100) + '%' + (description ? ' ' + description : ''));
- }
- }
-}
-
-window.assertAnimationStyles = assertAnimationStyles;
-})();

Powered by Google App Engine
This is Rietveld 408576698