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

Unified Diff: frog/tests/leg/src/PrettyParameterTest.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
« no previous file with comments | « frog/tests/leg/src/LiteralListTest.dart ('k') | frog/tests/leg/src/SsaPhiEliminatorTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/PrettyParameterTest.dart
===================================================================
--- frog/tests/leg/src/PrettyParameterTest.dart (revision 3539)
+++ frog/tests/leg/src/PrettyParameterTest.dart (working copy)
@@ -70,18 +70,18 @@
main() {
String generated = compile(FOO, 'foo');
// TODO(ngeoffray): Use 'contains' when frog supports it.
- RegExp regexp = const RegExp("function\\(a, b\\) {");
+ RegExp regexp = const RegExp(@"function\(a, b\) {");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(BAR, 'bar');
- regexp = const RegExp("function\\(\\\$eval, _\\\$eval\\) {");
+ regexp = const RegExp(@"function\(\$eval, _\$eval\) {");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(PARAMETER_AND_TEMP, 'bar');
- regexp = const RegExp("print\\(t0\\)");
+ regexp = const RegExp(@"print\$1\(t0\)");
Expect.isTrue(regexp.hasMatch(generated));
// Check that the second 't0' got another name.
- regexp = const RegExp("print\\(t0_0\\)");
+ regexp = const RegExp(@"print\$1\(t0_0\)");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(NO_LOCAL, 'foo');
« no previous file with comments | « frog/tests/leg/src/LiteralListTest.dart ('k') | frog/tests/leg/src/SsaPhiEliminatorTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698