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

Unified Diff: test/codegen/expect/language/async_backwards_compatibility_1_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/async_backwards_compatibility_1_test.js
diff --git a/test/codegen/expect/language/async_backwards_compatibility_1_test.js b/test/codegen/expect/language/async_backwards_compatibility_1_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..51b5519d86066ed9a915724ce1e2e32ac9edac6a
--- /dev/null
+++ b/test/codegen/expect/language/async_backwards_compatibility_1_test.js
@@ -0,0 +1,31 @@
+dart_library.library('language/async_backwards_compatibility_1_test', null, /* Imports */[
+ 'dart_sdk'
+], function load__async_backwards_compatibility_1_test(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const async_backwards_compatibility_1_test = Object.create(null);
+ const async_helper_lib = Object.create(null);
+ let VoidToasync = () => (VoidToasync = dart.constFn(dart.definiteFunctionType(async_helper_lib.async, [])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ async_backwards_compatibility_1_test.A = class A extends core.Object {
+ get async() {
+ return null;
+ }
+ };
+ async_backwards_compatibility_1_test.topLevel = function() {
+ return null;
+ };
+ dart.lazyFn(async_backwards_compatibility_1_test.topLevel, () => VoidToasync());
+ async_backwards_compatibility_1_test.main = function() {
+ let a = new async_backwards_compatibility_1_test.A();
+ let b = a.async;
+ let c = async_backwards_compatibility_1_test.topLevel();
+ };
+ dart.fn(async_backwards_compatibility_1_test.main, VoidTodynamic());
+ async_helper_lib.async = class async extends core.Object {};
+ // Exports:
+ exports.async_backwards_compatibility_1_test = async_backwards_compatibility_1_test;
+ exports.async_helper_lib = async_helper_lib;
+});

Powered by Google App Engine
This is Rietveld 408576698