projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d254d25
)
fix broken test case
author
Dan Vanderkam
<dan@dygraphs.com>
Sat, 31 Mar 2012 21:42:14 +0000
(17:42 -0400)
committer
Dan Vanderkam
<dan@dygraphs.com>
Sat, 31 Mar 2012 21:42:14 +0000
(17:42 -0400)
auto_tests/tests/interaction_model.js
patch
|
blob
|
blame
|
history
diff --git
a/auto_tests/tests/interaction_model.js
b/auto_tests/tests/interaction_model.js
index
4646ff8
..
0a5621d
100644
(file)
--- a/
auto_tests/tests/interaction_model.js
+++ b/
auto_tests/tests/interaction_model.js
@@
-354,7
+354,12
@@
InteractionModelTestCase.prototype.testCorrectAxisValueRangeAfterUnzoom = functi
assertNotEquals(1,currentYAxisRange[0]);
assertNotEquals(50,currentYAxisRange[1]);
assertNotEquals(1,currentYAxisRange[0]);
assertNotEquals(50,currentYAxisRange[1]);
- // unzoom by doubleclick
+ // unzoom by doubleclick. This is really the order in which a browser
+ // generates events, and we depend on it.
+ DygraphOps.dispatchMouseDown_Point(g, 10, 10);
+ DygraphOps.dispatchMouseUp_Point(g, 10, 10);
+ DygraphOps.dispatchMouseDown_Point(g, 10, 10);
+ DygraphOps.dispatchMouseUp_Point(g, 10, 10);
DygraphOps.dispatchDoubleClick(g, null);
// check if range for y-axis was reset to original value
DygraphOps.dispatchDoubleClick(g, null);
// check if range for y-axis was reset to original value