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

Unified Diff: tests/language/type_cast_vm_test.dart

Issue 10830130: Properly skip expressions that contain the operator as. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_cast_vm_test.dart
===================================================================
--- tests/language/type_cast_vm_test.dart (revision 10144)
+++ tests/language/type_cast_vm_test.dart (working copy)
@@ -5,6 +5,9 @@
//
// Dart test program testing type casts.
+// Test that the initializer expression gets properly skipped.
+bool b = "foo" as double;
+
class TypeTest {
static test() {
int result = 0;
@@ -22,7 +25,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(12, error.line);
+ Expect.equals(15, error.line);
Expect.equals(23, error.column);
}
return result;
@@ -64,7 +67,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(54, error.line);
+ Expect.equals(57, error.line);
Expect.equals(25, error.column);
}
return result;
@@ -89,7 +92,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(76, error.line);
+ Expect.equals(79, error.line);
Expect.equals(16, error.column);
}
return result;
@@ -112,7 +115,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(103, error.line);
+ Expect.equals(106, error.line);
Expect.equals(13, error.column);
}
return result;
@@ -137,7 +140,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(128, error.line);
+ Expect.equals(131, error.line);
Expect.equals(17, error.column);
}
return result;
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698