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

Unified Diff: test/codegen/expect/language/is_malformed_type_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/is_malformed_type_test_none_multi.js
diff --git a/test/codegen/expect/language/is_malformed_type_test_none_multi.js b/test/codegen/expect/language/is_malformed_type_test_none_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..c75184d6c238681aac81cd1232ebcc271d8770b3
--- /dev/null
+++ b/test/codegen/expect/language/is_malformed_type_test_none_multi.js
@@ -0,0 +1,86 @@
+dart_library.library('language/is_malformed_type_test_none_multi', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__is_malformed_type_test_none_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 is_malformed_type_test_none_multi = Object.create(null);
+ let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ is_malformed_type_test_none_multi.evalCount = 0;
+ is_malformed_type_test_none_multi.testEval = function(x) {
+ is_malformed_type_test_none_multi.evalCount = dart.notNull(is_malformed_type_test_none_multi.evalCount) + 1;
+ return x;
+ };
+ dart.fn(is_malformed_type_test_none_multi.testEval, dynamicTodynamic());
+ is_malformed_type_test_none_multi.test99 = function(e) {
+ try {
+ expect$.Expect.fail("unreachable");
+ } catch (exc) {
+ expect$.Expect.isTrue(core.TypeError.is(exc));
+ }
+
+ };
+ dart.fn(is_malformed_type_test_none_multi.test99, dynamicTodynamic());
+ is_malformed_type_test_none_multi.test98 = function(e) {
+ try {
+ expect$.Expect.fail("unreachable");
+ } catch (exc) {
+ expect$.Expect.isTrue(core.TypeError.is(exc));
+ }
+
+ };
+ dart.fn(is_malformed_type_test_none_multi.test98, dynamicTodynamic());
+ is_malformed_type_test_none_multi.test97 = function(e) {
+ try {
+ is_malformed_type_test_none_multi.evalCount = 0;
+ expect$.Expect.fail("unreachable");
+ } catch (exc) {
+ expect$.Expect.isTrue(core.TypeError.is(exc));
+ expect$.Expect.equals(0, is_malformed_type_test_none_multi.evalCount);
+ }
+
+ };
+ dart.fn(is_malformed_type_test_none_multi.test97, dynamicTodynamic());
+ is_malformed_type_test_none_multi.test96 = function(e) {
+ try {
+ is_malformed_type_test_none_multi.evalCount = 0;
+ expect$.Expect.fail("unreachable");
+ } catch (exc) {
+ expect$.Expect.isTrue(core.TypeError.is(exc));
+ expect$.Expect.equals(0, is_malformed_type_test_none_multi.evalCount);
+ }
+
+ };
+ dart.fn(is_malformed_type_test_none_multi.test96, dynamicTodynamic());
+ is_malformed_type_test_none_multi.test95 = function(e) {
+ try {
+ is_malformed_type_test_none_multi.evalCount = 0;
+ expect$.Expect.fail("unreachable");
+ } catch (exc) {
+ expect$.Expect.isTrue(core.TypeError.is(exc));
+ expect$.Expect.equals(1, is_malformed_type_test_none_multi.evalCount);
+ }
+
+ };
+ dart.fn(is_malformed_type_test_none_multi.test95, dynamicTodynamic());
+ is_malformed_type_test_none_multi.test94 = function(e) {
+ try {
+ is_malformed_type_test_none_multi.evalCount = 0;
+ expect$.Expect.fail("unreachable");
+ } catch (exc) {
+ expect$.Expect.isTrue(core.TypeError.is(exc));
+ expect$.Expect.equals(1, is_malformed_type_test_none_multi.evalCount);
+ }
+
+ };
+ dart.fn(is_malformed_type_test_none_multi.test94, dynamicTodynamic());
+ is_malformed_type_test_none_multi.main = function() {
+ };
+ dart.fn(is_malformed_type_test_none_multi.main, VoidTodynamic());
+ // Exports:
+ exports.is_malformed_type_test_none_multi = is_malformed_type_test_none_multi;
+});
« no previous file with comments | « test/codegen/expect/language/is_malformed_type_test_99_multi.js ('k') | test/codegen/expect/language/is_nan_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698