Home | History | Annotate | Download | only in modules
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 define("module0", function() {
      6   return {
      7     "foo": "bar",
      8   }
      9 });
     10 
     11 define("module2", [
     12     "gtest",
     13     "module0",
     14     "module1"
     15   ], function(gtest, module0, module1) {
     16   gtest.expectEqual(module0.foo, "bar",
     17       "module0.foo is " + module0.foo);
     18   gtest.expectFalse(module0.bar,
     19       "module0.bar is " + module0.bar);
     20   gtest.expectEqual(module1.baz, "qux",
     21       "module1.baz is " + module1.baz);
     22   gtest.expectFalse(module1.qux,
     23       "module1.qux is " + module1.qux);
     24 
     25   this.result = "PASS";
     26 });
     27 
     28 define("module1", {
     29   "baz": "qux",
     30 });
     31