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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/timeline-time.html

Issue 2145843002: Add meta, help and title to web-animations-api/timeline-time.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update link 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Document timeline is increasing</title>
4 <link rel="help" href="http://w3c.github.io/web-animations/#the-documents-defaul t-timeline">
2 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
4 7
5 <script> 8 <script>
6 test(function() { 9 test(function() {
7 var startTime = document.timeline.currentTime; 10 var startTime = document.timeline.currentTime;
8 assert_greater_than_equal(startTime, 0); 11 assert_greater_than_equal(startTime, 0);
9 var start = performance.now(); 12 var start = performance.now();
10 while (performance.now() < start + 250) 13 while (performance.now() < start + 250)
11 /* wait */; 14 /* wait */;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 var timeoutTest = async_test('document.timeline.currentTime time should use th e same reference as performance.now()'); 51 var timeoutTest = async_test('document.timeline.currentTime time should use th e same reference as performance.now()');
49 52
50 setTimeout(function() { 53 setTimeout(function() {
51 timeoutTest.step(function() { 54 timeoutTest.step(function() {
52 assert_less_than(Math.abs(document.timeline.currentTime - performance.now( )), 1000); 55 assert_less_than(Math.abs(document.timeline.currentTime - performance.now( )), 1000);
53 }); 56 });
54 timeoutTest.done(); 57 timeoutTest.done();
55 }, 0); 58 }, 0);
56 })(); 59 })();
57 </script> 60 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698