browser/devtools/tilt/test/browser_tilt_utils02.js

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

mercurial