Index: test/codegen_expected/corelib/list_replace_range_test.js |
diff --git a/test/codegen_expected/corelib/list_replace_range_test.js b/test/codegen_expected/corelib/list_replace_range_test.js |
index 676008358c7afd3b2e446042686ce3646597a83c..2670ffe774bc225419fdd7d78553b84de2884b97 100644 |
--- a/test/codegen_expected/corelib/list_replace_range_test.js |
+++ b/test/codegen_expected/corelib/list_replace_range_test.js |
@@ -11,6 +11,7 @@ dart_library.library('corelib/list_replace_range_test', null, /* Imports */[ |
const expect$ = expect.expect; |
const list_replace_range_test = Object.create(null); |
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))(); |
+ let IterableOfint = () => (IterableOfint = dart.constFn(core.Iterable$(core.int)))(); |
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.functionType(dart.void, [])))(); |
let ListAndintAndint__Todynamic = () => (ListAndintAndint__Todynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.List, core.int, core.int, core.Iterable])))(); |
let intToint = () => (intToint = dart.constFn(dart.definiteFunctionType(core.int, [core.int])))(); |
@@ -112,12 +113,12 @@ dart_library.library('corelib/list_replace_range_test', null, /* Imports */[ |
list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 0, 3, const$3 || (const$3 = dart.constList([4, 5], core.int))); |
list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 2, 3, const$4 || (const$4 = dart.constList([4], core.int))); |
list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 0, 3, const$5 || (const$5 = dart.constList([], dart.dynamic))); |
- list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 0, 1, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 1, 1, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 2, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 3, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 0, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 2, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 0, 1, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 1, 1, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 2, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 3, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 0, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 2, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, 1, JSArrayOfint().of([4, 5])); |
list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 1, 1, JSArrayOfint().of([4, 5])); |
list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, 3, JSArrayOfint().of([4, 5])); |
@@ -139,12 +140,12 @@ dart_library.library('corelib/list_replace_range_test', null, /* Imports */[ |
list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, 3, const$10 || (const$10 = dart.constList([4, 5], core.int))); |
list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, 3, const$11 || (const$11 = dart.constList([4], core.int))); |
list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, 3, const$12 || (const$12 = dart.constList([], dart.dynamic))); |
- list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, 1, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 1, 1, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 3, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
- list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, 3, core.Iterable.generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, 1, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 1, 1, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 3, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 0, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
+ list_replace_range_test.test(new list_replace_range_test.MyList(JSArrayOfint().of([1, 2, 3])), 2, 3, IterableOfint().generate(2, dart.fn(x => dart.notNull(x) + 4, intToint()))); |
list_replace_range_test.expectRE(dart.fn(() => list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), -1, 0, []), VoidTodynamic())); |
list_replace_range_test.expectRE(dart.fn(() => list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 2, 1, []), VoidTodynamic())); |
list_replace_range_test.expectRE(dart.fn(() => list_replace_range_test.test(JSArrayOfint().of([1, 2, 3]), 0, -1, []), VoidTodynamic())); |