Updated
This commit is contained in:
45
master/examples/progress-indicator.html
Normal file
45
master/examples/progress-indicator.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<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" djConfig="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('mblProgContainer', demoWidget.containerNode.childNodes[0].className);
|
||||
doh.assertEqual(12, demoWidget.containerNode.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>
|
||||
Reference in New Issue
Block a user