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

Side by Side Diff: test/codegen_expected/corelib/list_set_all_test.js

Issue 2102053003: Remove DDC custom error list now that strong mode analyzer handles it (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: another fix Created 4 years, 4 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
1 dart_library.library('corelib/list_set_all_test', null, /* Imports */[ 1 dart_library.library('corelib/list_set_all_test', null, /* Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'expect' 3 'expect'
4 ], function load__list_set_all_test(exports, dart_sdk, expect) { 4 ], function load__list_set_all_test(exports, dart_sdk, expect) {
5 'use strict'; 5 'use strict';
6 const core = dart_sdk.core; 6 const core = dart_sdk.core;
7 const collection = dart_sdk.collection; 7 const collection = dart_sdk.collection;
8 const _interceptors = dart_sdk._interceptors; 8 const _interceptors = dart_sdk._interceptors;
9 const dart = dart_sdk.dart; 9 const dart = dart_sdk.dart;
10 const dartx = dart_sdk.dartx; 10 const dartx = dart_sdk.dartx;
11 const expect$ = expect.expect; 11 const expect$ = expect.expect;
12 const list_set_all_test = Object.create(null); 12 const list_set_all_test = Object.create(null);
13 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c ore.int)))(); 13 let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(c ore.int)))();
14 let IterableOfint = () => (IterableOfint = dart.constFn(core.Iterable$(core.in t)))();
14 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.functionType(dart.void, [])))(); 15 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.functionType(dart.void, [])))();
15 let ListAndintAndIterableTodynamic = () => (ListAndintAndIterableTodynamic = d art.constFn(dart.definiteFunctionType(dart.dynamic, [core.List, core.int, core.I terable])))(); 16 let ListAndintAndIterableTodynamic = () => (ListAndintAndIterableTodynamic = d art.constFn(dart.definiteFunctionType(dart.dynamic, [core.List, core.int, core.I terable])))();
16 let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.i nt, [core.int])))(); 17 let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.i nt, [core.int])))();
17 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))(); 18 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
18 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 19 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
19 let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionT ype(core.bool, [dart.dynamic])))(); 20 let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionT ype(core.bool, [dart.dynamic])))();
20 let FunctionTovoid = () => (FunctionTovoid = dart.constFn(dart.definiteFunctio nType(dart.void, [core.Function])))(); 21 let FunctionTovoid = () => (FunctionTovoid = dart.constFn(dart.definiteFunctio nType(dart.void, [core.Function])))();
21 list_set_all_test.test = function(list, index, iterable) { 22 list_set_all_test.test = function(list, index, iterable) {
22 let copy = list[dartx.toList](); 23 let copy = list[dartx.toList]();
23 list[dartx.setAll](index, iterable); 24 list[dartx.setAll](index, iterable);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, JSArrayOfint().of([4 ])); 88 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, JSArrayOfint().of([4 ]));
88 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, []); 89 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, []);
89 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 0, JSArrayOfint().of([4 , 5])[dartx.map](core.int)(dart.fn(x => x, intToint()))); 90 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 0, JSArrayOfint().of([4 , 5])[dartx.map](core.int)(dart.fn(x => x, intToint())));
90 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 1, JSArrayOfint().of([4 , 5])[dartx.map](core.int)(dart.fn(x => x, intToint()))); 91 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 1, JSArrayOfint().of([4 , 5])[dartx.map](core.int)(dart.fn(x => x, intToint())));
91 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, JSArrayOfint().of([4 ])[dartx.map](core.int)(dart.fn(x => x, intToint()))); 92 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, JSArrayOfint().of([4 ])[dartx.map](core.int)(dart.fn(x => x, intToint())));
92 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, [][dartx.map](dart.d ynamic)(dart.fn(x => x, dynamicTodynamic()))); 93 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, [][dartx.map](dart.d ynamic)(dart.fn(x => x, dynamicTodynamic())));
93 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 0, const$ || (const$ = dart.constList([4, 5], core.int))); 94 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 0, const$ || (const$ = dart.constList([4, 5], core.int)));
94 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 1, const$0 || (const$0 = dart.constList([4, 5], core.int))); 95 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 1, const$0 || (const$0 = dart.constList([4, 5], core.int)));
95 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, const$1 || (const$1 = dart.constList([4], core.int))); 96 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, const$1 || (const$1 = dart.constList([4], core.int)));
96 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, const$2 || (const$2 = dart.constList([], dart.dynamic))); 97 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, const$2 || (const$2 = dart.constList([], dart.dynamic)));
97 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 0, core.Iterable.genera te(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); 98 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 0, IterableOfint().gene rate(2, dart.fn(x => dart.notNull(x) + 4, intToint())));
98 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 1, core.Iterable.genera te(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); 99 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 1, IterableOfint().gene rate(2, dart.fn(x => dart.notNull(x) + 4, intToint())));
99 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, core.Iterable.genera te(1, dart.fn(x => dart.notNull(x) + 4, intToint()))); 100 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 2, IterableOfint().gene rate(1, dart.fn(x => dart.notNull(x) + 4, intToint())));
100 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, core.Iterable.genera te(0, dart.fn(x => dart.notNull(x) + 4, intToint()))); 101 list_set_all_test.test(JSArrayOfint().of([1, 2, 3]), 3, IterableOfint().gene rate(0, dart.fn(x => dart.notNull(x) + 4, intToint())));
101 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, JSArrayOfint().of([4, 5])); 102 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, JSArrayOfint().of([4, 5]));
102 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, JSArrayOfint().of([4, 5])); 103 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, JSArrayOfint().of([4, 5]));
103 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, JSArrayOfint().of([4])); 104 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, JSArrayOfint().of([4]));
104 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, []); 105 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, []);
105 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intT oint()))); 106 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intT oint())));
106 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intT oint()))); 107 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intT oint())));
107 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, JSArrayOfint().of([4])[dartx.map](core.int)(dart.fn(x => x, intToin t()))); 108 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, JSArrayOfint().of([4])[dartx.map](core.int)(dart.fn(x => x, intToin t())));
108 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, [][dartx.map](dart.dynamic)(dart.fn(x => x, dynamicTodynamic()))); 109 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, [][dartx.map](dart.dynamic)(dart.fn(x => x, dynamicTodynamic())));
109 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, const$3 || (const$3 = dart.constList([4, 5], core.int))); 110 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, const$3 || (const$3 = dart.constList([4, 5], core.int)));
110 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, const$4 || (const$4 = dart.constList([4, 5], core.int))); 111 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, const$4 || (const$4 = dart.constList([4, 5], core.int)));
111 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, const$5 || (const$5 = dart.constList([4], core.int))); 112 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, const$5 || (const$5 = dart.constList([4], core.int)));
112 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, const$6 || (const$6 = dart.constList([], dart.dynamic))); 113 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, const$6 || (const$6 = dart.constList([], dart.dynamic)));
113 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToin t()))); 114 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 0, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intTo int())));
114 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToin t()))); 115 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 1, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intTo int())));
115 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, core.Iterable.generate(1, dart.fn(x => dart.notNull(x) + 4, intToin t()))); 116 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 2, IterableOfint().generate(1, dart.fn(x => dart.notNull(x) + 4, intTo int())));
116 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, core.Iterable.generate(0, dart.fn(x => dart.notNull(x) + 4, intToin t()))); 117 list_set_all_test.test(JSArrayOfint().of([1, 2, 3])[dartx.toList]({growable: false}), 3, IterableOfint().generate(0, dart.fn(x => dart.notNull(x) + 4, intTo int())));
117 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, JSArrayOfint().of([4, 5])); 118 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, JSArrayOfint().of([4, 5]));
118 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 1, JSArrayOfint().of([4, 5])); 119 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 1, JSArrayOfint().of([4, 5]));
119 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, JSArrayOfint().of([4])); 120 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, JSArrayOfint().of([4]));
120 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 3, []); 121 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 3, []);
121 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intToin t()))); 122 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intToin t())));
122 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 1, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intToin t()))); 123 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 1, JSArrayOfint().of([4, 5])[dartx.map](core.int)(dart.fn(x => x, intToin t())));
123 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, JSArrayOfint().of([4])[dartx.map](core.int)(dart.fn(x => x, intToint() ))); 124 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, JSArrayOfint().of([4])[dartx.map](core.int)(dart.fn(x => x, intToint() )));
124 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 3, [][dartx.map](dart.dynamic)(dart.fn(x => x, dynamicTodynamic()))); 125 list_set_all_test.test(new list_set_all_test.MyList(JSArrayOfint().of([1, 2, 3])), 3, [][dartx.map](dart.dynamic)(dart.fn(x => x, dynamicTodynamic())));
125 list_set_all_test.expectRE(dart.fn(() => list_set_all_test.test(JSArrayOfint ().of([1, 2, 3]), -1, JSArrayOfint().of([4, 5])), VoidTodynamic())); 126 list_set_all_test.expectRE(dart.fn(() => list_set_all_test.test(JSArrayOfint ().of([1, 2, 3]), -1, JSArrayOfint().of([4, 5])), VoidTodynamic()));
126 list_set_all_test.expectRE(dart.fn(() => list_set_all_test.test(JSArrayOfint ().of([1, 2, 3])[dartx.toList]({growable: false}), -1, JSArrayOfint().of([4, 5]) ), VoidTodynamic())); 127 list_set_all_test.expectRE(dart.fn(() => list_set_all_test.test(JSArrayOfint ().of([1, 2, 3])[dartx.toList]({growable: false}), -1, JSArrayOfint().of([4, 5]) ), VoidTodynamic()));
(...skipping 10 matching lines...) Expand all
137 expect$.Expect.throws(VoidTovoid()._check(f), dart.fn(e => core.RangeError.i s(e), dynamicTobool())); 138 expect$.Expect.throws(VoidTovoid()._check(f), dart.fn(e => core.RangeError.i s(e), dynamicTobool()));
138 }; 139 };
139 dart.fn(list_set_all_test.expectRE, FunctionTovoid()); 140 dart.fn(list_set_all_test.expectRE, FunctionTovoid());
140 list_set_all_test.expectUE = function(f) { 141 list_set_all_test.expectUE = function(f) {
141 expect$.Expect.throws(VoidTovoid()._check(f), dart.fn(e => core.UnsupportedE rror.is(e), dynamicTobool())); 142 expect$.Expect.throws(VoidTovoid()._check(f), dart.fn(e => core.UnsupportedE rror.is(e), dynamicTobool()));
142 }; 143 };
143 dart.fn(list_set_all_test.expectUE, FunctionTovoid()); 144 dart.fn(list_set_all_test.expectUE, FunctionTovoid());
144 // Exports: 145 // Exports:
145 exports.list_set_all_test = list_set_all_test; 146 exports.list_set_all_test = list_set_all_test;
146 }); 147 });
OLDNEW
« no previous file with comments | « test/codegen_expected/corelib/list_replace_range_test.js ('k') | test/codegen_expected/corelib/map_from_iterables_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698