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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Got rid of some problems. Created 9 years 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: compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java b/compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java
index 27dcaaf19d0b2c612fedb2c2aee33fd9b8e85bbe..a2e8ac58c4ce5d7d3b63be6c2f84a36bf03d1ced 100644
--- a/compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java
+++ b/compiler/javatests/com/google/dart/compiler/backend/js/RttTest.java
@@ -69,10 +69,18 @@ public class RttTest extends SnippetTestCase {
{
String init = findMarkerAtOccurrence(js, "_marker_D1", DELIMETERS, 1);
- assertEquals("var _marker_D1 = Test_app4a54ba$D$Dart.D$$Factory([])", init);
+ assertEquals("var _marker_D1 = Test_app4a54ba$D$Dart.D$$Factory(null)", init);
String expr = findMarkerAtOccurrence(js, "_marker_D1", "[\\n;]", 2);
assertEquals("a = !!(tmp$2 = _marker_D1 , tmp$2 != null && tmp$2.$implements$Test_app4a54ba$D$Dart)", expr);
}
+
+ {
+ String init = findMarkerAtOccurrence(js, "_marker_D2", DELIMETERS, 1);
ahe 2011/12/15 09:02:13 I have no idea about what is going on here.
+ assertEquals("var _marker_D2 = Test_app4a54ba$D$Dart.D$$Factory([String$Dart.$lookupRTT()])", init);
+
+ String expr = findMarkerAtOccurrence(js, "_marker_D2", "[\\n;]", 2);
+ assertEquals("a = Test_app4a54ba$D$Dart.$lookupRTT([String$Dart.$lookupRTT()]).implementedBy(_marker_D2)", expr);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698