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

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
Index: frog/tests/leg/src/ConstantFoldingTest.dart
===================================================================
--- frog/tests/leg/src/ConstantFoldingTest.dart (revision 3496)
+++ frog/tests/leg/src/ConstantFoldingTest.dart (working copy)
@@ -38,12 +38,12 @@
main() {
compileAndTest(
- NUMBER_FOLDING, 'main', const RegExp("print\\(7\\)"));
+ NUMBER_FOLDING, 'main', const RegExp("print\\\$1\\(7\\)"));
floitsch 2012/01/24 11:46:03 please switch to @ strings.
ngeoffray 2012/01/24 12:09:39 Done.
compileAndTest(
- NEGATIVE_NUMBER_FOLDING, 'main', const RegExp("print\\(1\\)"));
+ NEGATIVE_NUMBER_FOLDING, 'main', const RegExp("print\\\$1\\(1\\)"));
floitsch 2012/01/24 11:46:03 ditto
ngeoffray 2012/01/24 12:09:39 Done.
String generated = compile(NULL_EQUALS_FOLDING, 'foo');
- RegExp regexp = const RegExp('eqNull\\(a\\)');
+ RegExp regexp = const RegExp('eqNull\\\$1\\(a\\)');
floitsch 2012/01/24 11:46:03 ditto.
ngeoffray 2012/01/24 12:09:39 Done.
Expect.isTrue(regexp.hasMatch(generated));
regexp = const RegExp('\\(void 0\\) === b');

Powered by Google App Engine
This is Rietveld 408576698