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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/animation-source-becomes-longer.html

Issue 2141833002: Rename the test and use testcommon.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a failing test expectations Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/animation-source-becomes-longer-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/web-animations-api/animation-source-becomes-longer.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-source-becomes-longer.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-source-becomes-longer.html
new file mode 100644
index 0000000000000000000000000000000000000000..3b7cc7a055eba94b6d42516cfe6f36d30b5d9cb6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/web-animations-api/animation-source-becomes-longer.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Test that extending effect should not cause a change in start time</title>
+<link rel="https://w3c.github.io/web-animations/#the-animation-interface">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../imported/wpt/web-animations/testcommon.js"></script>
+<script>
+test(function() {
+ var animation = document.documentElement.animate([], 1000);
+ animation.effect.timing.duration = 1500;
+ assert_times_equal(animation.effect.timing.duration, 1000);
+}, 'animation.effect should be rea');
alancutter (OOO until 2018) 2016/07/12 05:43:47 Reeeeeeeeeeeeeeeeeeeeeeeea.
nainar 2016/07/12 06:02:53 pants
+
+test(function() {
nainar 2016/07/12 04:44:29 Should this test be removed then?
alancutter (OOO until 2018) 2016/07/12 05:43:47 Sure. It's against spec and not shipping, I think
nainar 2016/07/12 06:02:53 Done.
+ document.timeline.playbackRate = 0;
+ document.timeline.currentTime = 0;
+ var animation = document.documentElement.animate([], 1000);
+ animation.startTime = -1000;
+
+ assert_times_equal(animation.currentTime, 1000);
+
+ animation.effect.timing.duration = 1500;
+ document.timeline.currentTime = 2000;
+
+ assert_times_equal(animation.effect.timing.duration, 1000);
+ assert_times_equal(animation.startTime, -1000);
+ assert_times_equal(animation.currentTime, 1500);
+}, 'Extending effect should not cause a change in start time.');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/animation-source-becomes-longer-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698