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

Unified Diff: test/codegen/expect/language/is_operator_clash_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/is_object_test.js ('k') | test/codegen/expect/language/is_operator_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/language/is_operator_clash_test.js
diff --git a/test/codegen/expect/language/is_operator_clash_test.js b/test/codegen/expect/language/is_operator_clash_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6f1784866e25e8ff23d6dc0364b804d42c884e76
--- /dev/null
+++ b/test/codegen/expect/language/is_operator_clash_test.js
@@ -0,0 +1,54 @@
+dart_library.library('language/is_operator_clash_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__is_operator_clash_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const _interceptors = dart_sdk._interceptors;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const is_operator_clash_test = Object.create(null);
+ let JSArrayOfA = () => (JSArrayOfA = dart.constFn(_interceptors.JSArray$(is_operator_clash_test.A)))();
+ let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.int, [core.int])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ is_operator_clash_test.A = class A extends core.Object {};
+ is_operator_clash_test.$B = class $B extends is_operator_clash_test.A {};
+ is_operator_clash_test.C = class C extends core.Object {
+ new() {
+ this.isB = false;
+ this.$isB = false;
+ this.is$B = false;
+ this.is$$B = false;
+ this.$is$B = false;
+ this.isA = false;
+ this.$isA = false;
+ this.is$A = false;
+ this.is$$A = false;
+ this.$is$A = false;
+ }
+ };
+ is_operator_clash_test.C[dart.implements] = () => [is_operator_clash_test.$B];
+ is_operator_clash_test.inscrutable = function(x) {
+ return x == 0 ? 0 : (dart.notNull(x) | dart.notNull(is_operator_clash_test.inscrutable((dart.notNull(x) & dart.notNull(x) - 1) >>> 0))) >>> 0;
+ };
+ dart.fn(is_operator_clash_test.inscrutable, intToint());
+ is_operator_clash_test.main = function() {
+ let things = JSArrayOfA().of([new is_operator_clash_test.A(), new is_operator_clash_test.$B(), new is_operator_clash_test.C()]);
+ let a = things[dartx.get](is_operator_clash_test.inscrutable(0));
+ expect$.Expect.isTrue(is_operator_clash_test.A.is(a));
+ expect$.Expect.isFalse(is_operator_clash_test.$B.is(a));
+ expect$.Expect.isFalse(is_operator_clash_test.C.is(a));
+ let b = things[dartx.get](is_operator_clash_test.inscrutable(1));
+ expect$.Expect.isTrue(is_operator_clash_test.A.is(b));
+ expect$.Expect.isTrue(is_operator_clash_test.$B.is(b));
+ expect$.Expect.isFalse(is_operator_clash_test.C.is(b));
+ let c = things[dartx.get](is_operator_clash_test.inscrutable(2));
+ expect$.Expect.isTrue(is_operator_clash_test.A.is(c));
+ expect$.Expect.isTrue(is_operator_clash_test.$B.is(c));
+ expect$.Expect.isTrue(is_operator_clash_test.C.is(c));
+ };
+ dart.fn(is_operator_clash_test.main, VoidTodynamic());
+ // Exports:
+ exports.is_operator_clash_test = is_operator_clash_test;
+});
« no previous file with comments | « test/codegen/expect/language/is_object_test.js ('k') | test/codegen/expect/language/is_operator_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698