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

Unified Diff: test/codegen/expect/language/compile_time_constant6_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
Index: test/codegen/expect/language/compile_time_constant6_test.js
diff --git a/test/codegen/expect/language/compile_time_constant6_test.js b/test/codegen/expect/language/compile_time_constant6_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..f92069d87af3073a832bcd0535769baa0d4b2dd6
--- /dev/null
+++ b/test/codegen/expect/language/compile_time_constant6_test.js
@@ -0,0 +1,41 @@
+dart_library.library('language/compile_time_constant6_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__compile_time_constant6_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 compile_time_constant6_test = Object.create(null);
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ compile_time_constant6_test.g1 = true;
+ compile_time_constant6_test.g2 = 499;
+ compile_time_constant6_test.g3 = "foo";
+ compile_time_constant6_test.g4 = 3.3;
+ compile_time_constant6_test.g5 = dart.equals(compile_time_constant6_test.g1, compile_time_constant6_test.g2);
+ compile_time_constant6_test.g6 = dart.equals(compile_time_constant6_test.g1, compile_time_constant6_test.g3);
+ compile_time_constant6_test.g7 = dart.equals(compile_time_constant6_test.g1, compile_time_constant6_test.g4);
+ compile_time_constant6_test.g8 = dart.equals(compile_time_constant6_test.g2, compile_time_constant6_test.g3);
+ compile_time_constant6_test.g9 = compile_time_constant6_test.g2 == compile_time_constant6_test.g4;
+ compile_time_constant6_test.g10 = dart.equals(compile_time_constant6_test.g3, compile_time_constant6_test.g4);
+ compile_time_constant6_test.g11 = compile_time_constant6_test.g1 == compile_time_constant6_test.g1;
+ compile_time_constant6_test.g12 = compile_time_constant6_test.g2 == compile_time_constant6_test.g2;
+ compile_time_constant6_test.g13 = compile_time_constant6_test.g3 == compile_time_constant6_test.g3;
+ compile_time_constant6_test.g14 = compile_time_constant6_test.g4 == compile_time_constant6_test.g4;
+ compile_time_constant6_test.main = function() {
+ expect$.Expect.isFalse(compile_time_constant6_test.g5);
+ expect$.Expect.isFalse(compile_time_constant6_test.g6);
+ expect$.Expect.isFalse(compile_time_constant6_test.g7);
+ expect$.Expect.isFalse(compile_time_constant6_test.g8);
+ expect$.Expect.isFalse(compile_time_constant6_test.g9);
+ expect$.Expect.isFalse(compile_time_constant6_test.g10);
+ expect$.Expect.isTrue(compile_time_constant6_test.g11);
+ expect$.Expect.isTrue(compile_time_constant6_test.g12);
+ expect$.Expect.isTrue(compile_time_constant6_test.g13);
+ expect$.Expect.isTrue(compile_time_constant6_test.g14);
+ };
+ dart.fn(compile_time_constant6_test.main, VoidTodynamic());
+ // Exports:
+ exports.compile_time_constant6_test = compile_time_constant6_test;
+});

Powered by Google App Engine
This is Rietveld 408576698