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

Side by Side Diff: LayoutTests/fast/dom/shadow/access-key.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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/compare-document-position.html » ('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 id="description"></p> 8 <p id="description"></p>
9 <div id="sandbox"></div> 9 <div id="sandbox"></div>
10 <pre id="console"></pre> 10 <pre id="console"></pre>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 'shadowC/inputD', 'shadowC/inputE', 61 'shadowC/inputD', 'shadowC/inputE',
62 'shadowC/shadowF/inputG']; 62 'shadowC/shadowF/inputG'];
63 for (var i = 0; i < ids.length; ++i) { 63 for (var i = 0; i < ids.length; ++i) {
64 var element = getNodeInTreeOfTrees(ids[i]); 64 var element = getNodeInTreeOfTrees(ids[i]);
65 element.addEventListener('focus', recordEvent, false); 65 element.addEventListener('focus', recordEvent, false);
66 } 66 }
67 } 67 }
68 68
69 function test() 69 function test()
70 { 70 {
71 if (window.testRunner)
72 testRunner.dumpAsText();
73
74 prepareDOMTree(document.getElementById('sandbox')); 71 prepareDOMTree(document.getElementById('sandbox'));
75 72
76 // Please see the discussion of https://bugs.webkit.org/show_bug.cgi?id=6709 6. 73 // Please see the discussion of https://bugs.webkit.org/show_bug.cgi?id=6709 6.
77 // We don't have a clear idea how accesskey should work in regard to shadow DOM. 74 // We don't have a clear idea how accesskey should work in regard to shadow DOM.
78 // In current implementation, accesskeys defined inside of components are ex posed to an outer document. 75 // In current implementation, accesskeys defined inside of components are ex posed to an outer document.
79 // Every accesskeys are flattened per each document. 76 // Every accesskeys are flattened per each document.
80 document.getElementById('inputB').focus(); 77 document.getElementById('inputB').focus();
81 clearEventRecords(); 78 clearEventRecords();
82 pressAccessKey('a'); 79 pressAccessKey('a');
83 shouldBe('dispatchedEvent("focus")', '["inputE"]'); 80 shouldBe('dispatchedEvent("focus")', '["inputE"]');
84 81
85 getNodeInTreeOfTrees('shadowC/inputD').focus(); 82 getNodeInTreeOfTrees('shadowC/inputD').focus();
86 clearEventRecords(); 83 clearEventRecords();
87 pressAccessKey('a'); 84 pressAccessKey('a');
88 shouldBe('dispatchedEvent("focus")', '["inputE"]'); 85 shouldBe('dispatchedEvent("focus")', '["inputE"]');
89 86
90 getNodeInTreeOfTrees('shadowC/shadowF/inputG').focus(); 87 getNodeInTreeOfTrees('shadowC/shadowF/inputG').focus();
91 clearEventRecords(); 88 clearEventRecords();
92 pressAccessKey('a'); 89 pressAccessKey('a');
93 shouldBe('dispatchedEvent("focus")', '["inputE"]'); 90 shouldBe('dispatchedEvent("focus")', '["inputE"]');
94 } 91 }
95 92
96 test(); 93 test();
97 </script> 94 </script>
98 </body> 95 </body>
99 </html> 96 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/compare-document-position.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698