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

Side by Side Diff: LayoutTests/fast/dom/shadow/focus-navigation.html

Issue 1169613002: Remove unnecessary testRunner.dumpAsText in LayoutTests/fast/dom/shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 createDOM('input', {'tabindex': -1}))), 56 createDOM('input', {'tabindex': -1}))),
57 createDOM('input', {'id': 'input-D-0', 'tabindex': 0}), 57 createDOM('input', {'id': 'input-D-0', 'tabindex': 0}),
58 createDOM('div', {}, 58 createDOM('div', {},
59 createDOM('div', {'id': 'host-D', 'tabindex': 0}, 59 createDOM('div', {'id': 'host-D', 'tabindex': 0},
60 createShadowRoot())), 60 createShadowRoot())),
61 createDOM('input', {'id': 'input-E-0', 'tabindex': 0}))); 61 createDOM('input', {'id': 'input-E-0', 'tabindex': 0})));
62 parent.offsetLeft; 62 parent.offsetLeft;
63 } 63 }
64 64
65 function test() { 65 function test() {
66 if (window.testRunner)
67 testRunner.dumpAsText();
68
69 if (!window.eventSender) { 66 if (!window.eventSender) {
70 testFailed(''); 67 testFailed('');
71 return; 68 return;
72 } 69 }
73 70
74 prepareDOMTree(document.body); 71 prepareDOMTree(document.body);
75 72
76 // FIXME: Output inserted comments in this array to expected.txt for readabi lity of the result. 73 // FIXME: Output inserted comments in this array to expected.txt for readabi lity of the result.
77 var elementsInFocusNavigationOrder = [ 74 var elementsInFocusNavigationOrder = [
78 'input-A-1', 'input-B-1', 75 'input-A-1', 'input-B-1',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 testFocusNavigationBackward(elementsInFocusNavigationOrder); 135 testFocusNavigationBackward(elementsInFocusNavigationOrder);
139 136
140 debug('Test finished.'); 137 debug('Test finished.');
141 } 138 }
142 139
143 test(); 140 test();
144 141
145 </script> 142 </script>
146 </body> 143 </body>
147 </html> 144 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698