| 1 | dojo.addOnLoad(function(){ |
| 2 | doh.register("dojox.mobile.test.doh.RoundRectDataList", [ |
| 3 | { |
| 4 | name: "RoundRectDataList Verification", |
| 5 | timeout: 4000, |
| 6 | runTest: function(){ |
| 7 | var d = new doh.Deferred(); |
| 8 | setTimeout(d.getTestCallback(function(){ |
| 9 | verifyListItem("dojox_mobile_ListItem_0", 'Wi-Fi', '', "mblDomButtonArrow", true, true, false, false, /i-icon-1.png/i); |
| 10 | |
| 11 | verifyListItem("dojox_mobile_ListItem_3", 'General', '', "mblDomButtonArrow", true, true, false, false, /i-icon-4.png/i, true); |
| 12 | |
| 13 | }),500); |
| 14 | return d; |
| 15 | } |
| 16 | }, |
| 17 | { |
| 18 | name: "RoundRectDataList Verification2", |
| 19 | timeout: 10000, |
| 20 | runTest: function(){ |
| 21 | var d = new doh.Deferred(); |
| 22 | setTimeout(d.getTestCallback(function(){ |
| 23 | |
| 24 | add1(); |
| 25 | add1(); |
| 26 | add1(); |
| 27 | verifyListItem("dojox_mobile_ListItem_12", 'New Item', '', "mblDomButtonArrow", false, true, false, false); |
| 28 | |
| 29 | delete1(); |
| 30 | demoWidget = dijit.byId("dojox_mobile_ListItem_12"); |
| 31 | doh.assertTrue(!demoWidget); |
| 32 | |
| 33 | verifyListItem("dojox_mobile_ListItem_11", 'New Item', '', "mblDomButtonArrow", false, true, false, false); |
| 34 | |
| 35 | }),1500); |
| 36 | return d; |
| 37 | } |
| 38 | }, |
| 39 | { |
| 40 | name: "RoundRectDataList Verification3", |
| 41 | timeout: 10000, |
| 42 | runTest: function(){ |
| 43 | var d = new doh.Deferred(); |
| 44 | setTimeout(d.getTestCallback(function(){ |
| 45 | |
| 46 | switchTo(store2); |
| 47 | verifyListItem("dojox_mobile_ListItem_13", 'Apple', '', "mblDomButtonArrow", false, true, false, false); |
| 48 | |
| 49 | }),2500); |
| 50 | return d; |
| 51 | } |
| 52 | } |
| 53 | ]); |
| 54 | doh.run(); |
| 55 | }); |