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

Unified Diff: test/codegen_expected/corelib/map_from_iterables_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
« no previous file with comments | « test/codegen_expected/corelib/list_set_all_test.js ('k') | test/codegen_expected/corelib/shuffle_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen_expected/corelib/map_from_iterables_test.js
diff --git a/test/codegen_expected/corelib/map_from_iterables_test.js b/test/codegen_expected/corelib/map_from_iterables_test.js
index cb80fd388ed9e5e06fb24aba8bc274dc148c9b92..a287cb1cfe0da52b7f151b2a1375c533b377ce67 100644
--- a/test/codegen_expected/corelib/map_from_iterables_test.js
+++ b/test/codegen_expected/corelib/map_from_iterables_test.js
@@ -10,14 +10,15 @@ dart_library.library('corelib/map_from_iterables_test', null, /* Imports */[
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const map_from_iterables_test = Object.create(null);
+ let MapOfint$String = () => (MapOfint$String = dart.constFn(core.Map$(core.int, core.String)))();
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSArray$(core.String)))();
- let MapOfint$String = () => (MapOfint$String = dart.constFn(core.Map$(core.int, core.String)))();
+ let MapOfint$int = () => (MapOfint$int = dart.constFn(core.Map$(core.int, core.int)))();
let MapOfString$dynamic = () => (MapOfString$dynamic = dart.constFn(core.Map$(core.String, dart.dynamic)))();
let MapOfdynamic$int = () => (MapOfdynamic$int = dart.constFn(core.Map$(dart.dynamic, core.int)))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
- let VoidToMap = () => (VoidToMap = dart.constFn(dart.definiteFunctionType(core.Map, [])))();
+ let VoidToMapOfint$int = () => (VoidToMapOfint$int = dart.constFn(dart.definiteFunctionType(MapOfint$int(), [])))();
map_from_iterables_test.main = function() {
map_from_iterables_test.positiveTest();
map_from_iterables_test.emptyMapTest();
@@ -28,7 +29,7 @@ dart_library.library('corelib/map_from_iterables_test', null, /* Imports */[
};
dart.fn(map_from_iterables_test.main, VoidTodynamic());
map_from_iterables_test.positiveTest = function() {
- let map = core.Map.fromIterables(JSArrayOfint().of([1, 2, 3]), JSArrayOfString().of(["one", "two", "three"]));
+ let map = MapOfint$String().fromIterables(JSArrayOfint().of([1, 2, 3]), JSArrayOfString().of(["one", "two", "three"]));
expect$.Expect.isTrue(core.Map.is(map));
expect$.Expect.isTrue(collection.LinkedHashMap.is(map));
expect$.Expect.equals(3, map[dartx.length]);
@@ -49,15 +50,15 @@ dart_library.library('corelib/map_from_iterables_test', null, /* Imports */[
};
dart.fn(map_from_iterables_test.emptyMapTest, VoidTovoid());
map_from_iterables_test.fewerValuesIterableTest = function() {
- expect$.Expect.throws(dart.fn(() => core.Map.fromIterables(JSArrayOfint().of([1, 2]), JSArrayOfint().of([0])), VoidToMap()));
+ expect$.Expect.throws(dart.fn(() => MapOfint$int().fromIterables(JSArrayOfint().of([1, 2]), JSArrayOfint().of([0])), VoidToMapOfint$int()));
};
dart.fn(map_from_iterables_test.fewerValuesIterableTest, VoidTovoid());
map_from_iterables_test.fewerKeysIterableTest = function() {
- expect$.Expect.throws(dart.fn(() => core.Map.fromIterables(JSArrayOfint().of([1]), JSArrayOfint().of([0, 2])), VoidToMap()));
+ expect$.Expect.throws(dart.fn(() => MapOfint$int().fromIterables(JSArrayOfint().of([1]), JSArrayOfint().of([0, 2])), VoidToMapOfint$int()));
};
dart.fn(map_from_iterables_test.fewerKeysIterableTest, VoidTovoid());
map_from_iterables_test.equalElementsTest = function() {
- let map = core.Map.fromIterables(JSArrayOfint().of([1, 2, 2]), JSArrayOfString().of(["one", "two", "three"]));
+ let map = MapOfint$String().fromIterables(JSArrayOfint().of([1, 2, 2]), JSArrayOfString().of(["one", "two", "three"]));
expect$.Expect.isTrue(core.Map.is(map));
expect$.Expect.isTrue(collection.LinkedHashMap.is(map));
expect$.Expect.equals(2, map[dartx.length]);
« no previous file with comments | « test/codegen_expected/corelib/list_set_all_test.js ('k') | test/codegen_expected/corelib/shuffle_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698