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

Unified Diff: test/codegen/expect/language/bool_condition_check_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/bool_condition_check_test_none_multi.js
diff --git a/test/codegen/expect/language/bool_condition_check_test_none_multi.js b/test/codegen/expect/language/bool_condition_check_test_none_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..9349d00bb99b979b79822402dca42adbb3bbae22
--- /dev/null
+++ b/test/codegen/expect/language/bool_condition_check_test_none_multi.js
@@ -0,0 +1,34 @@
+dart_library.library('language/bool_condition_check_test_none_multi', null, /* Imports */[
+ 'dart_sdk'
+], function load__bool_condition_check_test_none_multi(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const bool_condition_check_test_none_multi = Object.create(null);
+ let __ToString = () => (__ToString = dart.constFn(dart.definiteFunctionType(core.String, [], {a: core.bool, b: core.bool})))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ bool_condition_check_test_none_multi.check = function(opts) {
+ let a = opts && 'a' in opts ? opts.a : null;
+ let b = opts && 'b' in opts ? opts.b : null;
+ let a_string = dart.test(a) ? 'a' : '';
+ let b_string = dart.test(b) ? 'b' : '';
+ return dart.str`${a_string}${b_string}`;
+ };
+ dart.fn(bool_condition_check_test_none_multi.check, __ToString());
+ bool_condition_check_test_none_multi.Class = class Class extends core.Object {
+ new(opts) {
+ let a = opts && 'a' in opts ? opts.a : false;
+ let b = opts && 'b' in opts ? opts.b : true;
+ this.field = bool_condition_check_test_none_multi.check({a: a, b: b});
+ }
+ };
+ dart.setSignature(bool_condition_check_test_none_multi.Class, {
+ constructors: () => ({new: dart.definiteFunctionType(bool_condition_check_test_none_multi.Class, [], {a: core.bool, b: core.bool})})
+ });
+ bool_condition_check_test_none_multi.main = function() {
+ };
+ dart.fn(bool_condition_check_test_none_multi.main, VoidTodynamic());
+ // Exports:
+ exports.bool_condition_check_test_none_multi = bool_condition_check_test_none_multi;
+});
« no previous file with comments | « test/codegen/expect/language/bool_condition_check_test_01_multi.js ('k') | test/codegen/expect/language/bool_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698