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

Unified Diff: LayoutTests/web-animations-api/partial-keyframes.html

Issue 1326443003: Web Animations: Enable additive animations in experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update missed tests Created 5 years, 3 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: LayoutTests/web-animations-api/partial-keyframes.html
diff --git a/LayoutTests/web-animations-api/partial-keyframes.html b/LayoutTests/web-animations-api/partial-keyframes.html
deleted file mode 100644
index ca573a6d1ac35927fa9aca73c442ff4f9a7489ad..0000000000000000000000000000000000000000
--- a/LayoutTests/web-animations-api/partial-keyframes.html
+++ /dev/null
@@ -1,131 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<body>
- <div id='e'></div>
-</body>
-
-<script>
-var element = document.getElementById('e');
-
-test(function() {
- var partialKeyframes1 = [
- {opacity: '1', color: 'red'},
- {opacity: '0'}
- ];
- var partialKeyframes2 = [
- {opacity: '1'},
- {opacity: '0', color: 'red'}
- ];
- var partialKeyframes3 = [
- {opacity: '1', color: 'red'},
- {opacity: '0', color: 'foo'}
- ];
- var partialKeyframes4 = [
- {opacity: '1', color: 'foo'},
- {opacity: '0', color: 'red'}
- ];
-
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes1); });
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes2); });
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes3); });
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes4); });
-}, 'Calling new KeyframeEffect() with a mismatched keyframe property should throw a NotSupportedError.');
-
-test(function() {
- var validKeyframes1 = [
- {opacity: '1'},
- {opacity: '0.3', offset: 0.5},
- {opacity: '0', offset: 1}
- ];
- var validKeyframes2 = [
- {width: '0px'},
- {height: '0px', offset: 0},
- {width: '10px', height: '10px', offset: 1}
- ];
-
- assert_not_equals(new KeyframeEffect(element, validKeyframes1), undefined);
- assert_not_equals(new KeyframeEffect(element, validKeyframes2), undefined);
-}, 'Calling new KeyframeEffect() with no offset specified for the first keyframe should create and animation.');
-
-test(function() {
- var partialKeyframes1 = [
- {opacity: '1', offset: 0.1},
- {opacity: '0', offset: 1}
- ];
- var partialKeyframes2 = [
- {opacity: '1', offset: 0.1},
- {opacity: '0'}
- ];
-
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes1); });
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes2); });
-}, 'Calling new KeyframeEffect() with the offset of the first keyframe specified but not equal to 0 should throw a NotSupportedError.');
-
-test(function() {
- var validKeyframes1 = [
- {opacity: '1', offset: 0},
- {opacity: '0.3', offset: 0.5},
- {opacity: '0'}
- ];
- var validKeyframes2 = [
- {width: '0px', height: '0px', offset: 0},
- {height: '10px', offset: 1},
- {width: '10px'}
- ];
-
- assert_not_equals(new KeyframeEffect(element, validKeyframes1), undefined);
- assert_not_equals(new KeyframeEffect(element, validKeyframes2), undefined);
-}, 'Calling new KeyframeEffect() with no offset specified for the last keyframe should create an animation.');
-
-test(function() {
- var partialKeyframes1 = [
- {opacity: '1', offset: 0},
- {opacity: '0', offset: 0.1}
- ];
- var partialKeyframes2 = [
- {opacity: '1'},
- {opacity: '0', offset: 0.1}
- ];
-
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes1); });
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes2); });
-}, 'Calling new KeyframeEffect() with the offset of the last keyframe specified but not equal to 1 should throw a NotSupportedError.');
-
-test(function() {
- var partialKeyframes1 = [
- {width: '0px', height: '0px', offset: 0},
- {height: '10px'},
- {width: '10px', offset: 1}
- ];
- var partialKeyframes2 = [
- {width: '0px', height: '0px', offset: 0},
- {height: '10px'},
- {width: '10px'}
- ];
-
- // Height is missing keyframe at offset: 1
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes1); });
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes2); });
-}, 'Calling new KeyframeEffect() with a keyframe that has no offset specified, is followed by other keyframes, ' +
- 'and is the last keyframe for a property, should throw a NotSupportedError.');
-
-test(function() {
- var partialKeyframes1 = [
- {width: '0px', offset: 0},
- {height: '0px'},
- {width: '10px', height: '10px', offset: 1}
- ];
- var partialKeyframes2 = [
- {width: '0px'},
- {height: '0px'},
- {width: '10px', height: '10px', offset: 1}
- ];
-
- // Height is missing keyframe at offset: 0
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes1); });
- assert_throws('NOT_SUPPORTED_ERR', function() { new KeyframeEffect(element, partialKeyframes2); });
-}, 'Calling new KeyframeEffect() with a keyframe that has no offset specified, is preceded by other keyframes, ' +
- 'and is the first keyframe for a property, should throw a NotSupportedError.');
-</script>
« no previous file with comments | « LayoutTests/fast/inline/inline-marquee-crash-expected.txt ('k') | LayoutTests/web-animations-api/w3c/add-keyframes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698