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

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

Issue 9193016: Add the arity to calls, and support noSuchMethodException. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' 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
Index: frog/tests/leg/src/ClassCodegenTest.dart
===================================================================
--- frog/tests/leg/src/ClassCodegenTest.dart (revision 3496)
+++ frog/tests/leg/src/ClassCodegenTest.dart (working copy)
@@ -64,19 +64,21 @@
twoClasses() {
String generated = compileClasses(TEST_ONE);
- Expect.isTrue(generated.contains("Isolate.prototype.A2 = function A() {\n};"));
- Expect.isTrue(generated.contains("Isolate.prototype.B2 = function B() {\n};"));
+ Expect.isTrue(generated.contains(
+ "Isolate.prototype.A = function A() {\n};"));
+ Expect.isTrue(generated.contains(
+ "Isolate.prototype.B = function B() {\n};"));
}
subClass() {
checkOutput(String generated) {
Expect.isTrue(
- generated.contains("Isolate.prototype.A2 = function A() {\n};"));
+ generated.contains("Isolate.prototype.A = function A() {\n};"));
Expect.isTrue(
- generated.contains("Isolate.prototype.B2 = function B() {\n};"));
+ generated.contains("Isolate.prototype.B = function B() {\n};"));
Expect.isTrue(generated.contains(@"Isolate.$inherits = function"));
Expect.isTrue(generated.contains(
- "Isolate.\$inherits(Isolate.prototype.B2, Isolate.prototype.A2);\n"));
+ "Isolate.\$inherits(Isolate.prototype.B, Isolate.prototype.A);\n"));
}
checkOutput(compileClasses(TEST_TWO));
@@ -86,16 +88,16 @@
fieldTest() {
String generated = compileClasses(TEST_FOUR);
Expect.isTrue(generated.contains("""
-Isolate.prototype.B2 = function B(B2_z, B2_y, A_x) {
- this.z = B2_z;
- this.y = B2_y;
+Isolate.prototype.B = function B(B_z, B_y, A_x) {
+ this.z = B_z;
+ this.y = B_y;
this.x = A_x;
};"""));
}
constructor1() {
String generated = compileClasses(TEST_FIVE);
- Expect.isTrue(generated.contains("new \$.A2(x);"));
+ Expect.isTrue(generated.contains("new \$.A(x);"));
}
main() {

Powered by Google App Engine
This is Rietveld 408576698