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

Unified Diff: tests/lib_strong/html/js_test.dart

Issue 2827333003: Tighten up handling of JS types and add test. (Closed)
Patch Set: Tighten up handling of JS types. Fix bug where helpers in js_mirrors were specifying name had type … Created 3 years, 8 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: tests/lib_strong/html/js_test.dart
diff --git a/tests/lib_strong/html/js_test.dart b/tests/lib_strong/html/js_test.dart
index 1e0cc202036d73ae15a834a0df1533adcf9084cd..bf8ca1c040e4c0ab68191a760474af4bbb6f0697 100644
--- a/tests/lib_strong/html/js_test.dart
+++ b/tests/lib_strong/html/js_test.dart
@@ -708,7 +708,12 @@ main() {
});
test('convert a Map', () {
- var map = {'a': 1, 'b': 2, 'c': 3};
+ var map = {
+ 'a': 1,
+ 'b': 2,
+ 'c': 3,
+ 'd': allowInteropCaptureThis((that) => 42)
+ };
var jsMap = new JsObject.jsify(map);
expect(!context.callMethod('isArray', [jsMap]), isTrue);
for (final key in map.keys) {

Powered by Google App Engine
This is Rietveld 408576698