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

Unified Diff: test/codegen/expect/language/const_switch_test_03_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/const_switch_test_03_multi.js
diff --git a/test/codegen/expect/language/const_switch_test_03_multi.js b/test/codegen/expect/language/const_switch_test_03_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..9e8980c3a6c5ad398c063a567b4ddd1141350200
--- /dev/null
+++ b/test/codegen/expect/language/const_switch_test_03_multi.js
@@ -0,0 +1,57 @@
+dart_library.library('language/const_switch_test_03_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__const_switch_test_03_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 const_switch_test_03_multi = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ let CToString = () => (CToString = dart.constFn(dart.definiteFunctionType(core.String, [const_switch_test_03_multi.C])))();
+ const_switch_test_03_multi.C = class C extends core.Object {
+ new(field) {
+ this.field = field;
+ }
+ };
+ dart.setSignature(const_switch_test_03_multi.C, {
+ constructors: () => ({new: dart.definiteFunctionType(const_switch_test_03_multi.C, [dart.dynamic])})
+ });
+ const_switch_test_03_multi.c1 = dart.const(new const_switch_test_03_multi.C(0.0));
+ const_switch_test_03_multi.c2 = dart.const(new const_switch_test_03_multi.C(0));
+ const_switch_test_03_multi.c3 = dart.const(new const_switch_test_03_multi.C(0.5 + 0.5));
+ const_switch_test_03_multi.c4 = dart.const(new const_switch_test_03_multi.C(1));
+ const_switch_test_03_multi.main = function() {
+ expect$.Expect.equals('1.0', const_switch_test_03_multi.test(const_switch_test_03_multi.c3));
+ };
+ dart.fn(const_switch_test_03_multi.main, VoidTodynamic());
+ let const$;
+ let const$0;
+ let const$1;
+ let const$2;
+ const_switch_test_03_multi.test = function(c) {
+ switch (c) {
+ case const$ || (const$ = dart.const(new const_switch_test_03_multi.C(0.0))):
+ {
+ return '0.0';
+ }
+ case const$0 || (const$0 = dart.const(new const_switch_test_03_multi.C(0))):
+ {
+ return '0';
+ }
+ case const$1 || (const$1 = dart.const(new const_switch_test_03_multi.C(1.0))):
+ {
+ return '1.0';
+ }
+ case const$2 || (const$2 = dart.const(new const_switch_test_03_multi.C(1))):
+ {
+ return '1';
+ }
+ }
+ return null;
+ };
+ dart.fn(const_switch_test_03_multi.test, CToString());
+ // Exports:
+ exports.const_switch_test_03_multi = const_switch_test_03_multi;
+});
« no previous file with comments | « test/codegen/expect/language/const_switch_test_02_multi.js ('k') | test/codegen/expect/language/const_switch_test_04_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698