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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/focus-navigation-crash.html

Issue 1954023002: Move asserts in FocusNavigationController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove assertion Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src='../resources/testharness.js'></script>
3 <script src='../resources/testharnessreport.js'></script>
4 <div id='log'></div>
5 <div id='host'></div>This test is for crbug.com/609012<p id='target' tabindex='0 '></p>
6
7 <script>
8 test(() => {
9 var host = document.getElementById('host');
10 var text = host.nextSibling;
11 host.attachShadow({mode: 'open'});
12
13 // Set sequential focus navigation starting point in the text node.
14 window.internals.setSequentialFocusNavigationStartingPoint(text);
15
16 // Sending TAB key would crash on false assertion.
17 window.eventSender.keyDown('\t');
18 assert_equals(document.activeElement.id, 'target');
19 }, 'Sequential focus navigation should not crash.');
20
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698