Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1048)

Unified Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-div-in-anchor-and-img-crash.html

Issue 2738503004: Search the entire subtree when looking for the end of an inline continuation chain. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698