| Index: third_party/WebKit/LayoutTests/shadow-dom/crashes/focus-navigation-infinite-loop.html
|
| diff --git a/third_party/WebKit/LayoutTests/shadow-dom/crashes/focus-navigation-infinite-loop.html b/third_party/WebKit/LayoutTests/shadow-dom/crashes/focus-navigation-infinite-loop.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..31410db98e3427f6858c52df4e264194108bb885
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/shadow-dom/crashes/focus-navigation-infinite-loop.html
|
| @@ -0,0 +1,30 @@
|
| +<!DOCTYPE html>
|
| +<script src='../../resources/testharness.js'></script>
|
| +<script src='../../resources/testharnessreport.js'></script>
|
| +<script src='../resources/shadow-dom.js'></script>
|
| +<script src='../resources/focus-utils.js'></script>
|
| +<body>
|
| + <input id="input-before">
|
| + <div id="host" tabindex="0">
|
| + <template>
|
| + <span>x-element</span>
|
| + <slot tabindex="1"></slot>
|
| + </template> </div>
|
| + <input id="input-after">
|
| +</body>
|
| +<script>
|
| +'use strict';
|
| +
|
| +test(() => {
|
| + let host = document.querySelector('#host');
|
| + convertTemplatesToShadowRootsWithin(host);
|
| + let elements = [
|
| + 'input-before',
|
| + 'host',
|
| + 'input-after'
|
| + ];
|
| + assert_focus_navigation_forward(elements);
|
| + elements.reverse();
|
| + assert_focus_navigation_backward(elements);
|
| +}, 'Focus navigation should not get stuck.');
|
| +</script>
|
|
|