| Index: runtime/vm/regexp_test.cc
|
| diff --git a/runtime/vm/regexp_test.cc b/runtime/vm/regexp_test.cc
|
| index 0b1f3003d1836c01c4d3d298e04f07235af2e84e..4af897491b69dd6d2f8fd9b4b3d56ac8203bff14 100644
|
| --- a/runtime/vm/regexp_test.cc
|
| +++ b/runtime/vm/regexp_test.cc
|
| @@ -11,6 +11,8 @@
|
|
|
| namespace dart {
|
|
|
| +DECLARE_FLAG(bool, use_jscre);
|
| +
|
| static RawArray* Match(const String& pat, const String& str) {
|
| Isolate* isolate = Isolate::Current();
|
| const JSRegExp& regexp = JSRegExp::Handle(
|
| @@ -23,6 +25,9 @@ static RawArray* Match(const String& pat, const String& str) {
|
| }
|
|
|
| TEST_CASE(RegExp_OneByteString) {
|
| + if (FLAG_use_jscre)
|
| + return;
|
| +
|
| uint8_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
|
| intptr_t len = ARRAY_SIZE(chars);
|
| const String& str = String::Handle(
|
| @@ -44,6 +49,9 @@ TEST_CASE(RegExp_OneByteString) {
|
| }
|
|
|
| TEST_CASE(RegExp_TwoByteString) {
|
| + if (FLAG_use_jscre)
|
| + return;
|
| +
|
| uint16_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
|
| intptr_t len = ARRAY_SIZE(chars);
|
| const String& str = String::Handle(
|
| @@ -65,6 +73,9 @@ TEST_CASE(RegExp_TwoByteString) {
|
| }
|
|
|
| TEST_CASE(RegExp_ExternalOneByteString) {
|
| + if (FLAG_use_jscre)
|
| + return;
|
| +
|
| uint8_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
|
| intptr_t len = ARRAY_SIZE(chars);
|
| const String& str = String::Handle(
|
| @@ -86,6 +97,9 @@ TEST_CASE(RegExp_ExternalOneByteString) {
|
| }
|
|
|
| TEST_CASE(RegExp_ExternalTwoByteString) {
|
| + if (FLAG_use_jscre)
|
| + return;
|
| +
|
| uint16_t chars[] = { 'a', 'b', 'c', 'b', 'a' };
|
| intptr_t len = ARRAY_SIZE(chars);
|
| const String& str = String::Handle(
|
|
|