Debian Codegraph @

dojox/mobile/tests/robot/ListItem.html

raw symbols SCIP
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 <!-- required: dojo.js -->
12 <script type="text/javascript" src="../../../../dojo/dojo.js"
13 data-dojo-config="isDebug: true"></script>
14
15 <!-- functions to help test -->
16 <!-- script type="text/javascript" src="../helpers.js"></script -->
17
18 <script type="text/javascript">
19 dojo.require("dijit.robotx");
20 dojo.require("dijit.registry");
21
22 dojo.addOnLoad(function(){
23 doh.robot.initRobot("../test_ajax-html.html");
24
25 doh.register("dojox.mobile.ListItem mouse tests", [
26 {
27 name: "ListItem mouse tests",
28 timeout: 7000,
29 runTest: function(){
30 var d = new doh.Deferred();
31 var reg=dojo.global.dijit.registry;
32
33 doh.robot.mouseMoveAt(reg.byId("dojox_mobile_ListItem_0").domNode, 2000);
34 doh.robot.mouseClick({left: true}, 500);
35
36 // FIXME: this animation can be very slow on mobile, it would be nice to register an event handler.
37 doh.robot.sequence(d.getTestCallback(function(){
38 doh.is("view1.html", reg.byId("dojox_mobile_Heading_1").get("label"));
39 }), 2000);
40 return d;
41 }
42 }
43 ]);
44
45 doh.run();
46 });
47 </script>
48 </head>
49 <body />
50 </html>