| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> |
| 5 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> |
| 6 | <meta name="apple-mobile-web-app-capable" content="yes"/> |
| 7 | <title>Accordion</title> |
| 8 | |
| 9 | <link href="../../../themes/common/dijit/dijit.css" rel="stylesheet"/> |
| 10 | <link href="../../../themes/common/domButtons/DomButtonBlackRightArrow16.css" rel="stylesheet"/> |
| 11 | <link href="../../../themes/common/domButtons/DomButtonWhiteDownArrow16.css" rel="stylesheet"/> |
| 12 | <script type="text/javascript" src="../../../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','Accordion','TabBar','dijit.Calendar']"></script> |
| 13 | <script type="text/javascript" src="../../../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true, mblAlwaysHideAddressBar: true, has: {'dojo-bidi': true }"></script> |
| 14 | |
| 15 | <script type="text/javascript"> |
| 16 | require([ |
| 17 | "dijit/registry", |
| 18 | "doh/runner", |
| 19 | "dojo/dom", |
| 20 | "dojo/ready", |
| 21 | "dojo/query", |
| 22 | "dojox/mobile/parser", |
| 23 | "dojox/mobile", |
| 24 | "dojox/mobile/compat", |
| 25 | "dojox/mobile/Accordion", |
| 26 | "dojox/mobile/ContentPane", |
| 27 | "dojox/mobile/ScrollableView" |
| 28 | ], function(registry,runner,dom,ready,query){ |
| 29 | ready(function(){ |
| 30 | runner.register("Bidi Accordion", [ |
| 31 | { |
| 32 | name: "mobile", |
| 33 | runTest: function(){ |
| 34 | query(".mblAccordionTitleLabel").forEach(function(node, index, arr){ |
| 35 | runner.is(String.fromCharCode(8235), node.innerHTML.charAt(0), "node should have direction corresponding to 'textDir' property of Accordion container"); |
| 36 | }); |
| 37 | } |
| 38 | } |
| 39 | ]); |
| 40 | |
| 41 | runner.register("log", function(){ |
| 42 | dom.byId('failures').innerHTML = runner._failureCount; |
| 43 | dom.byId('errors').innerHTML = runner._errorCount; |
| 44 | }); |
| 45 | |
| 46 | runner.run(); |
| 47 | }); |
| 48 | }); |
| 49 | </script> |
| 50 | |
| 51 | <style type="text/css"> |
| 52 | html,body{ |
| 53 | height: 100%; |
| 54 | } |
| 55 | .myPane { |
| 56 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dcdcdc), to(#FFFFFF)); |
| 57 | font-family: Times New Roman, Helvetica; |
| 58 | color: black; |
| 59 | } |
| 60 | </style> |
| 61 | </head> |
| 62 | <body style="visibility:hidden;"> |
| 63 | <div id="view1" data-dojo-type="dojox.mobile.ScrollableView"> |
| 64 | <div data-dojo-type="dojox.mobile.Accordion" data-dojo-props='textDir: "rtl",singleOpen:true, roundRect:true' style="height:400px;"> |
| 65 | <div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"External Content!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16", href:"../../data/fragment1.html"'> |
| 66 | </div> |
| 67 | <div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"RoundRectList!",icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"'> |
| 68 | <ul data-dojo-type="dojox.mobile.RoundRectList" data-dojo-props='textDir:"rtl",iconBase:"../../images/tab-icon-11h.png"'> |
| 69 | <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'> |
| 70 | u1space! |
| 71 | </li> |
| 72 | <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'> |
| 73 | u2space! |
| 74 | </li> |
| 75 | <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='rightText:"Off"'> |
| 76 | Wi-Fi! |
| 77 | </li> |
| 78 | </ul> |
| 79 | </div> |
| 80 | <div data-dojo-type="dojox.mobile.ContentPane" data-dojo-props='label:"Dojo!", icon1:"mblDomButtonBlackRightArrow16", icon2:"mblDomButtonWhiteDownArrow16"' class="myPane"> |
| 81 | <div style="padding:10px"> |
| 82 | <div style="font-size: 24px">Unbeatable JavaScript Tools</div> |
| 83 | <div style="border-top: 1px dashed gray;margin: 20px"></div> |
| 84 | <img alt="" src="../../images/dojo-logo1.png" style="float:left;margin-right:5px"> |
| 85 | <p>Dojo saves you time, delivers powerful performance, and scales with your development process. It's the toolkit experienced developers turn to for building superior desktop and mobile web experiences.</p> |
| 86 | <p>Dojo's powerful, lightweight core makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.</p> |
| 87 | </div> |
| 88 | </div> |
| 89 | </div> |
| 90 | </div> |
| 91 | <br>Errors: <span id="errors">?</span> |
| 92 | <br>Failures: <span id="failures">?</span> |
| 93 | </body> |
| 94 | </html> |