Unit test fixes.

This commit is contained in:
Ian Gilman 2014-08-18 16:32:21 -07:00
parent 8efad6f3a0
commit 796588ace2
2 changed files with 7 additions and 1 deletions

View File

@ -133,7 +133,7 @@
}; };
viewer.addHandler('animation-finish', homeHandler); viewer.addHandler('animation-finish', homeHandler);
viewer.goHome(true); viewer.viewport.goHome(true);
} }
viewer.addHandler("open", opener); viewer.addHandler("open", opener);

View File

@ -134,6 +134,12 @@
} }
} }
testConsole.assert = function(condition, message) {
if (condition) {
testConsole.error(message);
}
};
OpenSeadragon.console = testConsole; OpenSeadragon.console = testConsole;
} )(); } )();