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

Unified Diff: test/codegen_expected/language/library1_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/library1_test.js
diff --git a/test/codegen_expected/language/library1_test.js b/test/codegen_expected/language/library1_test.js
index 0c6a6854ae66ffc3bb4d224622bd6d0fb857cb23..4eff24b77affa760f862621815208bb56581f09d 100644
--- a/test/codegen_expected/language/library1_test.js
+++ b/test/codegen_expected/language/library1_test.js
@@ -1 +1,42 @@
-//FAILED TO COMPILE
+dart_library.library('language/library1_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__library1_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 library1_test = Object.create(null);
+ const library1_lib = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ library1_test.main = function() {
+ library1_test.Library1Test.testMain();
+ };
+ dart.fn(library1_test.main, VoidTodynamic());
+ library1_test.Library1Test = class Library1Test extends core.Object {
+ static testMain() {
+ let a = new library1_lib.A();
+ let s = a.foo();
+ expect$.Expect.equals(s, "foo-rty two");
+ }
+ };
+ dart.setSignature(library1_test.Library1Test, {
+ statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
+ names: ['testMain']
+ });
+ library1_lib.A = class A extends core.Object {
+ new() {
+ }
+ foo() {
+ return "foo-rty two";
+ }
+ };
+ dart.setSignature(library1_lib.A, {
+ constructors: () => ({new: dart.definiteFunctionType(library1_lib.A, [])}),
+ methods: () => ({foo: dart.definiteFunctionType(core.String, [])})
+ });
+ // Exports:
+ exports.library1_test = library1_test;
+ exports.library1_lib = library1_lib;
+});

Powered by Google App Engine
This is Rietveld 408576698