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

Unified Diff: tests/compiler/dart2js/type_inference_test.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « tests/compiler/dart2js/type_inference5_test.dart ('k') | tests/compiler/dart2js/value_range_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_inference_test.dart
diff --git a/tests/compiler/dart2js/type_inference_test.dart b/tests/compiler/dart2js/type_inference_test.dart
index f82f15b17567fe3dd1ebfe80cda1b975261b1a9f..0b4de27cd88f2e4c8b03176b28ec26d4119b9397 100644
--- a/tests/compiler/dart2js/type_inference_test.dart
+++ b/tests/compiler/dart2js/type_inference_test.dart
@@ -73,14 +73,14 @@ main() {
RegExp regexp = new RegExp(getNumberTypeCheck('a'));
Expect.isTrue(!regexp.hasMatch(generated));
- regexp = new RegExp('-a');
+ regexp = const RegExp('-a');
Expect.isTrue(!regexp.hasMatch(generated));
generated = compile(TEST_TWO_WITH_BAILOUT, entry: 'foo');
regexp = new RegExp(getNumberTypeCheck('a'));
Expect.isTrue(regexp.hasMatch(generated));
- regexp = new RegExp('-a');
+ regexp = const RegExp('-a');
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(TEST_THREE, entry: 'foo');
@@ -92,19 +92,19 @@ main() {
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(TEST_FIVE, entry: 'foo');
- regexp = new RegExp('a.constructor !== Array');
+ regexp = const RegExp('a.constructor !== Array');
Expect.isTrue(!regexp.hasMatch(generated));
Expect.isTrue(generated.contains('index'));
Expect.isTrue(generated.contains('indexSet'));
generated = compile(TEST_FIVE_WITH_BAILOUT, entry: 'foo');
- regexp = new RegExp('a.constructor !== Array');
+ regexp = const RegExp('a.constructor !== Array');
Expect.isTrue(regexp.hasMatch(generated));
Expect.isTrue(!generated.contains('index'));
Expect.isTrue(!generated.contains('indexSet'));
generated = compile(TEST_SIX, entry: 'foo');
- regexp = new RegExp('a.constructor !== Array');
+ regexp = const RegExp('a.constructor !== Array');
Expect.isTrue(regexp.hasMatch(generated));
Expect.isTrue(!generated.contains('index'));
Expect.isTrue(!generated.contains('indexSet'));
« no previous file with comments | « tests/compiler/dart2js/type_inference5_test.dart ('k') | tests/compiler/dart2js/value_range_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698