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

Unified Diff: dart/frog/tests/leg/src/ClassCodegenTest.dart

Issue 9114053: Record names of constructors and use that to implement Object.toString. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 8 years, 11 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 | « dart/frog/leg/ssa/nodes.dart ('k') | dart/frog/tests/leg_only/src/ToStringTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/tests/leg/src/ClassCodegenTest.dart
diff --git a/dart/frog/tests/leg/src/ClassCodegenTest.dart b/dart/frog/tests/leg/src/ClassCodegenTest.dart
index b1ce2f7572bb5f2c1902b3f53eda801ba453e976..b487f8d761286fffdf5a06f8e48b9967bf148c54 100644
--- a/dart/frog/tests/leg/src/ClassCodegenTest.dart
+++ b/dart/frog/tests/leg/src/ClassCodegenTest.dart
@@ -64,16 +64,16 @@ main() {
twoClasses() {
String generated = compileClasses(TEST_ONE);
- Expect.isTrue(generated.contains("Isolate.prototype.A2 = function() {\n};"));
- Expect.isTrue(generated.contains("Isolate.prototype.B2 = function() {\n};"));
+ Expect.isTrue(generated.contains("Isolate.prototype.A2 = function A() {\n};"));
+ Expect.isTrue(generated.contains("Isolate.prototype.B2 = function B() {\n};"));
}
subClass() {
checkOutput(String generated) {
Expect.isTrue(
- generated.contains("Isolate.prototype.A2 = function() {\n};"));
+ generated.contains("Isolate.prototype.A2 = function A() {\n};"));
Expect.isTrue(
- generated.contains("Isolate.prototype.B2 = function() {\n};"));
+ generated.contains("Isolate.prototype.B2 = function B() {\n};"));
Expect.isTrue(generated.contains(@"Isolate.$inherits = function"));
Expect.isTrue(generated.contains(
"Isolate.\$inherits(Isolate.prototype.B2, Isolate.prototype.A2);\n"));
@@ -86,7 +86,7 @@ subClass() {
fieldTest() {
String generated = compileClasses(TEST_FOUR);
Expect.isTrue(generated.contains("""
-Isolate.prototype.B2 = function(B_z, B_y, A_x) {
+Isolate.prototype.B2 = function B(B_z, B_y, A_x) {
this.z = B_z;
this.y = B_y;
this.x = A_x;
« no previous file with comments | « dart/frog/leg/ssa/nodes.dart ('k') | dart/frog/tests/leg_only/src/ToStringTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698