| OLD | NEW |
| (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> |
| OLD | NEW |