Project

General

Profile

Download (993 Bytes) Statistics
| Branch: | Revision:
1
/*
2
	Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
3
	Available via Academic Free License >= 2.1 OR the modified BSD license.
4
	see: http://dojotoolkit.org/license for details
5
*/
6

    
7

    
8
if(!dojo._hasResource["dojo.robot"]){
9
dojo._hasResource["dojo.robot"]=true;
10
dojo.provide("dojo.robot");
11
dojo.experimental("dojo.robot");
12
dojo.require("doh.robot");
13
(function(){
14
dojo.mixin(doh.robot,{_scrollIntoView:function(_1){
15
if(typeof _1=="function"){
16
_1=_1();
17
}
18
_1.scrollIntoView(false);
19
},scrollIntoView:function(_2,_3){
20
doh.robot.sequence(function(){
21
doh.robot._scrollIntoView(_2);
22
},_3);
23
},mouseMoveAt:function(_4,_5,_6,_7,_8){
24
doh.robot._assertRobot();
25
_6=_6||100;
26
this.sequence(function(){
27
if(typeof _4=="function"){
28
_4=_4();
29
}
30
if(!_4){
31
return;
32
}
33
_4=dojo.byId(_4);
34
if(_8===undefined){
35
var _9=dojo.contentBox(_4);
36
_7=_9.w/2;
37
_8=_9.h/2;
38
}
39
var x=_7;
40
var y=_8;
41
doh.robot._scrollIntoView(_4);
42
var c=dojo.coords(_4);
43
x+=c.x;
44
y+=c.y;
45
doh.robot._mouseMove(x,y,false,_6);
46
},_5,_6);
47
}});
48
})();
49
}
(24-24/26)