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

Unified Diff: tests/corelib/regexp/norepeat_test.dart

Issue 667043003: Port regexp tests from V8 to Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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: tests/corelib/regexp/norepeat_test.dart
diff --git a/tests/lib/profiler/metrics_num_test.dart b/tests/corelib/regexp/norepeat_test.dart
similarity index 56%
copy from tests/lib/profiler/metrics_num_test.dart
copy to tests/corelib/regexp/norepeat_test.dart
index d6a6689809a6a22173425311e424e16da8f0b345..a05aad9ce3d17d3b56d0e861a9d4a1fd18ebbd10 100644
--- a/tests/lib/profiler/metrics_num_test.dart
+++ b/tests/corelib/regexp/norepeat_test.dart
@@ -1,18 +1,16 @@
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-//
-import 'dart:profiler';
+import 'util.dart';
import 'package:expect/expect.dart';
-testGaugeDouble() {
- Expect.throws(() {
- // max argument is not a double
- gauge = new Gauge('test', 'alpha bravo', 1.0, 4);
- });
-}
+void main() {
+ description(
+ 'Test for https://bugs.webkit.org/show_bug.cgi?id=46077'
+ );
-main() {
- testGaugeDouble();
+ var re = new RegExp(r"^b|^cd");
+ var str = "abcd";
+ shouldBeFalse(re.hasMatch(str));
}

Powered by Google App Engine
This is Rietveld 408576698