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

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

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 6 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/sunflower.html ('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 c967f17b9cb9096092917127b131e54df18940b4..5dc7175b95dbe9c9e4497a8c323f069016e6e6ea 100644
--- a/test/codegen/expect/sunflower/sunflower.js
+++ b/test/codegen/expect/sunflower/sunflower.js
@@ -1,10 +1,11 @@
-var sunflower = dart.defineLibrary(sunflower, {});
-var dom = dart.import(dom);
-var core = dart.import(core);
-var math = dart.import(math);
-var painter = dart.import(painter);
-var circle = dart.import(circle);
-(function(exports, dom, core, math, painter, circle) {
+dart.library('sunflower', null, /* Imports */[
+ 'dom',
+ 'dart/core',
+ 'dart/math',
+ 'painter',
+ 'circle'
+], /* Lazy imports */[
+], function(exports, dom, core, math, painter, circle) {
'use strict';
let SEED_RADIUS = 2;
let SCALE_FACTOR = 4;
@@ -73,4 +74,4 @@ var circle = dart.import(circle);
exports.main = main;
exports.draw = draw;
exports.SunflowerSeed = SunflowerSeed;
-})(sunflower, dom, core, math, painter, circle);
+});
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.html ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698