Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp

Issue 2251693003: Rename "ContinuousSpellChecking" to "SpellChecking" in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/html/HTMLTextFormControlElement.h" 5 #include "core/html/HTMLTextFormControlElement.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/Text.h" 8 #include "core/dom/Text.h"
9 #include "core/editing/FrameSelection.h" 9 #include "core/editing/FrameSelection.h"
10 #include "core/editing/Position.h" 10 #include "core/editing/Position.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 Persistent<Document> m_document; 45 Persistent<Document> m_document;
46 Persistent<HTMLTextFormControlElement> m_textControl; 46 Persistent<HTMLTextFormControlElement> m_textControl;
47 Persistent<HTMLInputElement> m_input; 47 Persistent<HTMLInputElement> m_input;
48 }; 48 };
49 49
50 class DummySpellCheckerClient : public EmptySpellCheckerClient { 50 class DummySpellCheckerClient : public EmptySpellCheckerClient {
51 public: 51 public:
52 virtual ~DummySpellCheckerClient() { } 52 virtual ~DummySpellCheckerClient() { }
53 53
54 bool isContinuousSpellCheckingEnabled() override { return true; } 54 bool isSpellCheckingEnabled() override { return true; }
55 55
56 TextCheckerClient& textChecker() override { return m_emptyTextCheckerClient; } 56 TextCheckerClient& textChecker() override { return m_emptyTextCheckerClient; }
57 57
58 private: 58 private:
59 EmptyTextCheckerClient m_emptyTextCheckerClient; 59 EmptyTextCheckerClient m_emptyTextCheckerClient;
60 }; 60 };
61 61
62 void HTMLTextFormControlElementTest::SetUp() 62 void HTMLTextFormControlElementTest::SetUp()
63 { 63 {
64 Page::PageClients pageClients; 64 Page::PageClients pageClients;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 ASSERT_EQ(3, input->selectionStart()); 209 ASSERT_EQ(3, input->selectionStart());
210 210
211 Persistent<SpellChecker> spellChecker(SpellChecker::create(page().frame())); 211 Persistent<SpellChecker> spellChecker(SpellChecker::create(page().frame()));
212 forceLayoutFlag(); 212 forceLayoutFlag();
213 int startCount = layoutCount(); 213 int startCount = layoutCount();
214 spellChecker->respondToChangedSelection(oldSelection, FrameSelection::CloseT yping | FrameSelection::ClearTypingStyle); 214 spellChecker->respondToChangedSelection(oldSelection, FrameSelection::CloseT yping | FrameSelection::ClearTypingStyle);
215 EXPECT_EQ(startCount, layoutCount()); 215 EXPECT_EQ(startCount, layoutCount());
216 } 216 }
217 217
218 } // namespace blink 218 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698