| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 | "http://www.w3.org/TR/html4/loose.dtd"> |
| 3 | <html> |
| 4 | <head> |
| 5 | <title>Performance Test: dojox.grid.DataGrid Creation</title> |
| 6 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> |
| 7 | <style type="text/css"> |
| 8 | @import "../../../../dojo/resources/dojo.css"; |
| 9 | @import "../../resources/Grid.css"; |
| 10 | @import "../../resources/tundraGrid.css"; |
| 11 | |
| 12 | .heading { |
| 13 | font-weight: bold; |
| 14 | padding-bottom: 0.25em; |
| 15 | } |
| 16 | </style> |
| 17 | <script type="text/javascript" src="../../../../dojo/dojo.js"></script> |
| 18 | <script type="text/javascript"> |
| 19 | dojo.require("doh.runner"); |
| 20 | dojo.require("dojox.grid.tests.performance._gridPerfFramework"); |
| 21 | dojo.require("dojox.grid.DataGrid"); |
| 22 | |
| 23 | dojo.addOnLoad(function(){ |
| 24 | doh.register(searchParamsAsObj(true).rows + " rows", |
| 25 | getRLSTests(function(rows, layout, rowSelector, doProfiling, isPerf){ |
| 26 | return function(t){ |
| 27 | if(doProfiling){ |
| 28 | console.profile("create()"); |
| 29 | } |
| 30 | var g = new dojox.grid.DataGrid({ |
| 31 | store: getStore(rows), |
| 32 | structure: getLayout(layout), |
| 33 | rowSelector: rowSelector |
| 34 | }, dojo.create("div", null, dojo.body())); |
| 35 | if(doProfiling){ |
| 36 | console.profileEnd(); |
| 37 | console.profile("startup()"); |
| 38 | } |
| 39 | g.startup(); |
| 40 | if(doProfiling){ |
| 41 | console.profileEnd(); |
| 42 | } |
| 43 | if(isPerf){ |
| 44 | g.destroy(); |
| 45 | }else{ |
| 46 | t.t(true); |
| 47 | } |
| 48 | }; |
| 49 | })); |
| 50 | doh.run(); |
| 51 | }); |
| 52 | </script> |
| 53 | </head> |
| 54 | <body class="tundra"> |
| 55 | <div class="heading">Performance Test: dojox.grid.DataGrid Creation</div> |
| 56 | </body> |
| 57 | </html> |