summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api
diff options
context:
space:
mode:
authorrjwright@chromium.org <rjwright@chromium.org>2014-10-23 07:08:21 +0000
committerrjwright@chromium.org <rjwright@chromium.org>2014-10-23 07:08:21 +0000
commitd973c79face6c8155156f456b87b25214b604e42 (patch)
tree865e038abbde917dd29d0a2a62edc73bc8e32c6a /third_party/WebKit/LayoutTests/web-animations-api
parent97cc194864fa7987e6fbb9123a2d1b90ab830ce8 (diff)
downloadchromium_src-d973c79face6c8155156f456b87b25214b604e42.zip
chromium_src-d973c79face6c8155156f456b87b25214b604e42.tar.gz
chromium_src-d973c79face6c8155156f456b87b25214b604e42.tar.bz2
Move timeline get CSS AnimationPlayers W3C test into seperate file.
This test case fails in the Web Animations Polyfill (https://github.com/web-animations/web-animations-next) so we moved it to its own file. We don't want these tests to fork into a polyfill version and a blink version, so I'm replicating the change here. BUG= Review URL: https://codereview.chromium.org/650543004 git-svn-id: svn://svn.chromium.org/blink/trunk@184237 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/web-animations-api')
-rw-r--r--third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html (renamed from third_party/WebKit/LayoutTests/web-animations-api/w3c/getAnimationPlayers.html)33
-rw-r--r--third_party/WebKit/LayoutTests/web-animations-api/w3c/get-css-players.html39
2 files changed, 40 insertions, 32 deletions
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/w3c/getAnimationPlayers.html b/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html
index a2ee8e6..4a99acb 100644
--- a/third_party/WebKit/LayoutTests/web-animations-api/w3c/getAnimationPlayers.html
+++ b/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-animation-players.html
@@ -1,15 +1,6 @@
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
-<style>
-@keyframes test {
- from { opacity: 0; }
- to { opacity: 1; }
-}
-.cssAnimation {
- animation: test 2s;
-}
-</style>
<div id='container'>
<div id='element'></div>
</div>
@@ -95,26 +86,4 @@ test(function() {
}, 'getAnimationPlayers() with delays');
-async_test(function(t) {
- assert_equals(document.timeline.getAnimationPlayers().length, 0);
- assert_equals(container.getAnimationPlayers().length, 0);
- assert_equals(element.getAnimationPlayers().length, 0);
-
- element.className = 'cssAnimation';
- t.step(function() {
- onload = function () {
- var players = document.timeline.getAnimationPlayers();
- assert_equals(players.length, 1);
- assert_equals(container.getAnimationPlayers().length, 0);
- assert_equals(element.getAnimationPlayers().length, 1);
-
- players[0].finish();
- assert_equals(document.timeline.getAnimationPlayers().length, 0);
- assert_equals(container.getAnimationPlayers().length, 0);
- assert_equals(element.getAnimationPlayers().length, 0);
- t.done();
- }
- });
-}, 'getAnimationPlayers() with cssanimations');
-
-</script> \ No newline at end of file
+</script>
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-css-players.html b/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-css-players.html
new file mode 100644
index 0000000..d4828bb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/web-animations-api/w3c/get-css-players.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script><style>
+@keyframes test {
+ from { opacity: 0; }
+ to { opacity: 1; }
+}
+.cssAnimation {
+ animation: test 2s;
+}
+</style>
+<div id='container'>
+ <div id='element'></div>
+</div>
+
+<script>
+async_test(function(t) {
+ assert_equals(document.timeline.getAnimationPlayers().length, 0);
+ assert_equals(container.getAnimationPlayers().length, 0);
+ assert_equals(element.getAnimationPlayers().length, 0);
+
+ element.className = 'cssAnimation';
+ onload = function () {
+ t.step(function() {
+ var players = document.timeline.getAnimationPlayers();
+ assert_equals(players.length, 1);
+ assert_equals(container.getAnimationPlayers().length, 0);
+ assert_equals(element.getAnimationPlayers().length, 1);
+
+ players[0].finish();
+ assert_equals(document.timeline.getAnimationPlayers().length, 0);
+ assert_equals(container.getAnimationPlayers().length, 0);
+ assert_equals(element.getAnimationPlayers().length, 0);
+ t.done();
+ });
+ }
+}, 'getAnimationPlayers() with cssanimations');
+
+</script>