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

Unified Diff: test/codegen/expect/expect.js

Issue 1700153002: Wrapperless dart:html and friends (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: A couple more tweaks Created 4 years, 10 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/expect/collection/src/canonicalized_map.js ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/expect.js
diff --git a/test/codegen/expect/expect.js b/test/codegen/expect/expect.js
index c1b8821780a17ea6079540eaf24aefcb19e5b30f..319325cef722591ad7ae65064e8c4f8ed93c8339 100644
--- a/test/codegen/expect/expect.js
+++ b/test/codegen/expect/expect.js
@@ -128,14 +128,14 @@ dart_library.library('expect', null, /* Imports */[
static mapEquals(expected, actual, reason) {
if (reason === void 0) reason = null;
let msg = Expect._getMessage(reason);
- for (let key of expected.keys) {
- if (!dart.notNull(actual.containsKey(key))) {
+ for (let key of expected[dartx.keys]) {
+ if (!dart.notNull(actual[dartx.containsKey](key))) {
Expect._fail(`Expect.mapEquals(missing expected key: <${key}>${msg}) fails`);
}
- Expect.equals(expected.get(key), actual.get(key));
+ Expect.equals(expected[dartx.get](key), actual[dartx.get](key));
}
- for (let key of actual.keys) {
- if (!dart.notNull(expected.containsKey(key))) {
+ for (let key of actual[dartx.keys]) {
+ if (!dart.notNull(expected[dartx.containsKey](key))) {
Expect._fail(`Expect.mapEquals(unexpected key: <${key}>${msg}) fails`);
}
}
« no previous file with comments | « test/codegen/expect/collection/src/canonicalized_map.js ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698