diff options
author | dstockwell@chromium.org <dstockwell@chromium.org> | 2014-09-09 05:20:33 +0000 |
---|---|---|
committer | dstockwell@chromium.org <dstockwell@chromium.org> | 2014-09-09 05:20:33 +0000 |
commit | 01ac92ee146eb72b6e0951a755813a74f90bbffb (patch) | |
tree | 85020ca2b1477e327d73bdb7dbebad60acfb0283 /third_party/WebKit/LayoutTests/web-animations-api | |
parent | 266006feafc78719905619ba7a83e7933182d752 (diff) | |
download | chromium_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.html | 11 |
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> |