summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api
diff options
context:
space:
mode:
authordstockwell@chromium.org <dstockwell@chromium.org>2014-09-09 05:20:33 +0000
committerdstockwell@chromium.org <dstockwell@chromium.org>2014-09-09 05:20:33 +0000
commit01ac92ee146eb72b6e0951a755813a74f90bbffb (patch)
tree85020ca2b1477e327d73bdb7dbebad60acfb0283 /third_party/WebKit/LayoutTests/web-animations-api
parent266006feafc78719905619ba7a83e7933182d752 (diff)
downloadchromium_src-01ac92ee146eb72b6e0951a755813a74f90bbffb.zip
chromium_src-01ac92ee146eb72b6e0951a755813a74f90bbffb.tar.gz
chromium_src-01ac92ee146eb72b6e0951a755813a74f90bbffb.tar.bz2
Web Animations: Zero time of the document timeline should correspond with navigationStart
See: http://dev.w3.org/fxtf/web-animations/#dfn-zero-time Review URL: https://codereview.chromium.org/551253002 git-svn-id: svn://svn.chromium.org/blink/trunk@181608 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/timeline-time.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/timeline-time.html b/third_party/WebKit/LayoutTests/web-animations-api/timeline-time.html
index 9c86843..a608400 100644
--- a/third_party/WebKit/LayoutTests/web-animations-api/timeline-time.html
+++ b/third_party/WebKit/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>