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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/focus-navigation-with-multiple-shadow-roots.html

Issue 1707443003: Consider slots as a focus scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring in response to review comments Created 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="resources/shadow-dom.js"></script> 5 <script src="resources/shadow-dom.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <p>This tests that pressing Tab key should traverse into shadow DOM subtrees, an d pressing Shift-Tab should reverse the order.</p> 8 <p>This tests that pressing Tab key should traverse into shadow DOM subtrees, an d pressing Shift-Tab should reverse the order.</p>
9 <pre id="console"></pre> 9 <pre id="console"></pre>
10 <script> 10 <script>
(...skipping 30 matching lines...) Expand all
41 41
42 prepareDOMTree(document.body); 42 prepareDOMTree(document.body);
43 43
44 var elementsInFocusNavigationOrder = [ 44 var elementsInFocusNavigationOrder = [
45 'A', 45 'A',
46 'host', 46 'host',
47 'host///younger-A', 47 'host///younger-A',
48 'host//older-A', 48 'host//older-A',
49 'host//older-B', 49 'host//older-B',
50 'host///younger-B', 50 'host///younger-B',
51 'light-child-B',
hayato 2016/03/03 05:42:21 Is this an intentional change?
yuzuchan 2016/03/04 03:48:36 Yes, it is. I inserted this line in order to make
51 'B', 52 'B',
52 ]; 53 ];
53 54
54 testFocusNavigationForward(elementsInFocusNavigationOrder); 55 testFocusNavigationForward(elementsInFocusNavigationOrder);
55 elementsInFocusNavigationOrder.reverse(); 56 elementsInFocusNavigationOrder.reverse();
56 testFocusNavigationBackward(elementsInFocusNavigationOrder); 57 testFocusNavigationBackward(elementsInFocusNavigationOrder);
57 58
58 debug('Test finished.'); 59 debug('Test finished.');
59 } 60 }
60 61
61 test(); 62 test();
62 63
63 </script> 64 </script>
64 </body> 65 </body>
65 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698