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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/w3c/simple-keyframes.html

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
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/w3c/resources/keyframes-test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/w3c/simple-keyframes.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/w3c/simple-keyframes.html b/third_party/WebKit/LayoutTests/web-animations-api/w3c/simple-keyframes.html
deleted file mode 100644
index 8b25404c5dba16bf42d4221236b1ffb28caadf32..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/w3c/simple-keyframes.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Animate() with no offsets</title>
-<link rel="help" href="https://w3c.github.io/web-animations/#keyframe-animation-effects">
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="../../external/wpt/web-animations/testcommon.js"></script>
-<body>
-<script>
-'use strict';
-test(function(t) {
- var keyframes = [
- {opacity: '0.25', left: '25px'},
- {opacity: '0.75', left: '75px'},
- ];
- var expectations = {
- 0.5: {opacity: '0.5', left: '50px'},
- };
- for (var progress in expectations) {
- var element = createDiv(t);
- element.animate(keyframes, {
- duration: 1000,
- fill: 'forwards',
- delay: -progress * 1000,
- });
- var computedStyle = getComputedStyle(element);
- for (var property in expectations[progress]) {
- assert_equals(computedStyle[property], expectations[progress][property],
- property + ' at ' + (progress * 100) + '%');
- }
- }
-}, 'element.animate() with 2 keyframes');
-
-test(function(t) {
- var keyframes =[
- {opacity: '0', left: '0px'},
- {opacity: '0.25', left: '25px'},
- {opacity: '0.75', left: '75px'},
- ];
- var expectations = {
- 0.25: {opacity: '0.125', left: '12.5px'},
- 0.75: {opacity: '0.5', left: '50px'},
- };
- for (var progress in expectations) {
- var element = createDiv(t);
- element.animate(keyframes, {
- duration: 1000,
- fill: 'forwards',
- delay: -progress * 1000,
- });
- var computedStyle = getComputedStyle(element);
- for (var property in expectations[progress]) {
- assert_equals(computedStyle[property], expectations[progress][property],
- property + ' at ' + (progress * 100) + '%');
- }
- }
-}, 'element.animate() with 3 keyframes');
-</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/w3c/resources/keyframes-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698