Debian Codegraph @

dojox/grid/tests/robot/7815.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 #7815 regression 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 <script type="text/javascript">
15 dojo.require("dijit.robotx");
16
17 dojo.addOnLoad(function(){
18
19 doh.robot.initRobot('_DataGrid.html');
20
21 doh.register("#7815",[
22 {
23 name: "editor toolbar displays",
24 timeout:60000,
25 runTest: function(){
26 // see also "edit reordered columns" test below
27 var d = new doh.Deferred();
28 var grid=dijit.byId('markup_grid_1');
29 doh.robot.sequence(function(){
30 var initialFocus = dojo.byId('initialfocus');
31 initialFocus.focus();
32 });
33 // now move focus to first ID cell of markup grid
34 var tabCount = dojo.isIE? 3:(dojo.isFF?4:6);
35 for(var i=0; i<tabCount; i++){
36 doh.robot.keyPress(dojo.keys.TAB,500);
37 }
38 // precondition: cells still arranged to id date priority mark status message amount amount
39 for(var i=0; i<5; i++){
40 doh.robot.keyPress(dojo.keys.RIGHT_ARROW,500);
41 }
42 doh.robot.keyPress(dojo.keys.ENTER,500);
43 doh.robot.sequence(d.getTestCallback(function(){
44 doh.isNot(undefined,dijit.byId('dijit_Editor_0'),"Editing the 6th field of the 1st row did not open the expected dijit.Editor.");
45 doh.t(dijit.byId('dijit_Editor_0').focused);
46 doh.isNot(undefined,dijit.byId('dijit_Toolbar_0'),"Editor toolbar should have been created.");
47 doh.isNot(undefined,dijit.byId('dijit_Toolbar_0').domNode.parentNode,"Editor toolbar should have been attached to the DOM");
48 }),500);
49 return d;
50 }
51 }
52 ]);
53 doh.run();
54 });
55 </script>
56 </head>
57 </html>