X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Finteraction_model.js;h=0a5621dfc41a6961c71210fd3d33b6434222f2a4;hb=e6b0b7c295a1c3838817744e4548c52bbbdf051f;hp=4646ff8935f08993840aa8b247edd66c268cc154;hpb=9aedaae31868bdc2b57ee3e80cab1894b85dadae;p=dygraphs.git diff --git a/auto_tests/tests/interaction_model.js b/auto_tests/tests/interaction_model.js index 4646ff8..0a5621d 100644 --- 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]); - // 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