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

Unified Diff: test/codegen/expect/sunflower/sunflower.js

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase and format Created 5 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/sunflower/dom.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/sunflower/sunflower.js
diff --git a/test/codegen/expect/sunflower/sunflower.js b/test/codegen/expect/sunflower/sunflower.js
index 6a14e4c576984ee58158b5d649b23073f21cbec2..15772ba3899eb3751b25e8ef44ee79ef3b8f5312 100644
--- a/test/codegen/expect/sunflower/sunflower.js
+++ b/test/codegen/expect/sunflower/sunflower.js
@@ -1,5 +1,8 @@
-var sunflower;
-(function(exports) {
+var sunflower = dart.defineLibrary(sunflower, {});
+var math = dart.import(math);
+var dom = dart.import(dom);
+var core = dart.import(core);
+(function(exports, math, dom, core) {
'use strict';
let ORANGE = "orange";
let SEED_RADIUS = 2;
@@ -91,4 +94,4 @@ var sunflower;
exports.SunflowerSeed = SunflowerSeed;
exports.Circle = Circle;
exports.CirclePainter = CirclePainter;
-})(sunflower || (sunflower = {}));
+})(sunflower, math, dom, core);
« no previous file with comments | « test/codegen/expect/sunflower/dom.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698