Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html b/third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..20f5d12d33f5f5018ec57a7f9f1584981d0e48de |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html |
| @@ -0,0 +1,47 @@ |
| +<!DOCTYPE html> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| +<iframe id=iframe srcdoc=" |
| +<style> |
| +.c:hover { display: block; } |
| +.c { content: attr(class); width: 400px; height: 400px; } |
| +</style> |
| +<body id=body> |
| + <select id=target autofocus=autofocus size=2 class=c></select> |
| +</body>"></iframe> |
| +<script> |
| +var testObj; |
| + |
| +function finishTest() { |
| + testObj.done(); |
| +} |
| + |
| +function moveGesture() { |
| + pointerActions = |
| + [{source: "mouse", |
| + actions: [{ name: "pointerMove", x: 200, y: 51 }, |
| + { name: "pointerUp", x: 200, y: 51 }] |
| + }]; |
| + chrome.gpuBenchmarking.pointerActionSequence(pointerActions, finishTest); |
| +} |
| + |
| +function reloadIframe() { |
| + iframe.contentWindow.location.reload(); |
| + setTimeout(moveGesture, 50); |
|
lanwei
2017/04/28 16:17:29
Unfortunately, pointerActionSequence API expects t
dtapuska
2017/04/28 18:17:02
It might be possible for this case to actually use
|
| +} |
| + |
| +function go(test) { |
| + testObj = test; |
| + if (chrome.gpuBenchmarking) { |
| + var pointerActions = |
| + [{source: "mouse", |
| + actions: [{name: "pointerMove", x: 200, y: 50 }, |
| + { name: "pointerDown", x: 200, y: 50 }] |
| + }]; |
| + chrome.gpuBenchmarking.pointerActionSequence(pointerActions, reloadIframe); |
| + } else { |
| + test.done(); |
| + } |
| +} |
| +async_test(go); |
| +</script> |