Debian Codegraph @

dojox/mobile/tests/doh/view/View.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>View</title>
7 <link href="../../../themes/iphone/base.css" rel="stylesheet"/>
8 <style>
9 html,body{
10 height: 100%;
11 overflow: hidden;
12 }
13 .list1 li{
14 border-style: solid;
15 border-width: 1px 0px 1px 0px;
16 border-top-color: #BABABC;
17 border-bottom-color: #89898C;
18 background-color: #ACACAF;
19 line-height: 0px;
20 }
21 .list1 li table{
22 line-height: normal;
23 }
24 .list1 li:nth-child(even){
25 background-color: #97979B;
26 }
27 #list2 li:nth-child(even){
28 background-color: #eeeeee;
29 }
30 #categ1 {
31 font-size: 18px;
32 }
33 #categ1 li{
34 line-height: 70px;
35 }
36 .lnk {
37 font-size: 14px;
38 color: #0B5199;
39 text-decoration: none;
40 }
41 .content {
42 padding:0px 10px;
43 background-color: white;
44 }
45 p {
46 font-family: Helvetica;
47 font-size: 12px;
48 }
49 .title {
50 color: blue;
51 margin-bottom: 4px;
52 }
53 .subtitle {
54 font-style: italic;
55 color: gray;
56 margin: 0px;
57 margin-bottom: 4px;
58 }
59 .subsubtitle {
60 margin: 16px 0px 0px 0px;
61 }
62 .lst {
63 margin: 0px;
64 padding: 0px 14px;
65 }
66 .lst li {
67 font-family: Helvetica;
68 font-size: 12px;
69 margin: 0px;
70 list-style-type: square;
71 }
72 </style>
73 <script type="text/javascript" src="../../../../../dojo/dojo.js" data-dojo-config="parseOnLoad: true, mblAlwaysHideAddressBar: true"></script>
74
75 <script language="JavaScript" type="text/javascript">
76 //dojo.require("dojo.parser"); // Use the lightweight parser.
77 dojo.require("dojox.mobile.parser");
78 dojo.require("dojox.mobile");
79 dojo.require("dojox.mobile.ScrollableView");
80 dojo.require("dojox.mobile.TabBar");
81 dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat");
82 dojo.requireIf(!dojo.isWebKit, "dojo.fx");
83 dojo.requireIf(!dojo.isWebKit, "dojo.fx.easing");
84
85 dojo.require("doh.runner");
86
87 dojo.addOnLoad(function(){
88 doh.register("dojox.mobile.test.doh.View", [
89 {
90 name: "test View Verification",
91 timeout: 3000,
92 runTest: function (){
93 var demoWidget = dijit.byId("group1");
94 doh.assertEqual('mblView', demoWidget.domNode.className);
95 doh.assertEqual('inherit', demoWidget.domNode.style.visibility);
96
97 demoWidget = dijit.byId("categ");
98 doh.assertEqual('mblView mblScrollableView', demoWidget.domNode.className);
99 doh.assertEqual('none', demoWidget.domNode.style.display);
100 }
101 }
102 ]);
103 setTimeout(function(){ // to get the correct dimension
104 doh.run();
105 }, 500);
106 });
107 </script>
108 </head>
109 <body>
110 <div id="group1" dojoType="dojox.mobile.View" selected="true">
111 aaa
112
113 </div>
114
115 <div id="categ" dojoType="dojox.mobile.ScrollableView">
116 <h1 dojoType="dojox.mobile.Heading" fixed="top">Categories</h1>
117 bbb
118 </div>
119
120
121 </body>
122 </html>