dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
46 lines (39 loc) • 1.67 kB
HTML
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Progress Indicator</title>
<link href="../../../themes/iphone/base.css" rel="stylesheet"/>
<script type="text/javascript" src="../../../../../dojo/dojo.js" data-dojo-config="parseOnLoad: true"></script>
<script language="JavaScript" type="text/javascript">
//dojo.require("dojo.parser"); // Use the lightweight parser.
dojo.require("dojo.hash");
dojo.require("dojox.mobile.parser");
dojo.require("dojox.mobile");
dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
dojo.require("doh.runner");
dojo.addOnLoad(function(){
var container = dojo.byId("home");
container.innerHTML = "";
var prog = dojox.mobile.ProgressIndicator.getInstance();
container.appendChild(prog.domNode);
prog.start();
doh.register("dojox.mobile.test.doh.ProgressIndicator", [
function test_RoundRectList_Verification(){
var demoWidget = dijit.byId("home");
doh.assertEqual('mblProgressIndicator mblProgressIndicatorCenter', demoWidget.containerNode.childNodes[0].className);
doh.assertEqual(12, demoWidget.containerNode.childNodes[0].childNodes[0].childNodes[0].childNodes.length);
}
]);
setTimeout(function(){ // to get the correct dimension
doh.run();
}, 0);
});
</script>
</head>
<body>
<div id="home" dojoType="dojox.mobile.View" selected="true">
</div>
</body>
</html>