browser/devtools/tilt/test/browser_tilt_01_lazy_getter.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/tilt/test/browser_tilt_01_lazy_getter.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 +   http://creativecommons.org/publicdomain/zero/1.0/ */
     1.6 +"use strict";
     1.7 +
     1.8 +function test() {
     1.9 +  ok(Tilt,
    1.10 +    "The Tilt object wasn't got correctly via defineLazyGetter.");
    1.11 +  is(Tilt.chromeWindow, window,
    1.12 +    "The top-level window wasn't saved correctly");
    1.13 +  ok(Tilt.visualizers,
    1.14 +    "The holder object for all the instances of the visualizer doesn't exist.")
    1.15 +  ok(Tilt.NOTIFICATIONS,
    1.16 +    "The notifications constants weren't referenced correctly.");
    1.17 +}

mercurial