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

Unified Diff: test/codegen/expect/language/issue4295001_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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/expect/language/issue4295001_test.js
diff --git a/test/codegen/expect/language/issue4295001_test.js b/test/codegen/expect/language/issue4295001_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..eb94c898a66c28e197a29dd821eb4eddcac8ca7b
--- /dev/null
+++ b/test/codegen/expect/language/issue4295001_test.js
@@ -0,0 +1,31 @@
+dart_library.library('language/issue4295001_test', null, /* Imports */[
+ 'dart_sdk'
+], function load__issue4295001_test(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const issue4295001_test = Object.create(null);
+ let VoidToString = () => (VoidToString = dart.constFn(dart.definiteFunctionType(core.String, [])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ issue4295001_test.Issue4295001Test = class Issue4295001Test extends core.Object {
+ new(s) {
+ this.foo = s;
+ let f = dart.fn(() => s, VoidToString());
+ }
+ static testMain() {
+ let d = new issue4295001_test.Issue4295001Test("Hello");
+ }
+ };
+ dart.setSignature(issue4295001_test.Issue4295001Test, {
+ constructors: () => ({new: dart.definiteFunctionType(issue4295001_test.Issue4295001Test, [core.String])}),
+ statics: () => ({testMain: dart.definiteFunctionType(dart.void, [])}),
+ names: ['testMain']
+ });
+ issue4295001_test.main = function() {
+ issue4295001_test.Issue4295001Test.testMain();
+ };
+ dart.fn(issue4295001_test.main, VoidTodynamic());
+ // Exports:
+ exports.issue4295001_test = issue4295001_test;
+});
« no previous file with comments | « test/codegen/expect/language/issue4157508_test.js ('k') | test/codegen/expect/language/issue4515170_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698