browser/devtools/tilt/test/browser_tilt_utils02.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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 }

mercurial