Commit 162c4ac0 authored by majidvp's avatar majidvp Committed by Commit Bot

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] https://github.com/whatwg/dom/issues/23
[2] https://github.com/whatwg/dom/pull/420

BUG=538600

Review-Url: https://codereview.chromium.org/2744553007
Cr-Commit-Position: refs/heads/master@{#485966}
parent b3afb75b
<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<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]) {
......
<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<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');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment