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

Unified Diff: test/codegen/expect/language/setter_no_getter_call_test_none_multi.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/setter_no_getter_call_test_none_multi.js
diff --git a/test/codegen/expect/language/setter_no_getter_call_test_none_multi.js b/test/codegen/expect/language/setter_no_getter_call_test_none_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..2df4be4a2c30514ac7ce0521c98a83e064145f28
--- /dev/null
+++ b/test/codegen/expect/language/setter_no_getter_call_test_none_multi.js
@@ -0,0 +1,35 @@
+dart_library.library('language/setter_no_getter_call_test_none_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__setter_no_getter_call_test_none_multi(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 setter_no_getter_call_test_none_multi = Object.create(null);
+ let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ setter_no_getter_call_test_none_multi.topLevelClosure = null;
+ dart.copyProperties(setter_no_getter_call_test_none_multi, {
+ get topLevel() {
+ return setter_no_getter_call_test_none_multi.topLevelClosure;
+ },
+ set topLevel(value) {}
+ });
+ setter_no_getter_call_test_none_multi.initialize = function() {
+ core.print("initializing");
+ setter_no_getter_call_test_none_multi.topLevelClosure = dart.fn(x => dart.dsend(x, '*', 2), dynamicTodynamic());
+ };
+ dart.fn(setter_no_getter_call_test_none_multi.initialize, VoidTodynamic());
+ setter_no_getter_call_test_none_multi.main = function() {
+ setter_no_getter_call_test_none_multi.initialize();
+ let x = dart.dcall(setter_no_getter_call_test_none_multi.topLevelClosure, 2);
+ expect$.Expect.equals(4, x);
+ x = dart.dcall(setter_no_getter_call_test_none_multi.topLevel, 3);
+ expect$.Expect.equals(6, x);
+ };
+ dart.fn(setter_no_getter_call_test_none_multi.main, VoidTodynamic());
+ // Exports:
+ exports.setter_no_getter_call_test_none_multi = setter_no_getter_call_test_none_multi;
+});

Powered by Google App Engine
This is Rietveld 408576698