OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title></title> | 4 <title></title> |
5 <style> | 5 <style> |
6 | 6 |
7 </style> | 7 </style> |
8 <script src= | 8 <script src="webui_resource_test.js"></script> |
9 "http://closure-library.googlecode.com/svn/trunk/closure/goog/base.js"> | |
10 </script> | |
11 <script src="../../cr.js"></script> | |
12 <script src="../event_target.js"></script> | |
13 <script src="../ui.js"></script> | |
14 <script src="array_data_model.js"></script> | |
15 <script src="list_selection_model.js"></script> | |
16 <script src="list_selection_controller.js"></script> | |
17 <script src="list_item.js"></script> | |
18 <script src="list.js"></script> | |
19 <script src="grid.js"></script> | |
20 <script> | |
21 | |
22 goog.require('goog.testing.jsunit'); | |
23 | |
24 </script> | |
25 | |
26 </head> | 9 </head> |
27 <body> | 10 <body> |
28 | 11 |
29 <script> | 12 <script> |
30 | 13 |
31 function testGetColumnCount() { | 14 function testGetColumnCount() { |
32 var g = cr.ui.Grid.prototype; | 15 var g = cr.ui.Grid.prototype; |
33 g.measured_ = { | 16 g.measured_ = { |
34 height: 8, | 17 height: 8, |
35 marginTop: 0, | 18 marginTop: 0, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 g.measured_.marginRight = 1; | 72 g.measured_.marginRight = 1; |
90 columns = g.getColumnCount_(); | 73 columns = g.getColumnCount_(); |
91 // Can not fit two columns due to margin on left and right side. | 74 // Can not fit two columns due to margin on left and right side. |
92 assertEquals(1, columns); | 75 assertEquals(1, columns); |
93 } | 76 } |
94 | 77 |
95 </script> | 78 </script> |
96 | 79 |
97 </body> | 80 </body> |
98 </html> | 81 </html> |
OLD | NEW |