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

Side by Side Diff: chrome/test/data/webui/grid_test.html

Issue 17315020: Port passing closure tests for cr.ui framework to browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer feedback fixes. Created 7 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 <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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698