summaryrefslogtreecommitdiffstats
path: root/webkit/glue/regular_expression_unittest.cc
diff options
context:
space:
mode:
authorlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 00:50:33 +0000
committerlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-14 00:50:33 +0000
commit3bc5360723f5b6287a99d67cc4c104e3eec5ca53 (patch)
tree1141c5f90537018d9efd831e859594f9b37d12d8 /webkit/glue/regular_expression_unittest.cc
parent4ceb8c479da91b0c075fdaa0f2e7995940529716 (diff)
downloadchromium_src-3bc5360723f5b6287a99d67cc4c104e3eec5ca53.zip
chromium_src-3bc5360723f5b6287a99d67cc4c104e3eec5ca53.tar.gz
chromium_src-3bc5360723f5b6287a99d67cc4c104e3eec5ca53.tar.bz2
Webkit merge 39829:39744, Chromium portion.
Review URL: http://codereview.chromium.org/18204 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7995 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/regular_expression_unittest.cc')
-rw-r--r--webkit/glue/regular_expression_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/regular_expression_unittest.cc b/webkit/glue/regular_expression_unittest.cc
index 719879b..eaab8ce 100644
--- a/webkit/glue/regular_expression_unittest.cc
+++ b/webkit/glue/regular_expression_unittest.cc
@@ -35,7 +35,7 @@ struct Match {
TEST(RegexTest, Basic) {
// Just make sure we're not completely broken.
const String pattern("the quick brown fox");
- RegularExpression regex(pattern, /* case sensitive */ true);
+ RegularExpression regex(pattern, WebCore::TextCaseSensitive);
EXPECT_EQ(0, regex.match("the quick brown fox"));
EXPECT_EQ(1, regex.match(" the quick brown fox"));
EXPECT_EQ(3, regex.match("foothe quick brown foxbar"));
@@ -50,7 +50,7 @@ TEST(RegexTest, Unicode) {
// Test 1
wstring wstr_pattern(L"\x6240\x6709\x7f51\x9875");
String pattern = StdWStringToString(wstr_pattern);
- RegularExpression regex(pattern, /* case sensitive */ false);
+ RegularExpression regex(pattern, WebCore::TextCaseInsensitive);
EXPECT_EQ(0, regex.match(StdWStringToString(wstr_pattern)));
EXPECT_EQ(1, regex.match(StdWStringToString(
@@ -63,7 +63,7 @@ TEST(RegexTest, Unicode) {
// Test 2, mixed length
wstr_pattern = L":[ \x2000]+:";
pattern = StdWStringToString(wstr_pattern);
- regex = RegularExpression(pattern, /* case sensitive */ false);
+ regex = RegularExpression(pattern, WebCore::TextCaseInsensitive);
const Match matches[] = {
{ L": :", 0, 4 },
@@ -82,7 +82,7 @@ TEST(RegexTest, Unicode) {
// Test 3, empty match
wstr_pattern = L"|x";
pattern = StdWStringToString(wstr_pattern);
- regex = RegularExpression(pattern, /* case sensitive */ false);
+ regex = RegularExpression(pattern, WebCore::TextCaseInsensitive);
const Match matches2[] = {
{ L"", 0, 0 },