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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/hr-timestamp/safe-resolution.html

Issue 2744553007: Upstream high resolution event timestamp tests to WPT (Closed)
Patch Set: Make WPT lint happy Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/hr-timestamp/safe-resolution.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/safe-resolution.html b/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/safe-resolution.html
deleted file mode 100644
index bc3d519eb284cb3ce57d146faa81b564ae7389f8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/safe-resolution.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script type="text/javascript">
-'use strict';
-
-test(function() {
- let e1 = new MouseEvent('test1');
- let e2 = new MouseEvent('test2');
-
- while (e1.timeStamp == e2.timeStamp)
- e2 = new MouseEvent('test2');
-
- let expectedResolutionMilliseconds = 0.005;
- let integerMultipleOfResolution = (e2.timeStamp - e1.timeStamp) / expectedResolutionMilliseconds;
- let shouldBeNearZeroOrOne = integerMultipleOfResolution % 1;
- assert_true(shouldBeNearZeroOrOne < 1e-10 || Math.abs(shouldBeNearZeroOrOne - 1) < 1e-10);
-}, 'Event timestamp should not have a resolution better that 5 microseconds');
-</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698