Fixed a few minor errors in the test code

This commit is contained in:
houseofyin 2013-04-01 23:30:05 -04:00
parent 5bf4b51925
commit f3d880df4c

View File

@ -158,7 +158,7 @@ QUnit.config.autostart = false;
{ {
//Ignore. Subsequent code will try again shortly //Ignore. Subsequent code will try again shortly
} }
if (( !viewerAndNavigatorDisplayReady) && count < 40) { if (( !viewerAndNavigatorDisplayReady) && count < 50) {
count++; count++;
setTimeout(function () {waitForViewer(handler, count, currentDisplayRegionLeft, currentDisplayWidth);}, 100) setTimeout(function () {waitForViewer(handler, count, currentDisplayRegionLeft, currentDisplayWidth);}, 100)
} }
@ -167,7 +167,7 @@ QUnit.config.autostart = false;
{ {
console.log( "waitForViewer:" + console.log( "waitForViewer:" +
viewer.drawer + ":" + viewer.drawer.needsUpdate() + ":" + viewer.drawer + ":" + viewer.drawer.needsUpdate() + ":" +
propertyAchieved + ":" + viewerAndNavigatorDisplayReady + ":" +
lastDisplayRegionLeft + ":" + currentDisplayRegionLeft + ":" + lastDisplayRegionLeft + ":" + currentDisplayRegionLeft + ":" +
lastDisplayWidth + ":" + currentDisplayWidth + ":" + lastDisplayWidth + ":" + currentDisplayWidth + ":" +
viewer.viewport.getBounds(true).x + ":" + viewer.viewport.getBounds().x + ":" + viewer.viewport.getBounds(true).x + ":" + viewer.viewport.getBounds().x + ":" +
@ -379,6 +379,7 @@ QUnit.config.autostart = false;
}); });
asyncTest('NavigatorOnJQueryDialog', function () { asyncTest('NavigatorOnJQueryDialog', function () {
$('#exampleNavigator').dialog();
assessNavigatorViewerPlacement({ assessNavigatorViewerPlacement({
id:'example', id:'example',
navigatorId:'exampleNavigator', navigatorId:'exampleNavigator',