Debian Codegraph @

dijit/tests/layout/robot/AccordionContainer_mouse.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 AccordionContainer Mouse 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", "dojo/domReady!"
18 ], function(doh, robot){
19
20 robot.initRobot('../test_AccordionContainer.html');
21
22 var registry;
23
24 doh.register("setup", [
25 function setup(){
26 // get pointers to singletons loaded on test page
27 registry = robot.window.require("dijit/registry");
28 }
29 ]);
30
31 doh.register("Accordion Mouse tests",[
32 {
33 name: "basic operation",
34 timeout: 10000,
35 runTest: function(t){
36 var d = new doh.Deferred();
37
38 // Click open second pane
39 robot.mouseMoveAt("lazyLoadPane_button_title", 500, 1);
40 robot.mouseClick({left: true}, 500);
41 robot.sequence(d.getTestErrback(function(){
42 doh.is("lazyLoadPane", registry.byId("markupAccordion").get("selectedChildWidget").id, "second pane is now selected");
43 }), 500);
44
45 // Click open fourth pane
46 robot.mouseMoveAt("embeddedLayoutPane_button_title", 500, 1);
47 robot.mouseClick({left: true}, 500);
48 robot.sequence(d.getTestCallback(function(){
49 doh.is("embeddedLayoutPane", registry.byId("markupAccordion").get("selectedChildWidget").id, "fourth pane is now selected");
50 }), 2000);
51
52 return d;
53 }
54 }
55 ]);
56
57 doh.run();
58 });
59 </script>
60 </head>
61 </html>