Debian Codegraph @

dijit/tests/robot/Tooltip_mouse_quirks.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>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 <script type="text/javascript">
16 require([
17 "doh/runner", "dojo/robotx",
18 "dojo/query",
19 "dojo/domReady!"
20 ], function(doh, robot, query){
21
22 robot.initRobot("../quirks.html?file=test_Tooltip.html");
23
24 doh.register(function setup(){
25 // get pointer to registry in the iframe
26 registry = robot.window.require("dijit/registry");
27 });
28
29 doh.register("dijit.Tooltip mouse quirks tests", [
30 // Test that BackgroundIFrame has right proportions; this used to fail in quirks mode
31 // because the BackgroundIFrame would overlap the calendar, blocking clicks on elements on the right.
32 {
33 name: "BackgroundIframe",
34 timeout: 4000,
35 runTest: function(){
36 var d = new doh.Deferred();
37
38 robot.mouseMoveAt(query(".dijitArrowButton", registry.byId("dtb").domNode)[0], 500);
39 robot.mouseClick({left: true}, 500);
40
41 // Click Dec 4, 2010
42 robot.mouseMoveAt(function(){
43 return query(".dijitCalendarDateLabel", registry.byId("dtb_popup").domNode)[6];
44 } , 1000);
45 robot.mouseClick({left: true}, 500);
46
47 robot.sequence(d.getTestCallback(function(){
48 doh.is("12/4/2010", registry.byId("dtb").get("displayedValue"));
49 }), 500);
50
51 return d;
52 }
53 }
54 ]);
55
56 doh.run();
57 });
58 </script>
59 </head>
60 </html>