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

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

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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.txt ('k') | test/codegen/expect/sunflower/painter.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/sunflower/painter.js
diff --git a/test/codegen/expect/sunflower/painter.js b/test/codegen/expect/sunflower/painter.js
deleted file mode 100644
index ceaac7466b6084d9978bceaa8afa189e84f8aa40..0000000000000000000000000000000000000000
--- a/test/codegen/expect/sunflower/painter.js
+++ /dev/null
@@ -1,55 +0,0 @@
-dart_library.library('sunflower/painter', null, /* Imports */[
- 'dart/_runtime',
- 'dart/math',
- 'sunflower/dom',
- 'dart/core',
- 'sunflower/circle'
-], /* Lazy imports */[
-], function(exports, dart, math, dom, core, circle) {
- 'use strict';
- let dartx = dart.dartx;
- const ORANGE = "orange";
- const RED = "red";
- const BLUE = "blue";
- const TAU = dart.notNull(math.PI) * 2;
- function querySelector(selector) {
- return dom.document.querySelector(selector);
- }
- dart.fn(querySelector, dom.Element, [core.String]);
- dart.defineLazyProperties(exports, {
- get canvas() {
- return dart.as(querySelector("#canvas"), dom.CanvasElement);
- }
- });
- dart.defineLazyProperties(exports, {
- get context() {
- return dart.as(exports.canvas.getContext('2d'), dom.CanvasRenderingContext2D);
- }
- });
- class CirclePainter extends core.Object {
- CirclePainter() {
- this.color = ORANGE;
- }
- draw(context) {
- context.beginPath();
- context.lineWidth = 2;
- context.fillStyle = this.color;
- context.strokeStyle = this.color;
- context.arc(this.x, this.y, this.radius, 0, TAU, false);
- context.fill();
- context.closePath();
- context.stroke();
- }
- }
- CirclePainter[dart.implements] = () => [circle.Circle];
- dart.setSignature(CirclePainter, {
- methods: () => ({draw: [dart.void, [dom.CanvasRenderingContext2D]]})
- });
- // Exports:
- exports.ORANGE = ORANGE;
- exports.RED = RED;
- exports.BLUE = BLUE;
- exports.TAU = TAU;
- exports.querySelector = querySelector;
- exports.CirclePainter = CirclePainter;
-});
« no previous file with comments | « test/codegen/expect/sunflower/dom.txt ('k') | test/codegen/expect/sunflower/painter.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698