dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
51 lines (41 loc) • 1.38 kB
HTML
<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("dijit.robotx");
dojo.require("dijit.registry");
dojo.addOnLoad(function(){
doh.robot.initRobot("../test_ajax-html.html");
doh.register("dojox.mobile.ListItem mouse tests", [
{
name: "ListItem mouse tests",
timeout: 7000,
runTest: function(){
var d = new doh.Deferred();
var reg=dojo.global.dijit.registry;
doh.robot.mouseMoveAt(reg.byId("dojox_mobile_ListItem_0").domNode, 2000);
doh.robot.mouseClick({left: true}, 500);
// FIXME: this animation can be very slow on mobile, it would be nice to register an event handler.
doh.robot.sequence(d.getTestCallback(function(){
doh.is("view1.html", reg.byId("dojox_mobile_Heading_1").get("label"));
}), 2000);
return d;
}
}
]);
doh.run();
});
</script>
</head>
<body />
</html>