|
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 } |