Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
3 "use strict";
5 function test() {
6 let l10 = TiltUtils.L10n;
7 ok(l10, "The TiltUtils.L10n wasn't found.");
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.");
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 }