browser/devtools/tilt/test/browser_tilt_utils02.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

michael@0 1 /* Any copyright is dedicated to the Public Domain.
michael@0 2 http://creativecommons.org/publicdomain/zero/1.0/ */
michael@0 3 "use strict";
michael@0 4
michael@0 5 function test() {
michael@0 6 let l10 = TiltUtils.L10n;
michael@0 7 ok(l10, "The TiltUtils.L10n wasn't found.");
michael@0 8
michael@0 9
michael@0 10 ok(l10.stringBundle,
michael@0 11 "The necessary string bundle wasn't found.");
michael@0 12 is(l10.get(), null,
michael@0 13 "The get() function shouldn't work if no params are passed.");
michael@0 14 is(l10.format(), null,
michael@0 15 "The format() function shouldn't work if no params are passed.");
michael@0 16
michael@0 17 is(typeof l10.get("initWebGL.error"), "string",
michael@0 18 "No valid string was returned from a corect name in the bundle.");
michael@0 19 is(typeof l10.format("linkProgram.error", ["error"]), "string",
michael@0 20 "No valid formatted string was returned from a name in the bundle.");
michael@0 21 }

mercurial