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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/DocumentTimeline/constructor.html

Issue 2408083002: Revert of Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Created 4 years, 2 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
Index: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/DocumentTimeline/constructor.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/DocumentTimeline/constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/DocumentTimeline/constructor.html
index 8968ff4ce8e3ec6c7aafd5bbc2b707cf6601b556..efdf1118e2ea33559a85507e1104a828f81596ce 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/DocumentTimeline/constructor.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/DocumentTimeline/constructor.html
@@ -11,32 +11,24 @@
"use strict";
test(function(t) {
- var timeline = new DocumentTimeline();
+ var timeline = new DocumentTimeline(0);
assert_times_equal(timeline.currentTime, document.timeline.currentTime);
-}, 'An origin time of zero is used when none is supplied');
+}, 'zero origin time');
test(function(t) {
- var timeline = new DocumentTimeline({ originTime: 0 });
- assert_times_equal(timeline.currentTime, document.timeline.currentTime);
-}, 'A zero origin time produces a document timeline with a current time ' +
- 'identical to the default document timeline');
-
-test(function(t) {
- var timeline = new DocumentTimeline({ originTime: 10 * MS_PER_SEC });
+ var timeline = new DocumentTimeline(10 * MS_PER_SEC);
assert_times_equal(timeline.currentTime,
(document.timeline.currentTime - 10 * MS_PER_SEC));
-}, 'A positive origin time makes the document timeline\'s current time lag ' +
- 'behind the default document timeline');
+}, 'positive origin time');
test(function(t) {
- var timeline = new DocumentTimeline({ originTime: -10 * MS_PER_SEC });
+ var timeline = new DocumentTimeline(-10 * MS_PER_SEC);
assert_times_equal(timeline.currentTime,
(document.timeline.currentTime + 10 * MS_PER_SEC));
-}, 'A negative origin time makes the document timeline\'s current time run ' +
- 'ahead of the default document timeline');
+}, 'negative origin time');
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698