diff --git a/test/basic.js b/test/basic.js index 46abc823..4a7892d9 100644 --- a/test/basic.js +++ b/test/basic.js @@ -133,7 +133,7 @@ }; viewer.addHandler('animation-finish', homeHandler); - viewer.goHome(true); + viewer.viewport.goHome(true); } viewer.addHandler("open", opener); diff --git a/test/test.js b/test/test.js index c051d14b..68010ef4 100644 --- a/test/test.js +++ b/test/test.js @@ -134,6 +134,12 @@ } } + testConsole.assert = function(condition, message) { + if (condition) { + testConsole.error(message); + } + }; + OpenSeadragon.console = testConsole; } )();