From 219e4a14c68824efa28cb3b4600db4a8ad2cd2bd Mon Sep 17 00:00:00 2001 From: Peter Date: Thu, 9 Feb 2017 17:29:13 -0500 Subject: [PATCH 1/2] Update strings.js --- src/strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.js b/src/strings.js index 670ed01d..cd3c7907 100644 --- a/src/strings.js +++ b/src/strings.js @@ -82,7 +82,7 @@ $.extend( $, /** @lends OpenSeadragon */{ string = container[ props[ i ] ]; if ( typeof( string ) != "string" ) { - $.console.debug( "Untranslated source string:", prop ); + $.console.log( "Untranslated source string:", prop ); string = ""; // FIXME: this breaks gettext()-style convention, which would return source } From c81e10ba5783d20546e0c8d9da1f7c1391434912 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 10 Feb 2017 15:20:05 -0500 Subject: [PATCH 2/2] updated test for console.log instead of console.debug --- test/modules/strings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/modules/strings.js b/test/modules/strings.js index 0cc0d8d4..83f97d82 100644 --- a/test/modules/strings.js +++ b/test/modules/strings.js @@ -22,11 +22,11 @@ test("getInvalidString", function() { equal(OpenSeadragon.getString("Greeting"), "", "Handled unset string key"); - ok(testLog.debug.contains('["Untranslated source string:","Greeting"]'), + ok(testLog.log.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"]'), + ok(testLog.log.contains('["Untranslated source string:","Errors"]'), 'Invalid string parent keys are logged'); });