From aca25d19793cdc7cd7ac7ab1646f9ba87bf74e82 Mon Sep 17 00:00:00 2001 From: houseofyin Date: Sat, 1 Jun 2013 16:08:23 -0400 Subject: [PATCH] Speeding up the tets --- test/navigator.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/test/navigator.js b/test/navigator.js index e876950a..63c7f6f1 100644 --- a/test/navigator.js +++ b/test/navigator.js @@ -16,6 +16,10 @@ QUnit.config.autostart = false; setup:function () { Util.resetDom(); resetTestVariables(); + }, + teardown:function () { + Util.resetDom(); + resetTestVariables(); } }); @@ -271,7 +275,7 @@ QUnit.config.autostart = false; assessmentOperation:assessViewerInCenter, assessmentMessage:"After drag on navigator from top left" } ], - autoHideWaitTime = 7500; + autoHideWaitTime = 3000; seadragonProperties.visibilityRatio = 1; viewer = OpenSeadragon(seadragonProperties); @@ -351,7 +355,9 @@ QUnit.config.autostart = false; id:'tallexample', prefixUrl:'/build/openseadragon/images/', tileSources:'/test/data/wide.dzi', - showNavigator:true + showNavigator:true, + animationTime:0, + controlsFadeDelay:0 }, { displayRegionLocator:'.navigator .displayregion', @@ -373,7 +379,9 @@ QUnit.config.autostart = false; navigatorId:'exampleNavigator', prefixUrl:'/build/openseadragon/images/', tileSources:'/test/data/wide.dzi', - showNavigator:true + showNavigator:true, + animationTime:0, + controlsFadeDelay:0 }, { displayRegionLocator:'#exampleNavigator .displayregion', @@ -396,7 +404,9 @@ QUnit.config.autostart = false; navigatorId:'exampleNavigator', prefixUrl:'/build/openseadragon/images/', tileSources:'/test/data/tall.dzi', - showNavigator:true + showNavigator:true, + animationTime:0, + controlsFadeDelay:0 }, { displayRegionLocator:'#exampleNavigator .displayregion', @@ -416,7 +426,9 @@ QUnit.config.autostart = false; id:'wideexample', prefixUrl:'/build/openseadragon/images/', tileSources:'/test/data/tall.dzi', - showNavigator:true + showNavigator:true, + animationTime:0, + controlsFadeDelay:0 }, { displayRegionLocator:'.navigator .displayregion',