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

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: Rework with canonical names 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
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..8adbf282a61156845d07fbb6c5751e82e93aed15 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.js', null, /* Imports */[
+ 'dom.js',
+ 'dart/core.js',
+ 'dart/math.js',
+ 'painter.js',
+ 'circle.js'
+], /* 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);
+});

Powered by Google App Engine
This is Rietveld 408576698