summaryrefslogtreecommitdiff
path: root/browser/devtools/tilt/test/browser_tilt_utils02.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2014-05-21 11:38:25 +0200
committerwolfbeast <mcwerewolf@gmail.com>2014-05-21 11:38:25 +0200
commitd25ba7d760b017b038e5aa6c0a605b4a330eb68d (patch)
tree16ec27edc7d5f83986f16236d3a36a2682a0f37e /browser/devtools/tilt/test/browser_tilt_utils02.js
parenta942906574671868daf122284a9c4689e6924f74 (diff)
downloadpalemoon-gre-d25ba7d760b017b038e5aa6c0a605b4a330eb68d.tar.gz
Recommit working copy to repo with proper line endings.
Diffstat (limited to 'browser/devtools/tilt/test/browser_tilt_utils02.js')
-rw-r--r--browser/devtools/tilt/test/browser_tilt_utils02.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/browser/devtools/tilt/test/browser_tilt_utils02.js b/browser/devtools/tilt/test/browser_tilt_utils02.js
new file mode 100644
index 000000000..fcee265c6
--- /dev/null
+++ b/browser/devtools/tilt/test/browser_tilt_utils02.js
@@ -0,0 +1,21 @@
+/* Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ */
+"use strict";
+
+function test() {
+ let l10 = TiltUtils.L10n;
+ ok(l10, "The TiltUtils.L10n wasn't found.");
+
+
+ ok(l10.stringBundle,
+ "The necessary string bundle wasn't found.");
+ is(l10.get(), null,
+ "The get() function shouldn't work if no params are passed.");
+ is(l10.format(), null,
+ "The format() function shouldn't work if no params are passed.");
+
+ is(typeof l10.get("initWebGL.error"), "string",
+ "No valid string was returned from a corect name in the bundle.");
+ is(typeof l10.format("linkProgram.error", ["error"]), "string",
+ "No valid formatted string was returned from a name in the bundle.");
+}