diff --git a/test/strings.js b/test/strings.js index c454e808..1c740a8a 100644 --- a/test/strings.js +++ b/test/strings.js @@ -1,6 +1,12 @@ +/* global module, asyncTest, $, ok, equal, notEqual, start, test, Util, testLog */ + (function() { - module("strings"); + module("strings", { + setup: function () { + testLog.reset(); + } + }); test("getSubString", function() { equal(OpenSeadragon.getString("Errors.Dzi"), @@ -15,10 +21,13 @@ }); test("getInvalidString", function() { - equal(OpenSeadragon.getString("Greeting"), "", - "Handled unset string key"); - equal(OpenSeadragon.getString("Errors"), "", - "Handled requesting parent key"); + equal(OpenSeadragon.getString("Greeting"), "", "Handled unset string key"); + ok(testLog.debug.contains('["Untranslated source string:","Greeting"]'), + 'Invalid string keys are logged'); + + equal(OpenSeadragon.getString("Errors"), "", "Handled requesting parent key"); + ok(testLog.debug.contains('["Untranslated source string:","Errors"]'), + 'Invalid string parent keys are logged'); }); test("setString", function() {