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 ] ...@@ -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/dom/timer-throttling-hidden-page.html [ Slow ]
crbug.com/874695 fast/events/autoscroll-iframe-no-scrolling.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/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/events/popup-blocking-timers4.html [ Slow ]
crbug.com/874695 fast/forms/color/* [ Slow ] crbug.com/874695 fast/forms/color/* [ Slow ]
crbug.com/874695 fast/forms/number/number-spinbutton-gets-disabled-or-readonly.html [ Slow ] crbug.com/874695 fast/forms/number/number-spinbutton-gets-disabled-or-readonly.html [ Slow ]
......
<!DOCTYPE html> <!DOCTYPE html>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Touch-generated events should have the same target</title> <title>Touch-generated events should have the same target</title>
<script src="../../../resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.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>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> <p><a href="#" id="link">Link</a> <span id="target">O</span></p>
<div id="log"></div> <div id="log"></div>
<script> <script>
let input_gesture; let input_gesture;
const target = document.getElementById('target'); const target = document.getElementById('target');
const xPosition = target.offsetLeft + 2; const xPosition = Math.ceil(target.offsetLeft + 2);
const yPosition = target.offsetTop + 2; const yPosition = Math.ceil(target.offsetTop + 2);
function inject_input() { function inject_input() {
return new Promise(function(resolve, reject) { let actions = new test_driver.Actions();
if (window.chrome && chrome.gpuBenchmarking) { return actions
chrome.gpuBenchmarking.pointerActionSequence( [ .addPointer("touchPointer", "touch")
{source: 'touch', .setPointer("touchPointer")
actions: [ .pointerMove(xPosition, yPosition)
{ name: 'pointerDown', x: xPosition, y: yPosition }, .pointerDown()
{ name: 'pointerUp' } .pointerUp()
]}], resolve); .send();
} else {
reject();
}
});
} }
addEventListener('load', () => { addEventListener('load', () => {
input_gesture = inject_input(); 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