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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.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
Index: third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.html b/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.html
deleted file mode 100644
index bbe5ed43ada66e7df260664f5e23666a0b1f1930..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script type="text/javascript">
-'use strict';
-for (let eventType of [MouseEvent, KeyboardEvent, WheelEvent, GamepadEvent, FocusEvent]) {
- test(function() {
- let before = performance.now();
- let e = new eventType('test');
- let after = performance.now();
- assert_greater_than_equal(e.timeStamp, before, "Event timestamp should be greater than performance.now() timestamp taken before its creation");
- assert_less_than_equal(e.timeStamp, after, "Event timestamp should be less than performance.now() timestamp taken after its creation");
- }, `Constructed ${eventType.prototype.constructor.name} timestamp should be high resolution and have the same time origin as performance.now()`);
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698