UNPKG

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.

103 lines (76 loc) 3.77 kB
<!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>