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

Unified Diff: tests/html/js_test.dart

Issue 26270003: Cleanup JS() expressions. New Constructor for JsObject that preserves the correct prototype. Type c… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add expect() to constructor test Created 7 years, 2 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
« sdk/lib/js/dart2js/js_dart2js.dart ('K') | « sdk/lib/js/dart2js/js_dart2js.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_test.dart
diff --git a/tests/html/js_test.dart b/tests/html/js_test.dart
index ef48eed45b6e94e2d020121d2b6474647b6748d6..2a12897e040665ebf1d585ed5610bf415515ea75 100644
--- a/tests/html/js_test.dart
+++ b/tests/html/js_test.dart
@@ -328,8 +328,9 @@ main() {
test('js instantiation : >10 parameters', () {
final o = new JsObject(context['Baz'], [1,2,3,4,5,6,7,8,9,10,11]);
for (var i = 1; i <= 11; i++) {
- o["f$i"] = i;
+ expect(o["f$i"], i);
}
+ expect(o['constructor'], same(context['Baz']));
});
test('write global field', () {
« sdk/lib/js/dart2js/js_dart2js.dart ('K') | « sdk/lib/js/dart2js/js_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698