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

Unified Diff: test/codegen/expect/language/partial_min_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
« no previous file with comments | « test/codegen/expect/language/part_test.js ('k') | test/codegen/expect/language/patch_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/language/partial_min_test.js
diff --git a/test/codegen/expect/language/partial_min_test.js b/test/codegen/expect/language/partial_min_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..13f3251963ef03c924ce4d6fdae41e7753fc7e1c
--- /dev/null
+++ b/test/codegen/expect/language/partial_min_test.js
@@ -0,0 +1,31 @@
+dart_library.library('language/partial_min_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__partial_min_test(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 partial_min_test = Object.create(null);
+ let numAndnumTonum = () => (numAndnumTonum = dart.constFn(dart.definiteFunctionType(core.num, [core.num, core.num])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ partial_min_test.foo = function(a, b) {
+ if (dart.notNull(a) > dart.notNull(b)) return b;
+ if (typeof b == 'number') {
+ if (true) {
+ if (true) {
+ return (dart.notNull(a) + dart.notNull(b)) * dart.notNull(a) * dart.notNull(b);
+ }
+ }
+ if (a == 0 && b == 0 || b != b) return b;
+ }
+ };
+ dart.fn(partial_min_test.foo, numAndnumTonum());
+ partial_min_test.main = function() {
+ expect$.Expect.equals(1, partial_min_test.foo(2, 1));
+ };
+ dart.fn(partial_min_test.main, VoidTodynamic());
+ // Exports:
+ exports.partial_min_test = partial_min_test;
+});
« no previous file with comments | « test/codegen/expect/language/part_test.js ('k') | test/codegen/expect/language/patch_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698