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

Unified Diff: test/browser/runtime_tests.js

Issue 1135543003: Fixes #178 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Reformat Created 5 years, 7 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 | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/constructors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/browser/runtime_tests.js
diff --git a/test/browser/runtime_tests.js b/test/browser/runtime_tests.js
index 9b84c9bc6b5800df8536100a5c66fd9c3e6a9b1e..59d48d5603c7eed09f3083f71b0132cf54362fea 100644
--- a/test/browser/runtime_tests.js
+++ b/test/browser/runtime_tests.js
@@ -72,6 +72,13 @@ suite('generic', () => {
assert.equal(someValue[dart.originalDeclaration], SomeType);
assert.deepEqual(someValue[dart.typeArguments], ['hi', 123]);
});
+
+ test('proper type constructor is called', () => {
+ // This tests https://github.com/dart-lang/dev_compiler/issues/178
+ let l = dart.setType([1, 2, 3], core.List$(core.int));
+ let s = l[core.$join]();
+ assert.equal(s, '123');
+ });
});
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/constructors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698