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..fa6c76e5bdfd8ba8e05e0b7e5856f641cdfded18 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/events/autoscroll-select-crash.html |
@@ -0,0 +1,35 @@ |
+<!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 moveGesture() { |
+ eventSender.mouseMoveTo(200, 51); |
+ eventSender.mouseUp(); |
+ testObj.done(); |
+} |
+function reloadIframe() { |
+ iframe.contentWindow.location.reload(); |
+ setTimeout(moveGesture, 50); |
mstensho (USE GERRIT)
2017/04/28 20:15:28
Looks like this timeout is slightly too low for my
|
+} |
+function go(test) { |
+ testObj = test; |
+ if (window.eventSender) { |
+ eventSender.mouseMoveTo(200, 50); |
+ eventSender.mouseDown(); |
+ setTimeout(reloadIframe, 0); |
+ } else { |
+ test.done(); |
+ } |
+} |
+ |
+async_test(go); |
+</script> |