diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-18 14:56:50 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | 0c6d523c02dafb95b0683b88222e17a4fa6782a6 (patch) | |
tree | d162284bb5f2b5791247db968b9fea1a85a3a356 /Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp | |
parent | 2925efd2fcef1f8b9fd48979144877c1a5ec214b (diff) | |
download | qtwebkit-0c6d523c02dafb95b0683b88222e17a4fa6782a6.tar.gz |
QtWebKit should not require SQLite version to 3.6.16.
Revert r152134 which raised the minimum SQLite version,
and r152201 which removed a method the reverted code needed.
Change-Id: Ie028992137f3983d114f3491423afe6303173544
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp')
-rw-r--r-- | Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp b/Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp index 10ab9e2cb..35d64844c 100644 --- a/Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp +++ b/Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp @@ -37,6 +37,7 @@ TEST(WTF, StringImplCreationFromLiteral) ASSERT_EQ(strlen("Template Literal"), stringWithTemplate->length()); ASSERT_TRUE(equal(stringWithTemplate.get(), "Template Literal")); ASSERT_TRUE(stringWithTemplate->is8Bit()); + ASSERT_TRUE(stringWithTemplate->hasTerminatingNullCharacter()); // Constructor taking the size explicitely. const char* programmaticStringData = "Explicit Size Literal"; @@ -45,6 +46,7 @@ TEST(WTF, StringImplCreationFromLiteral) ASSERT_TRUE(equal(programmaticString.get(), programmaticStringData)); ASSERT_EQ(programmaticStringData, reinterpret_cast<const char*>(programmaticString->characters8())); ASSERT_TRUE(programmaticString->is8Bit()); + ASSERT_TRUE(programmaticString->hasTerminatingNullCharacter()); // Constructor without explicit size. const char* stringWithoutLengthLiteral = "No Size Literal"; @@ -53,6 +55,7 @@ TEST(WTF, StringImplCreationFromLiteral) ASSERT_TRUE(equal(programmaticStringNoLength.get(), stringWithoutLengthLiteral)); ASSERT_EQ(stringWithoutLengthLiteral, reinterpret_cast<const char*>(programmaticStringNoLength->characters8())); ASSERT_TRUE(programmaticStringNoLength->is8Bit()); + ASSERT_TRUE(programmaticStringNoLength->hasTerminatingNullCharacter()); } TEST(WTF, StringImplFromLiteralLoop16BitConversion) |