| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
| 3 |
<html> |
| 4 |
<head> |
| 5 |
<title>doh.robot Tooltip Mouse Quirks Test</title> |
| 6 |
|
| 7 |
<style> |
| 8 |
@import "../../../../util/doh/robot/robot.css"; |
| 9 |
</style> |
| 10 |
|
| 11 |
|
| 12 |
<script type="text/javascript" src="../../../../dojo/dojo.js" |
| 13 |
data-dojo-config="isDebug: true"></script> |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
<script type="text/javascript"> |
| 19 |
dojo.require("dojo.parser"); |
| 20 |
dojo.require("dijit.robotx"); |
| 21 |
dojo.require("dojox.mobile"); |
| 22 |
dojo.require("dojox.mobile.IconContainer"); |
| 23 |
dojo.require("doh.runner"); |
| 24 |
|
| 25 |
dojo.addOnLoad(function(){ |
| 26 |
doh.robot.initRobot("../test_tablet-settings.html"); |
| 27 |
|
| 28 |
doh.register("dojox.mobile.Settings mouse tests", [ |
| 29 |
{ |
| 30 |
name: "Settings mouse tests", |
| 31 |
timeout: 50000, |
| 32 |
runTest: function(){ |
| 33 |
var d = new doh.Deferred(); |
| 34 |
|
| 35 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_0").domNode, 1000); |
| 36 |
doh.robot.mouseClick({left: true}, 500); |
| 37 |
|
| 38 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_1").domNode, 1000); |
| 39 |
doh.robot.mouseClick({left: true}, 500); |
| 40 |
|
| 41 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_2").domNode, 1000); |
| 42 |
doh.robot.mouseClick({left: true}, 500); |
| 43 |
|
| 44 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_3").domNode, 1000); |
| 45 |
doh.robot.mouseClick({left: true}, 500); |
| 46 |
|
| 47 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_4").domNode, 1000); |
| 48 |
doh.robot.mouseClick({left: true}, 500); |
| 49 |
|
| 50 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_5").domNode, 1000); |
| 51 |
doh.robot.mouseClick({left: true}, 500); |
| 52 |
|
| 53 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_6").domNode, 1000); |
| 54 |
doh.robot.mouseClick({left: true}, 500); |
| 55 |
|
| 56 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_7").domNode, 1000); |
| 57 |
doh.robot.mouseClick({left: true}, 500); |
| 58 |
|
| 59 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_8").domNode, 1000); |
| 60 |
doh.robot.mouseClick({left: true}, 500); |
| 61 |
|
| 62 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_9").domNode, 1000); |
| 63 |
doh.robot.mouseClick({left: true}, 500); |
| 64 |
|
| 65 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_10").domNode, 1000); |
| 66 |
doh.robot.mouseClick({left: true}, 500); |
| 67 |
|
| 68 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_11").domNode, 1000); |
| 69 |
doh.robot.mouseClick({left: true}, 500); |
| 70 |
|
| 71 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_12").domNode, 1000); |
| 72 |
doh.robot.mouseClick({left: true}, 500); |
| 73 |
|
| 74 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_13").domNode, 1000); |
| 75 |
doh.robot.mouseClick({left: true}, 500); |
| 76 |
|
| 77 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_14").domNode, 1000); |
| 78 |
doh.robot.mouseClick({left: true}, 500); |
| 79 |
|
| 80 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_15").domNode, 1000); |
| 81 |
doh.robot.mouseClick({left: true}, 500); |
| 82 |
|
| 83 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_16").domNode, 1000); |
| 84 |
doh.robot.mouseClick({left: true}, 500); |
| 85 |
|
| 86 |
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_17").domNode, 1000); |
| 87 |
doh.robot.mouseClick({left: true}, 500); |
| 88 |
|
| 89 |
doh.robot.sequence(d.getTestCallback(function(){ |
| 90 |
doh.assertEqual("", dijit.registry.byId("general").domNode.style.display); |
| 91 |
}), 1500); |
| 92 |
return d; |
| 93 |
} |
| 94 |
} |
| 95 |
]); |
| 96 |
|
| 97 |
doh.run(); |
| 98 |
}); |
| 99 |
</script> |
| 100 |
</head> |
| 101 |
<body /> |
| 102 |
</html> |