You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.7 KiB
102 lines
3.7 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
"http://www.w3.org/TR/html4/strict.dtd"> |
|
<html> |
|
<head> |
|
<title>doh.robot Tooltip Mouse Quirks Test</title> |
|
|
|
<style> |
|
@import "../../../../util/doh/robot/robot.css"; |
|
</style> |
|
|
|
<!-- required: dojo.js --> |
|
<script type="text/javascript" src="../../../../dojo/dojo.js" |
|
data-dojo-config="isDebug: true"></script> |
|
|
|
<!-- functions to help test --> |
|
<!-- script type="text/javascript" src="../helpers.js"></script --> |
|
|
|
<script type="text/javascript"> |
|
dojo.require("dojo.parser"); |
|
dojo.require("dijit.robotx"); |
|
dojo.require("dojox.mobile"); |
|
dojo.require("dojox.mobile.IconContainer"); |
|
dojo.require("doh.runner"); |
|
|
|
dojo.addOnLoad(function(){ |
|
doh.robot.initRobot("../test_tablet-settings.html"); |
|
|
|
doh.register("dojox.mobile.Settings mouse tests", [ |
|
{ |
|
name: "Settings mouse tests", |
|
timeout: 50000, |
|
runTest: function(){ |
|
var d = new doh.Deferred(); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_0").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_1").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_2").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_3").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_4").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_5").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_6").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_7").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_8").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_9").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_10").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_11").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_12").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_13").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_14").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_15").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_16").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.mouseMoveAt(dijit.registry.byId("dojox_mobile_ListItem_17").domNode, 1000); |
|
doh.robot.mouseClick({left: true}, 500); |
|
|
|
doh.robot.sequence(d.getTestCallback(function(){ |
|
doh.assertEqual("", dijit.registry.byId("general").domNode.style.display); |
|
}), 1500); |
|
return d; |
|
} |
|
} |
|
]); |
|
|
|
doh.run(); |
|
}); |
|
</script> |
|
</head> |
|
<body /> |
|
</html>
|
|
|