| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> |
| 5 | <meta name="apple-mobile-web-app-capable" content="yes" /> |
| 6 | <title>Progress Indicator</title> |
| 7 | <link href="../../../themes/iphone/base.css" rel="stylesheet"/> |
| 8 | |
| 9 | <script type="text/javascript" src="../../../../../dojo/dojo.js" data-dojo-config="parseOnLoad: true"></script> |
| 10 | |
| 11 | <script language="JavaScript" type="text/javascript"> |
| 12 | //dojo.require("dojo.parser"); // Use the lightweight parser. |
| 13 | dojo.require("dojo.hash"); |
| 14 | dojo.require("dojox.mobile.parser"); |
| 15 | dojo.require("dojox.mobile"); |
| 16 | dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat"); |
| 17 | |
| 18 | dojo.require("doh.runner"); |
| 19 | |
| 20 | dojo.addOnLoad(function(){ |
| 21 | var container = dojo.byId("home"); |
| 22 | container.innerHTML = ""; |
| 23 | var prog = dojox.mobile.ProgressIndicator.getInstance(); |
| 24 | container.appendChild(prog.domNode); |
| 25 | prog.start(); |
| 26 | doh.register("dojox.mobile.test.doh.ProgressIndicator", [ |
| 27 | function test_RoundRectList_Verification(){ |
| 28 | var demoWidget = dijit.byId("home"); |
| 29 | doh.assertEqual('mblProgressIndicator mblProgressIndicatorCenter', demoWidget.containerNode.childNodes[0].className); |
| 30 | doh.assertEqual(12, demoWidget.containerNode.childNodes[0].childNodes[0].childNodes[0].childNodes.length); |
| 31 | |
| 32 | } |
| 33 | ]); |
| 34 | setTimeout(function(){ // to get the correct dimension |
| 35 | doh.run(); |
| 36 | }, 0); |
| 37 | }); |
| 38 | </script> |
| 39 | </head> |
| 40 | <body> |
| 41 | <div id="home" dojoType="dojox.mobile.View" selected="true"> |
| 42 | </div> |
| 43 | |
| 44 | </body> |
| 45 | </html> |