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

Unified Diff: test/codegen_expected/corelib/splay_tree_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
Index: test/codegen_expected/corelib/splay_tree_from_iterables_test.js
diff --git a/test/codegen_expected/corelib/splay_tree_from_iterables_test.js b/test/codegen_expected/corelib/splay_tree_from_iterables_test.js
index 0c123bb458427bb6a79fc9b1ad370951d2c00787..6c591663ecc15002104444be4c9b79165eb9d16f 100644
--- a/test/codegen_expected/corelib/splay_tree_from_iterables_test.js
+++ b/test/codegen_expected/corelib/splay_tree_from_iterables_test.js
@@ -10,15 +10,16 @@ dart_library.library('corelib/splay_tree_from_iterables_test', null, /* Imports
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const splay_tree_from_iterables_test = Object.create(null);
+ let SplayTreeMapOfint$String = () => (SplayTreeMapOfint$String = dart.constFn(collection.SplayTreeMap$(core.int, core.String)))();
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
let JSArrayOfString = () => (JSArrayOfString = dart.constFn(_interceptors.JSArray$(core.String)))();
- let SplayTreeMapOfint$String = () => (SplayTreeMapOfint$String = dart.constFn(collection.SplayTreeMap$(core.int, core.String)))();
+ let SplayTreeMapOfint$int = () => (SplayTreeMapOfint$int = dart.constFn(collection.SplayTreeMap$(core.int, core.int)))();
let MapOfint$String = () => (MapOfint$String = dart.constFn(core.Map$(core.int, core.String)))();
let SplayTreeMapOfString$dynamic = () => (SplayTreeMapOfString$dynamic = dart.constFn(collection.SplayTreeMap$(core.String, dart.dynamic)))();
let SplayTreeMapOfdynamic$int = () => (SplayTreeMapOfdynamic$int = dart.constFn(collection.SplayTreeMap$(dart.dynamic, core.int)))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
- let VoidToSplayTreeMap = () => (VoidToSplayTreeMap = dart.constFn(dart.definiteFunctionType(collection.SplayTreeMap, [])))();
+ let VoidToSplayTreeMapOfint$int = () => (VoidToSplayTreeMapOfint$int = dart.constFn(dart.definiteFunctionType(SplayTreeMapOfint$int(), [])))();
splay_tree_from_iterables_test.main = function() {
splay_tree_from_iterables_test.positiveTest();
splay_tree_from_iterables_test.emptyMapTest();
@@ -29,7 +30,7 @@ dart_library.library('corelib/splay_tree_from_iterables_test', null, /* Imports
};
dart.fn(splay_tree_from_iterables_test.main, VoidTodynamic());
splay_tree_from_iterables_test.positiveTest = function() {
- let map = collection.SplayTreeMap.fromIterables(JSArrayOfint().of([1, 2, 3]), JSArrayOfString().of(["one", "two", "three"]));
+ let map = SplayTreeMapOfint$String().fromIterables(JSArrayOfint().of([1, 2, 3]), JSArrayOfString().of(["one", "two", "three"]));
expect$.Expect.isTrue(core.Map.is(map));
expect$.Expect.isTrue(collection.SplayTreeMap.is(map));
expect$.Expect.isFalse(collection.HashMap.is(map));
@@ -52,15 +53,15 @@ dart_library.library('corelib/splay_tree_from_iterables_test', null, /* Imports
};
dart.fn(splay_tree_from_iterables_test.emptyMapTest, VoidTovoid());
splay_tree_from_iterables_test.fewerValuesIterableTest = function() {
- expect$.Expect.throws(dart.fn(() => collection.SplayTreeMap.fromIterables(JSArrayOfint().of([1, 2]), JSArrayOfint().of([0])), VoidToSplayTreeMap()));
+ expect$.Expect.throws(dart.fn(() => SplayTreeMapOfint$int().fromIterables(JSArrayOfint().of([1, 2]), JSArrayOfint().of([0])), VoidToSplayTreeMapOfint$int()));
};
dart.fn(splay_tree_from_iterables_test.fewerValuesIterableTest, VoidTovoid());
splay_tree_from_iterables_test.fewerKeysIterableTest = function() {
- expect$.Expect.throws(dart.fn(() => collection.SplayTreeMap.fromIterables(JSArrayOfint().of([1]), JSArrayOfint().of([0, 2])), VoidToSplayTreeMap()));
+ expect$.Expect.throws(dart.fn(() => SplayTreeMapOfint$int().fromIterables(JSArrayOfint().of([1]), JSArrayOfint().of([0, 2])), VoidToSplayTreeMapOfint$int()));
};
dart.fn(splay_tree_from_iterables_test.fewerKeysIterableTest, VoidTovoid());
splay_tree_from_iterables_test.equalElementsTest = function() {
- let map = collection.SplayTreeMap.fromIterables(JSArrayOfint().of([1, 2, 2]), JSArrayOfString().of(["one", "two", "three"]));
+ let map = SplayTreeMapOfint$String().fromIterables(JSArrayOfint().of([1, 2, 2]), JSArrayOfString().of(["one", "two", "three"]));
expect$.Expect.isTrue(core.Map.is(map));
expect$.Expect.isTrue(collection.SplayTreeMap.is(map));
expect$.Expect.isFalse(collection.HashMap.is(map));
« no previous file with comments | « test/codegen_expected/corelib/shuffle_test.js ('k') | test/codegen_expected/language/async_star_test_01_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698