Debian Codegraph @

dojox/mobile/tests/doh/fixedbars/CustomFixedBarsTests.html

raw symbols SCIP
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>View Custom Fixed Bars</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <meta name="viewport"
7 content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
8 <meta name="apple-mobile-web-app-capable" content="yes" />
9 <script type="text/javascript" src="../../../../../dojo/dojo.js" data-dojo-config="parseOnLoad:true, async:true"></script>
10 <script type="text/javascript" charset="utf-8">
11 require(["dojo/ready",
12 "dojo/dom",
13 "doh/runner",
14 "dojox/mobile/parser",
15 "dojox/mobile",
16 "dojox/mobile/deviceTheme",
17 "dojox/mobile/ScrollableView"], function(ready, dom, runner, domGeometry) {
18
19 ready(function(){
20 runner.register("dojox.mobile.test.doh.fixedbars.CustomFixedBarsTests", [
21 {
22 name: "Verify ticket #16671 is fixed",
23 timeout: 10000,
24 setUp: function() {
25 this.data = {runner: runner, topBar: dom.byId("topBar"), bottomBar: dom.byId("bottomBar")};
26 },
27 runTest: function(){
28 var d = new runner.Deferred();
29 setTimeout(d.getTestCallback(function(){
30 this.fixture.data.runner.assertEqual(0, this.fixture.data.topBar.offsetTop);
31 this.fixture.data.runner.assertTrue(this.fixture.data.bottomBar.offsetTop > this.fixture.data.topBar.offsetHeight, "Bottom bar has not the expected position");
32 }), 2000);
33 return d;
34 }
35 }]);
36 runner.run();
37 });
38 });
39 </script>
40 </head>
41 <body style="visibility:hidden;">
42
43 <!-- Scrollable View -->
44 <div id="view2" data-dojo-type="dojox.mobile.ScrollableView">
45 <div id="topBar" fixed="top" style="height: 55px; background: yellow;">Custom header for ScrollView</div>
46 <div id= "bottomBar" fixed="bottom" style="height: 25px; background: yellow;">Custom footer for ScrollView</div>
47 </div>
48
49 </body>
50 </html>