michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: "use strict"; michael@0: michael@0: function test() { michael@0: let l10 = TiltUtils.L10n; michael@0: ok(l10, "The TiltUtils.L10n wasn't found."); michael@0: michael@0: michael@0: ok(l10.stringBundle, michael@0: "The necessary string bundle wasn't found."); michael@0: is(l10.get(), null, michael@0: "The get() function shouldn't work if no params are passed."); michael@0: is(l10.format(), null, michael@0: "The format() function shouldn't work if no params are passed."); michael@0: michael@0: is(typeof l10.get("initWebGL.error"), "string", michael@0: "No valid string was returned from a corect name in the bundle."); michael@0: is(typeof l10.format("linkProgram.error", ["error"]), "string", michael@0: "No valid formatted string was returned from a name in the bundle."); michael@0: }