From a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 25 May 2012 15:09:11 +0200 Subject: Imported WebKit commit eb5c1b8fe4d4b1b90b5137433fc58a91da0e6878 (http://svn.webkit.org/repository/webkit/trunk@118516) --- Source/WebKit/chromium/tests/IDBBindingUtilitiesTest.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/WebKit/chromium/tests/IDBBindingUtilitiesTest.cpp') diff --git a/Source/WebKit/chromium/tests/IDBBindingUtilitiesTest.cpp b/Source/WebKit/chromium/tests/IDBBindingUtilitiesTest.cpp index d60295a5f..c1351850d 100644 --- a/Source/WebKit/chromium/tests/IDBBindingUtilitiesTest.cpp +++ b/Source/WebKit/chromium/tests/IDBBindingUtilitiesTest.cpp @@ -41,10 +41,8 @@ namespace { PassRefPtr checkKeyFromValueAndKeyPathInternal(SerializedScriptValue* value, const String& keyPath) { - Vector idbKeyPath; - IDBKeyPathParseError parseError; - IDBParseKeyPath(keyPath, idbKeyPath, parseError); - EXPECT_EQ(IDBKeyPathParseErrorNone, parseError); + IDBKeyPath idbKeyPath(keyPath); + EXPECT_TRUE(idbKeyPath.isValid()); return createIDBKeyFromSerializedValueAndKeyPath(value, idbKeyPath); } @@ -56,10 +54,8 @@ void checkKeyPathNullValue(SerializedScriptValue* value, const String& keyPath) PassRefPtr injectKey(PassRefPtr key, PassRefPtr value, const String& keyPath) { - Vector idbKeyPath; - IDBKeyPathParseError parseError; - IDBParseKeyPath(keyPath, idbKeyPath, parseError); - EXPECT_EQ(IDBKeyPathParseErrorNone, parseError); + IDBKeyPath idbKeyPath(keyPath); + EXPECT_TRUE(idbKeyPath.isValid()); return injectIDBKeyIntoSerializedValue(key, value, idbKeyPath); } -- cgit v1.2.1