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

Side by Side Diff: LayoutTests/fast/dom/shadow/tabstop-focus-highlight-sibling.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 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script src="resources/shadow-dom.js"></script> 3 <script src="resources/shadow-dom.js"></script>
4 <!-- Adapted from http://jsbin.com/dexinu/6/edit for layout test --> 4 <!-- Adapted from http://jsbin.com/dexinu/6/edit for layout test -->
5 5
6 <template id="XMenuTemplate"> 6 <template id="XMenuTemplate">
7 <style> 7 <style>
8 :host { 8 :host {
9 display: inline-block; 9 display: inline-block;
10 position: relative; 10 position: relative;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return window.getComputedStyle(getNodeInTreeOfTrees(selector)).backgroundCol or; 57 return window.getComputedStyle(getNodeInTreeOfTrees(selector)).backgroundCol or;
58 } 58 }
59 59
60 function backgroundColorShouldBe(selector, expected) { 60 function backgroundColorShouldBe(selector, expected) {
61 shouldBeEqualToString('backgroundColorOf(\'' + selector + '\')', expected); 61 shouldBeEqualToString('backgroundColorOf(\'' + selector + '\')', expected);
62 } 62 }
63 63
64 function test() { 64 function test() {
65 debug("crbug/474687 :focus style should properly be applied to shadow hosts. "); 65 debug("crbug/474687 :focus style should properly be applied to shadow hosts. ");
66 66
67 if (window.testRunner)
68 testRunner.dumpAsText();
69
70 var xmenu1 = document.getElementById("XMenu1"); 67 var xmenu1 = document.getElementById("XMenu1");
71 xmenu1.focus(); 68 xmenu1.focus();
72 navigateFocusForward(); 69 navigateFocusForward();
73 navigateFocusForward(); 70 navigateFocusForward();
74 navigateFocusForward(); 71 navigateFocusForward();
75 shouldBeEqualToString('document.activeElement.id', 'XMenu1'); 72 shouldBeEqualToString('document.activeElement.id', 'XMenu1');
76 backgroundColorShouldBe('XMenu1', 'rgb(170, 170, 170)'); 73 backgroundColorShouldBe('XMenu1', 'rgb(170, 170, 170)');
77 backgroundColorShouldBe('XMenu2', 'rgb(170, 170, 170)'); 74 backgroundColorShouldBe('XMenu2', 'rgb(170, 170, 170)');
78 backgroundColorShouldBe('XMenu3', 'rgb(170, 170, 170)'); 75 backgroundColorShouldBe('XMenu3', 'rgb(170, 170, 170)');
79 backgroundColorShouldBe('XMenu4', 'rgb(170, 170, 170)'); 76 backgroundColorShouldBe('XMenu4', 'rgb(170, 170, 170)');
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 shouldBeEqualToString('document.activeElement.id', 'XMenu1'); 126 shouldBeEqualToString('document.activeElement.id', 'XMenu1');
130 backgroundColorShouldBe('XMenu1', 'rgb(170, 170, 170)'); 127 backgroundColorShouldBe('XMenu1', 'rgb(170, 170, 170)');
131 backgroundColorShouldBe('XMenu2', 'rgb(170, 170, 170)'); 128 backgroundColorShouldBe('XMenu2', 'rgb(170, 170, 170)');
132 backgroundColorShouldBe('XMenu3', 'rgb(170, 170, 170)'); 129 backgroundColorShouldBe('XMenu3', 'rgb(170, 170, 170)');
133 backgroundColorShouldBe('XMenu4', 'rgb(170, 170, 170)'); 130 backgroundColorShouldBe('XMenu4', 'rgb(170, 170, 170)');
134 } 131 }
135 132
136 RegisterXMenu(); 133 RegisterXMenu();
137 test(); 134 test();
138 </script> 135 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/tab-order-iframe-and-shadow.html ('k') | LayoutTests/fast/dom/shadow/tabstop-property.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698