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

Side by Side Diff: LayoutTests/fast/dom/shadow/focusable-elements-with-tabstop.html

Issue 1046853002: Implement 'tabstop' as an HTML attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: style nit for layout test. Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/focusable-elements-with-tabstop-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 TAB focus navigation with tabStop property on focusable elements</ p> 8 <p>This tests TAB focus navigation with tabStop property on focusable elements</ p>
9 <pre id="console"></pre> 9 <pre id="console"></pre>
10 <div id="sandbox"></div> 10 <div id="sandbox"></div>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 testFocusNavigationForward(expectedOrder); 117 testFocusNavigationForward(expectedOrder);
118 expectedOrder.reverse(); 118 expectedOrder.reverse();
119 testFocusNavigationBackward(expectedOrder); 119 testFocusNavigationBackward(expectedOrder);
120 } 120 }
121 121
122 function testAnchor() { 122 function testAnchor() {
123 debug("Testing tabStop property on anchor without href"); 123 debug("Testing tabStop property on anchor without href");
124 124
125 prepareAnchorWithShadow(sandbox); 125 prepareAnchorWithShadow(sandbox);
126 126
127 // This is questionable, but true; <a> without href returns 0 for tabIndex.
127 anchor_host = document.getElementById("anchor-host"); 128 anchor_host = document.getElementById("anchor-host");
128 shouldBe('anchor_host.tabStop', 'false'); 129 shouldBe('anchor_host.tabStop', 'true');
129 130
130 var expectedOrder = [ 131 var expectedOrder = [
131 'anchor-before', 132 'anchor-before',
132 'anchor-host/anchor-inner', 133 'anchor-host/anchor-inner',
133 'anchor-after' 134 'anchor-after'
134 ]; 135 ];
135 136
136 testFocusNavigationForward(expectedOrder); 137 testFocusNavigationForward(expectedOrder);
137 expectedOrder.reverse(); 138 expectedOrder.reverse();
138 testFocusNavigationBackward(expectedOrder); 139 testFocusNavigationBackward(expectedOrder);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 190
190 testAnchor(); 191 testAnchor();
191 192
192 debug('Test finished.'); 193 debug('Test finished.');
193 } 194 }
194 195
195 run_tests(); 196 run_tests();
196 </script> 197 </script>
197 </body> 198 </body>
198 </html> 199 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/focusable-elements-with-tabstop-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698