OLD | NEW |
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="../fast/dom/shadow/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; |
11 background-color: #aaa; | 11 background-color: #aaa; |
12 } | 12 } |
13 :host(:focus) { | 13 :host(:focus) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 shouldBeEqualToString('document.activeElement.id', 'XMenu1'); | 120 shouldBeEqualToString('document.activeElement.id', 'XMenu1'); |
121 backgroundColorShouldBe('XMenu1', 'rgb(170, 170, 170)'); | 121 backgroundColorShouldBe('XMenu1', 'rgb(170, 170, 170)'); |
122 backgroundColorShouldBe('XMenu2', 'rgb(170, 170, 170)'); | 122 backgroundColorShouldBe('XMenu2', 'rgb(170, 170, 170)'); |
123 backgroundColorShouldBe('XMenu3', 'rgb(170, 170, 170)'); | 123 backgroundColorShouldBe('XMenu3', 'rgb(170, 170, 170)'); |
124 backgroundColorShouldBe('XMenu4', 'rgb(170, 170, 170)'); | 124 backgroundColorShouldBe('XMenu4', 'rgb(170, 170, 170)'); |
125 } | 125 } |
126 | 126 |
127 RegisterXMenu(); | 127 RegisterXMenu(); |
128 test(); | 128 test(); |
129 </script> | 129 </script> |
OLD | NEW |