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

Unified Diff: LayoutTests/web-animations-api/timeline-time.html

Issue 551253002: Web Animations: Zero time of the document timeline should correspond with navigationStart (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Specify time when resetting animation clock in tests. Created 6 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
« no previous file with comments | « no previous file | Source/core/animation/AnimationClock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/timeline-time.html
diff --git a/LayoutTests/web-animations-api/timeline-time.html b/LayoutTests/web-animations-api/timeline-time.html
index 9c86843c31507f4ee5d51e3dd25c028f6b9d0fef..a608400be4b1a80c6c1b3567e65cc99d191dc0a3 100644
--- a/LayoutTests/web-animations-api/timeline-time.html
+++ b/LayoutTests/web-animations-api/timeline-time.html
@@ -43,4 +43,15 @@ test(function() {
rafTest.done();
});
})();
+
+(function() {
+ var timeoutTest = async_test('document.timeline.currentTime time should use the same reference as performance.now()');
+
+ setTimeout(function() {
+ timeoutTest.step(function() {
+ assert_less_than(Math.abs(document.timeline.currentTime - performance.now()), 1000);
+ });
+ timeoutTest.done();
+ }, 0);
+})();
</script>
« no previous file with comments | « no previous file | Source/core/animation/AnimationClock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698