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

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

Issue 279493003: Web Animations: Fix error in clock update logic and re-enable timeline-time test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « LayoutTests/TestExpectations ('k') | Source/core/animation/AnimationClock.cpp » ('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 abe1a6b562e27a6189f6c760310d45b55a2e6d1d..9c86843c31507f4ee5d51e3dd25c028f6b9d0fef 100644
--- a/LayoutTests/web-animations-api/timeline-time.html
+++ b/LayoutTests/web-animations-api/timeline-time.html
@@ -31,7 +31,7 @@ test(function() {
requestAnimationFrame(function() {
rafTest.step(function() {
- assert_greater_than(document.timeline.currentTime, startTime);
+ assert_greater_than_equal(document.timeline.currentTime, startTime);
firstRafTime = document.timeline.currentTime;
});
});
@@ -43,25 +43,4 @@ test(function() {
rafTest.done();
});
})();
-
-(function() {
- var rafTest = async_test('document.timeline.currentTime time should be consistent with the time value passed to RAF callbacks');
- var firstRafTime;
- var firstRafDelta;
-
- requestAnimationFrame(function(t) {
- rafTest.step(function() {
- firstRafTime = document.timeline.currentTime;
- firstRafDelta = document.timeline.currentTime - t;
- });
-
- requestAnimationFrame(function(t) {
- rafTest.step(function() {
- assert_greater_than(document.timeline.currentTime, firstRafTime);
- assert_equals(document.timeline.currentTime - t, firstRafDelta);
- });
- rafTest.done();
- });
- });
-})();
</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/animation/AnimationClock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698