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

Unified Diff: test/codegen_expected/language/multi_pass_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/multi_pass_test.js
diff --git a/test/codegen_expected/language/multi_pass_test.js b/test/codegen_expected/language/multi_pass_test.js
index 0c6a6854ae66ffc3bb4d224622bd6d0fb857cb23..9b250013a7ebb17006aa7bd3a7bb99bc77fd7e00 100644
--- a/test/codegen_expected/language/multi_pass_test.js
+++ b/test/codegen_expected/language/multi_pass_test.js
@@ -1 +1,52 @@
-//FAILED TO COMPILE
+dart_library.library('language/multi_pass_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__multi_pass_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 multi_pass_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ multi_pass_test.Base = class Base extends core.Object {
+ new(value) {
+ this.value = value;
+ }
+ };
+ dart.setSignature(multi_pass_test.Base, {
+ constructors: () => ({new: dart.definiteFunctionType(multi_pass_test.Base, [dart.dynamic])})
+ });
+ multi_pass_test.MultiPassTest = class MultiPassTest extends core.Object {
+ static testMain() {
+ let a = new multi_pass_test.B(5);
+ expect$.Expect.equals(5, a.value);
+ }
+ };
+ dart.setSignature(multi_pass_test.MultiPassTest, {
+ statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
+ names: ['testMain']
+ });
+ multi_pass_test.main = function() {
+ multi_pass_test.MultiPassTest.testMain();
+ };
+ dart.fn(multi_pass_test.main, VoidTodynamic());
+ multi_pass_test.A = class A extends multi_pass_test.Base {
+ new(v) {
+ super.new(v);
+ }
+ };
+ dart.setSignature(multi_pass_test.A, {
+ constructors: () => ({new: dart.definiteFunctionType(multi_pass_test.A, [dart.dynamic])})
+ });
+ multi_pass_test.B = class B extends multi_pass_test.A {
+ new(v) {
+ super.new(v);
+ }
+ };
+ dart.setSignature(multi_pass_test.B, {
+ constructors: () => ({new: dart.definiteFunctionType(multi_pass_test.B, [dart.dynamic])})
+ });
+ // Exports:
+ exports.multi_pass_test = multi_pass_test;
+});

Powered by Google App Engine
This is Rietveld 408576698