Skip to content

Commit 162c4ac

Browse files
majidoCommit Bot
authored and
Commit Bot
committed
Upstream high resolution event timestamp test to WPT.
This is in anticipation of DOM spec patch landing [1]. Upstreaming two tests: - verify constructed events get a high-resolution time from perfomance.now() - verify the minimum resolution is larger that 5µs. [1] whatwg/dom#23 [2] whatwg/dom#420 BUG=538600 Review-Url: https://codereview.chromium.org/2744553007 Cr-Commit-Position: refs/heads/master@{#485966}
1 parent b3afb75 commit 162c4ac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

third_party/WebKit/LayoutTests/fast/events/hr-timestamp/constructed-events.html renamed to third_party/WebKit/LayoutTests/external/wpt/dom/events/Event-timestamp-high-resolution.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22

3-
<script src="../../../resources/testharness.js"></script>
4-
<script src="../../../resources/testharnessreport.js"></script>
3+
<script src="/resources/testharness.js"></script>
4+
<script src="/resources/testharnessreport.js"></script>
55
<script type="text/javascript">
66
'use strict';
77
for (let eventType of [MouseEvent, KeyboardEvent, WheelEvent, GamepadEvent, FocusEvent]) {

third_party/WebKit/LayoutTests/fast/events/hr-timestamp/safe-resolution.html renamed to third_party/WebKit/LayoutTests/external/wpt/dom/events/Event-timestamp-safe-resolution.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
22

3-
<script src="../../../resources/testharness.js"></script>
4-
<script src="../../../resources/testharnessreport.js"></script>
3+
<script src="/resources/testharness.js"></script>
4+
<script src="/resources/testharnessreport.js"></script>
55
<script type="text/javascript">
66
'use strict';
77

88
test(function() {
99
let e1 = new MouseEvent('test1');
1010
let e2 = new MouseEvent('test2');
11-
11+
1212
while (e1.timeStamp == e2.timeStamp)
1313
e2 = new MouseEvent('test2');
1414

0 commit comments

Comments
 (0)