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

Unified Diff: test/codegen_expected/corelib/list_replace_range_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, 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
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()));
« no previous file with comments | « test/codegen_expected/corelib/list_removeat_test.js ('k') | test/codegen_expected/corelib/list_set_all_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698