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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('language/is_operator_clash_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__is_operator_clash_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const _interceptors = dart_sdk._interceptors;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const expect$ = expect.expect;
11 const is_operator_clash_test = Object.create(null);
12 let JSArrayOfA = () => (JSArrayOfA = dart.constFn(_interceptors.JSArray$(is_op erator_clash_test.A)))();
13 let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.i nt, [core.int])))();
14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
15 is_operator_clash_test.A = class A extends core.Object {};
16 is_operator_clash_test.$B = class $B extends is_operator_clash_test.A {};
17 is_operator_clash_test.C = class C extends core.Object {
18 new() {
19 this.isB = false;
20 this.$isB = false;
21 this.is$B = false;
22 this.is$$B = false;
23 this.$is$B = false;
24 this.isA = false;
25 this.$isA = false;
26 this.is$A = false;
27 this.is$$A = false;
28 this.$is$A = false;
29 }
30 };
31 is_operator_clash_test.C[dart.implements] = () => [is_operator_clash_test.$B];
32 is_operator_clash_test.inscrutable = function(x) {
33 return x == 0 ? 0 : (dart.notNull(x) | dart.notNull(is_operator_clash_test.i nscrutable((dart.notNull(x) & dart.notNull(x) - 1) >>> 0))) >>> 0;
34 };
35 dart.fn(is_operator_clash_test.inscrutable, intToint());
36 is_operator_clash_test.main = function() {
37 let things = JSArrayOfA().of([new is_operator_clash_test.A(), new is_operato r_clash_test.$B(), new is_operator_clash_test.C()]);
38 let a = things[dartx.get](is_operator_clash_test.inscrutable(0));
39 expect$.Expect.isTrue(is_operator_clash_test.A.is(a));
40 expect$.Expect.isFalse(is_operator_clash_test.$B.is(a));
41 expect$.Expect.isFalse(is_operator_clash_test.C.is(a));
42 let b = things[dartx.get](is_operator_clash_test.inscrutable(1));
43 expect$.Expect.isTrue(is_operator_clash_test.A.is(b));
44 expect$.Expect.isTrue(is_operator_clash_test.$B.is(b));
45 expect$.Expect.isFalse(is_operator_clash_test.C.is(b));
46 let c = things[dartx.get](is_operator_clash_test.inscrutable(2));
47 expect$.Expect.isTrue(is_operator_clash_test.A.is(c));
48 expect$.Expect.isTrue(is_operator_clash_test.$B.is(c));
49 expect$.Expect.isTrue(is_operator_clash_test.C.is(c));
50 };
51 dart.fn(is_operator_clash_test.main, VoidTodynamic());
52 // Exports:
53 exports.is_operator_clash_test = is_operator_clash_test;
54 });
OLDNEW
« 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