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

Unified Diff: frog/tests/leg/src/ConstantFoldingTest.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/ClosureCodegenTest.dart ('k') | frog/tests/leg/src/LiteralListTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/ConstantFoldingTest.dart
===================================================================
--- frog/tests/leg/src/ConstantFoldingTest.dart (revision 3539)
+++ frog/tests/leg/src/ConstantFoldingTest.dart (working copy)
@@ -38,15 +38,15 @@
main() {
compileAndTest(
- NUMBER_FOLDING, 'main', const RegExp("print\\(7\\)"));
+ NUMBER_FOLDING, 'main', const RegExp(@"print\$1\(7\)"));
compileAndTest(
- NEGATIVE_NUMBER_FOLDING, 'main', const RegExp("print\\(1\\)"));
+ NEGATIVE_NUMBER_FOLDING, 'main', const RegExp(@"print\$1\(1\)"));
String generated = compile(NULL_EQUALS_FOLDING, 'foo');
- RegExp regexp = const RegExp('eqNull\\(a\\)');
+ RegExp regexp = const RegExp(@'eqNull\$1\(a\)');
Expect.isTrue(regexp.hasMatch(generated));
- regexp = const RegExp('\\(void 0\\) === b');
+ regexp = const RegExp(@'\(void 0\) === b');
Expect.isTrue(regexp.hasMatch(generated));
regexp = const RegExp('4 === c');
« no previous file with comments | « frog/tests/leg/src/ClosureCodegenTest.dart ('k') | frog/tests/leg/src/LiteralListTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698