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

Side by Side Diff: test/codegen/expect/language/rewrite_nested_if1_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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/rewrite_nested_if1_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__rewrite_nested_if1_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const rewrite_nested_if1_test = Object.create(null);
11 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
12 let dynamicAnddynamicAnddynamicTodynamic = () => (dynamicAnddynamicAnddynamicT odynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, d art.dynamic, dart.dynamic])))();
13 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
14 rewrite_nested_if1_test.global = null;
15 rewrite_nested_if1_test.setGlobal = function(v) {
16 rewrite_nested_if1_test.global = v;
17 };
18 dart.fn(rewrite_nested_if1_test.setGlobal, dynamicTodynamic());
19 rewrite_nested_if1_test.check_true_true = function(x, y, v) {
20 if (dart.test(x)) {
21 if (dart.test(y)) {
22 rewrite_nested_if1_test.setGlobal(v);
23 }
24 }
25 };
26 dart.fn(rewrite_nested_if1_test.check_true_true, dynamicAnddynamicAnddynamicTo dynamic());
27 rewrite_nested_if1_test.check_false_true = function(x, y, v) {
28 if (dart.test(x)) {
29 } else {
30 if (dart.test(y)) {
31 rewrite_nested_if1_test.setGlobal(v);
32 }
33 }
34 };
35 dart.fn(rewrite_nested_if1_test.check_false_true, dynamicAnddynamicAnddynamicT odynamic());
36 rewrite_nested_if1_test.check_true_false = function(x, y, v) {
37 if (dart.test(x)) {
38 if (dart.test(y)) {
39 } else {
40 rewrite_nested_if1_test.setGlobal(v);
41 }
42 }
43 };
44 dart.fn(rewrite_nested_if1_test.check_true_false, dynamicAnddynamicAnddynamicT odynamic());
45 rewrite_nested_if1_test.check_false_false = function(x, y, v) {
46 if (dart.test(x)) {
47 } else {
48 if (dart.test(y)) {
49 } else {
50 rewrite_nested_if1_test.setGlobal(v);
51 }
52 }
53 };
54 dart.fn(rewrite_nested_if1_test.check_false_false, dynamicAnddynamicAnddynamic Todynamic());
55 rewrite_nested_if1_test.main = function() {
56 rewrite_nested_if1_test.check_true_true(true, true, 4);
57 rewrite_nested_if1_test.check_true_true(false, false, 1);
58 rewrite_nested_if1_test.check_true_true(false, true, 2);
59 rewrite_nested_if1_test.check_true_true(true, false, 3);
60 expect$.Expect.equals(4, rewrite_nested_if1_test.global);
61 rewrite_nested_if1_test.check_true_false(false, false, 1);
62 rewrite_nested_if1_test.check_true_false(false, true, 2);
63 rewrite_nested_if1_test.check_true_false(true, false, 3);
64 rewrite_nested_if1_test.check_true_false(true, true, 4);
65 expect$.Expect.equals(3, rewrite_nested_if1_test.global);
66 rewrite_nested_if1_test.check_false_true(false, false, 1);
67 rewrite_nested_if1_test.check_false_true(false, true, 2);
68 rewrite_nested_if1_test.check_false_true(true, false, 3);
69 rewrite_nested_if1_test.check_false_true(true, true, 4);
70 expect$.Expect.equals(2, rewrite_nested_if1_test.global);
71 rewrite_nested_if1_test.check_false_false(false, false, 1);
72 rewrite_nested_if1_test.check_false_false(false, true, 2);
73 rewrite_nested_if1_test.check_false_false(true, false, 3);
74 rewrite_nested_if1_test.check_false_false(true, true, 4);
75 expect$.Expect.equals(1, rewrite_nested_if1_test.global);
76 };
77 dart.fn(rewrite_nested_if1_test.main, VoidTodynamic());
78 // Exports:
79 exports.rewrite_nested_if1_test = rewrite_nested_if1_test;
80 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/rewrite_logical_test.js ('k') | test/codegen/expect/language/rewrite_nested_if2_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698