Commit 16f5f379 authored by Liviu Tinta's avatar Liviu Tinta Committed by Commit Bot

Move pointerevent_touch-adjustment_click_target to WPT

Replace gpuBenchmarking calls with testdriver calls.
Remove pointerevent_touch-adjustment-click_target from the SlowTests file.

Change-Id: Ifd7cb4d5ab44a8498d99f053c146442ed291848e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2398969Reviewed-by: default avatarLan Wei <lanwei@chromium.org>
Commit-Queue: Liviu Tinta <liviutinta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805031}
parent d43fbd33
......@@ -301,7 +301,6 @@ crbug.com/874695 fast/dom/HTMLLinkElement/link-preload-unused.html [ Slow ]
crbug.com/874695 fast/dom/timer-throttling-hidden-page.html [ Slow ]
crbug.com/874695 fast/events/autoscroll-iframe-no-scrolling.html [ Slow ]
crbug.com/874695 fast/events/frame-detached-in-mousedown.html [ Slow ]
crbug.com/874695 fast/events/pointerevents/pointerevent_touch-adjustment_click_target.html [ Slow ]
crbug.com/874695 fast/events/popup-blocking-timers4.html [ Slow ]
crbug.com/874695 fast/forms/color/* [ Slow ]
crbug.com/874695 fast/forms/number/number-spinbutton-gets-disabled-or-readonly.html [ Slow ]
......
<!DOCTYPE html>
<meta charset="utf-8">
<title>Touch-generated events should have the same target</title>
<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 src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<p>Touch letter 'O' below to run the test. If a "PASS" result appears the test passes, otherwise it fails</p>
<p><a href="#" id="link">Link</a> <span id="target">O</span></p>
<div id="log"></div>
<script>
let input_gesture;
const target = document.getElementById('target');
const xPosition = target.offsetLeft + 2;
const yPosition = target.offsetTop + 2;
const xPosition = Math.ceil(target.offsetLeft + 2);
const yPosition = Math.ceil(target.offsetTop + 2);
function inject_input() {
return new Promise(function(resolve, reject) {
if (window.chrome && chrome.gpuBenchmarking) {
chrome.gpuBenchmarking.pointerActionSequence( [
{source: 'touch',
actions: [
{ name: 'pointerDown', x: xPosition, y: yPosition },
{ name: 'pointerUp' }
]}], resolve);
} else {
reject();
}
});
let actions = new test_driver.Actions();
return actions
.addPointer("touchPointer", "touch")
.setPointer("touchPointer")
.pointerMove(xPosition, yPosition)
.pointerDown()
.pointerUp()
.send();
}
addEventListener('load', () => {
input_gesture = inject_input();
});
......
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