diff --git a/test/basic.js b/test/basic.js index add579cb..61f36673 100644 --- a/test/basic.js +++ b/test/basic.js @@ -1,4 +1,4 @@ -/* global module, asyncTest, $, ok, equal, notEqual, start, test, Util */ +/* global module, asyncTest, $, ok, equal, notEqual, start, test, Util, testLog */ (function() { var viewer; @@ -7,6 +7,8 @@ setup: function () { var example = $('
').appendTo("#qunit-fixture"); + testLog.reset(); + viewer = OpenSeadragon({ id: 'example', prefixUrl: '/build/openseadragon/images/', @@ -54,6 +56,9 @@ equal($(".openseadragon-message").length, 1, "Open failures should display a message"); + ok(testLog.log.contains('["AJAX request returned %s: %s",404,"/test/data/not-a-real-file"]'), + "AJAX failures should be logged to the console"); + start(); });