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

Unified Diff: test/codegen_expected/language/hello_script_test.js

Issue 2234343003: fix #620, infer the input files from sources (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix Created 4 years, 4 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_expected/language/hello_script_test.js
diff --git a/test/codegen_expected/language/hello_script_test.js b/test/codegen_expected/language/hello_script_test.js
index 0c6a6854ae66ffc3bb4d224622bd6d0fb857cb23..dc4563f06359a41528052fdbd02687be918a8a6e 100644
--- a/test/codegen_expected/language/hello_script_test.js
+++ b/test/codegen_expected/language/hello_script_test.js
@@ -1 +1,38 @@
-//FAILED TO COMPILE
+dart_library.library('language/hello_script_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__hello_script_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const hello_script_test = Object.create(null);
+ const hello_script_lib = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ hello_script_test.main = function() {
+ hello_script_lib.HelloLib.doTest();
+ expect$.Expect.equals(18, hello_script_lib.x);
+ core.print("Hello done.");
+ };
+ dart.fn(hello_script_test.main, VoidTodynamic());
+ hello_script_lib.HelloLib = class HelloLib extends core.Object {
+ static doTest() {
+ hello_script_lib.x = 17;
+ expect$.Expect.equals(17, (() => {
+ let x = hello_script_lib.x;
+ hello_script_lib.x = dart.dsend(x, '+', 1);
+ return x;
+ })());
+ core.print("Hello from Lib!");
+ }
+ };
+ dart.setSignature(hello_script_lib.HelloLib, {
+ statics: () => ({doTest: dart.definiteFunctionType(dart.dynamic, [])}),
+ names: ['doTest']
+ });
+ hello_script_lib.x = null;
+ // Exports:
+ exports.hello_script_test = hello_script_test;
+ exports.hello_script_lib = hello_script_lib;
+});

Powered by Google App Engine
This is Rietveld 408576698