summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/tests/IDBKeyPathTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/tests/IDBKeyPathTest.cpp')
-rw-r--r--Source/WebKit/chromium/tests/IDBKeyPathTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit/chromium/tests/IDBKeyPathTest.cpp b/Source/WebKit/chromium/tests/IDBKeyPathTest.cpp
index e2fdaebc2..7d662c009 100644
--- a/Source/WebKit/chromium/tests/IDBKeyPathTest.cpp
+++ b/Source/WebKit/chromium/tests/IDBKeyPathTest.cpp
@@ -37,6 +37,10 @@ namespace {
void checkKeyPath(const String& keyPath, const Vector<String>& expected, int parserError)
{
+ IDBKeyPath idbKeyPath(keyPath);
+ ASSERT_EQ(idbKeyPath.type(), IDBKeyPath::StringType);
+ ASSERT_EQ(idbKeyPath.isValid(), (parserError == IDBKeyPathParseErrorNone));
+
IDBKeyPathParseError error;
Vector<String> keyPathElements;
IDBParseKeyPath(keyPath, keyPathElements, error);