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

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

Issue 2910883002: Clean up duplicate tests in web-animations-api (Closed)
Patch Set: Rebase and remove one more reference to deleted test Created 3 years, 6 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/web-animations-api/timeline-time.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/timeline-time.html b/third_party/WebKit/LayoutTests/web-animations-api/timeline-time.html
deleted file mode 100644
index 76c3aaaa904d85bb8e5eaf87663cce62a93e5782..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/web-animations-api/timeline-time.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title>Document timeline is increasing</title>
-<link rel="help" href="http://w3c.github.io/web-animations/#the-documents-default-timeline">
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<script>
-test(function() {
- var startTime = document.timeline.currentTime;
- assert_greater_than_equal(startTime, 0);
- var start = performance.now();
- while (performance.now() < start + 250)
- /* wait */;
- assert_equals(document.timeline.currentTime, startTime);
-}, 'document.timeline.currentTime should not change within a script block.');
-
-(function() {
- var timeoutTest = async_test('document.timeline.currentTime time should change after a script timeout');
- var startTime = document.timeline.currentTime;
-
- setTimeout(function() {
- timeoutTest.step(function() {
- assert_greater_than(document.timeline.currentTime, startTime);
- });
- timeoutTest.done();
- }, 100);
-})();
-
-(function() {
- var rafTest = async_test('document.timeline.currentTime time should be the same for all RAF callbacks in a frame');
- var startTime = document.timeline.currentTime;
- var firstRafTime;
-
- requestAnimationFrame(function() {
- rafTest.step(function() {
- assert_greater_than_equal(document.timeline.currentTime, startTime);
- firstRafTime = document.timeline.currentTime;
- });
- });
-
- requestAnimationFrame(function() {
- rafTest.step(function() {
- assert_equals(document.timeline.currentTime, firstRafTime);
- });
- 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>

Powered by Google App Engine
This is Rietveld 408576698