summaryrefslogtreecommitdiffstats
path: root/WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp')
-rw-r--r--WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp b/WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp
index bf39f60..7243152 100644
--- a/WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp
+++ b/WebKitTools/DumpRenderTree/chromium/MockSpellCheck.cpp
@@ -91,6 +91,12 @@ bool MockSpellCheck::spellCheckWord(const WebString& text, int* misspelledOffset
return false;
}
+void MockSpellCheck::fillSuggestionList(const WebString& word, Vector<WebString>* suggestions)
+{
+ if (word == WebString::fromUTF8("wellcome"))
+ suggestions->append(WebString::fromUTF8("welcome"));
+}
+
bool MockSpellCheck::initializeIfNeeded()
{
// Exit if we have already initialized this object.
@@ -133,6 +139,7 @@ bool MockSpellCheck::initializeIfNeeded()
"ifmmp",
"qwertyuiopasd",
"qwertyuiopasdf",
+ "wellcome"
};
m_misspelledWords.clear();