Debian Codegraph @

dojox/mobile/tests/doh/roundrect/RoundRect.html

raw symbols SCIP
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>Round Rect</title>
7 <link href="../../../themes/iphone/iphone.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("dojox.mobile.parser");
14 dojo.require("dojox.mobile");
15 dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
16
17 dojo.require("doh.runner");
18 dojo.addOnLoad(function(){
19 doh.register("dojox.mobile.test.doh.RoundRect", [
20 {
21 name: "RoundRect Verification",
22 timeout: 4000,
23 runTest: function(){
24 var d = new doh.Deferred();
25 setTimeout(d.getTestCallback(function(){
26 var demoWidget = dijit.byId("dojox_mobile_RoundRect_0");
27 if(dojo.isIE < 10){
28 doh.assertEqual('mblRoundRect', demoWidget.domNode.className);
29 }else{
30 doh.assertEqual('mblRoundRect mblShadow', demoWidget.domNode.className);
31 }
32
33 demoWidget = dijit.byId("dojox_mobile_RoundRect_1");
34 doh.assertEqual('mblRoundRect', demoWidget.domNode.className);
35 }));
36 return d;
37 }
38 },
39 {
40 name: "Set",
41 timeout: 4000,
42 runTest: function(){
43 var demoWidget = dijit.byId("dojox_mobile_RoundRect_0");
44 demoWidget.set({shadow :false});
45
46 demoWidget.set({shadow :false});
47 // doh.assertFalse(demoWidget.get("shadow"));
48 // doh.assertEqual('mblRoundRect', demoWidget.domNode.className);
49 }
50 }
51 ]);
52 doh.run();
53 });
54 </script>
55 </head>
56 <body>
57 <div id="foo" dojoType="dojox.mobile.View" selected="true">
58 <h2 dojoType="dojox.mobile.RoundRectCategory">Round Rectangle</h2>
59 <div dojoType="dojox.mobile.RoundRect" shadow="true">
60 This module provides some widgets that can be used to build web-based
61 applications for mobile devices such as iPhone or Android.
62 </div>
63 <div dojoType="dojox.mobile.RoundRect">
64 This module provides some widgets that can be used to build web-based
65 applications for mobile devices such as iPhone or Android.
66 </div>
67 </div>
68 </body>
69 </html>