Index: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-div-in-anchor-and-img-crash.html |
diff --git a/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-div-in-anchor-and-img-crash.html b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-div-in-anchor-and-img-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a4bd02d1b4d946cd3d0052ccfc03b62ae38d582f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-div-in-anchor-and-img-crash.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<span><a href="#" id="start"><div></div></a></span> |
+<img style="display:block;"> |
+ |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ test(() => { |
+ assert_true(!!window.testRunner); |
+ testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); |
+ testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); |
+ document.getElementById("start").focus(); |
+ eventSender.keyDown("ArrowDown"); |
+ }, "No crash or assertion failure"); |
+</script> |