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

Unified Diff: tests/html/js_typed_interop_test.dart

Issue 1431513004: Fix dartium bug handling object literal constructors with zero arguments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « sdk/lib/js/dartium/js_dartium.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_typed_interop_test.dart
diff --git a/tests/html/js_typed_interop_test.dart b/tests/html/js_typed_interop_test.dart
index baf4d49c58d866af295c587035b6ac891382f838..2907142b0fe3c6a042ed98c8b292b0e0d29fc2f2 100644
--- a/tests/html/js_typed_interop_test.dart
+++ b/tests/html/js_typed_interop_test.dart
@@ -124,6 +124,12 @@ class ExampleLiteral {
external num get z;
}
+@anonymous
+@JS()
+class EmptyLiteral {
+ external factory EmptyLiteral();
+}
+
@JS('Foob')
class Foob extends Foo {
external String get y;
@@ -180,6 +186,11 @@ main() {
expect(l.z, equals(100));
expect(stringify(l), equals('{"z":100}'));
});
+
+ test('empty', () {
+ var l = new EmptyLiteral();
+ expect(stringify(l), equals('{}'));
+ });
});
group('constructor', () {
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698