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

Unified Diff: test/codegen_expected/language/inline_super_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/inline_super_test.js
diff --git a/test/codegen_expected/language/inline_super_test.js b/test/codegen_expected/language/inline_super_test.js
index 0c6a6854ae66ffc3bb4d224622bd6d0fb857cb23..41f75e43411c0e91d277088ad4e44850f9cc1d40 100644
--- a/test/codegen_expected/language/inline_super_test.js
+++ b/test/codegen_expected/language/inline_super_test.js
@@ -1 +1,43 @@
-//FAILED TO COMPILE
+dart_library.library('language/inline_super_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__inline_super_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 inline_super_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ inline_super_test.Percept = class Percept extends core.Object {};
+ inline_super_test.Actor = class Actor extends core.Object {
+ new(percept) {
+ this.percept = percept;
+ }
+ };
+ dart.setSignature(inline_super_test.Actor, {
+ constructors: () => ({new: dart.definiteFunctionType(inline_super_test.Actor, [dart.dynamic])})
+ });
+ inline_super_test.LivingActor = class LivingActor extends inline_super_test.Actor {
+ new() {
+ super.new(new inline_super_test.Percept());
+ }
+ };
+ dart.setSignature(inline_super_test.LivingActor, {
+ constructors: () => ({new: dart.definiteFunctionType(inline_super_test.LivingActor, [])})
+ });
+ inline_super_test.main = function() {
+ expect$.Expect.isTrue(inline_super_test.Percept.is(new inline_super_test.Player().percept));
+ };
+ dart.fn(inline_super_test.main, VoidTodynamic());
+ inline_super_test.Player = class Player extends inline_super_test.LivingActor {
+ new() {
+ super.new();
+ }
+ };
+ dart.setSignature(inline_super_test.Player, {
+ constructors: () => ({new: dart.definiteFunctionType(inline_super_test.Player, [])})
+ });
+ // Exports:
+ exports.inline_super_test = inline_super_test;
+});

Powered by Google App Engine
This is Rietveld 408576698