Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: gin/modules/module_registry_unittests.js

Issue 62333018: Implement Asynchronous Module Definition API for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar testing Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698