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/AtomicString.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/AtomicString.cpp')
-rw-r--r-- | Tools/TestWebKitAPI/Tests/WTF/AtomicString.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WTF/AtomicString.cpp b/Tools/TestWebKitAPI/Tests/WTF/AtomicString.cpp index 9df71ce44..bddf22c23 100644 --- a/Tools/TestWebKitAPI/Tests/WTF/AtomicString.cpp +++ b/Tools/TestWebKitAPI/Tests/WTF/AtomicString.cpp @@ -35,12 +35,14 @@ TEST(WTF, AtomicStringCreationFromLiteral) ASSERT_EQ(strlen("Template Literal"), stringWithTemplate.length()); ASSERT_TRUE(stringWithTemplate == "Template Literal"); ASSERT_TRUE(stringWithTemplate.string().is8Bit()); + ASSERT_TRUE(stringWithTemplate.impl()->hasTerminatingNullCharacter()); const char* programmaticStringData = "Explicit Size Literal"; AtomicString programmaticString(programmaticStringData, strlen(programmaticStringData), AtomicString::ConstructFromLiteral); ASSERT_EQ(strlen(programmaticStringData), programmaticString.length()); ASSERT_TRUE(programmaticStringData == programmaticStringData); ASSERT_TRUE(programmaticString.string().is8Bit()); + ASSERT_TRUE(programmaticString.impl()->hasTerminatingNullCharacter()); ASSERT_EQ(programmaticStringData, reinterpret_cast<const char*>(programmaticString.string().characters8())); } |