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

Side by Side Diff: test/codegen/expect/corelib/set_containsAll_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('corelib/set_containsAll_test', null, /* Imports */[
2 'dart_sdk',
3 'expect'
4 ], function load__set_containsAll_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 set_containsAll_test = Object.create(null);
12 let SetOfB = () => (SetOfB = dart.constFn(core.Set$(set_containsAll_test.B)))( );
13 let JSArrayOfB = () => (JSArrayOfB = dart.constFn(_interceptors.JSArray$(set_c ontainsAll_test.B)))();
14 let JSArrayOfSetOfB = () => (JSArrayOfSetOfB = dart.constFn(_interceptors.JSAr ray$(SetOfB())))();
15 let JSArrayOfA = () => (JSArrayOfA = dart.constFn(_interceptors.JSArray$(set_c ontainsAll_test.A)))();
16 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
17 set_containsAll_test.A = class A extends core.Object {
18 new() {
19 }
20 };
21 dart.setSignature(set_containsAll_test.A, {
22 constructors: () => ({new: dart.definiteFunctionType(set_containsAll_test.A, [])})
23 });
24 set_containsAll_test.B = class B extends set_containsAll_test.A {
25 new() {
26 super.new();
27 }
28 };
29 dart.setSignature(set_containsAll_test.B, {
30 constructors: () => ({new: dart.definiteFunctionType(set_containsAll_test.B, [])})
31 });
32 let const$;
33 let const$0;
34 set_containsAll_test.main = function() {
35 let set1 = SetOfB().new();
36 set1.add(const$ || (const$ = dart.const(new set_containsAll_test.B())));
37 let set2 = SetOfB().new();
38 let list = JSArrayOfB().of([const$0 || (const$0 = dart.const(new set_contain sAll_test.B()))]);
39 let set3 = list[dartx.toSet]();
40 let sets = JSArrayOfSetOfB().of([set1, set2, set3]);
41 for (let setToTest of sets) {
42 expect$.Expect.isFalse(setToTest.containsAll(JSArrayOfA().of([new set_cont ainsAll_test.A()])));
43 }
44 };
45 dart.fn(set_containsAll_test.main, VoidTodynamic());
46 // Exports:
47 exports.set_containsAll_test = set_containsAll_test;
48 });
OLDNEW
« no previous file with comments | « test/codegen/expect/corelib/safe_to_string_test.js ('k') | test/codegen/expect/corelib/set_contains_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698