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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/SpellingMarkerTest.cpp

Issue 2911723002: [DMC #24] Add SpellingMarker and GrammarMarker (subclasses of DocumentMarker) (Closed)
Patch Set: Respond to comments Created 3 years, 6 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/editing/markers/SpellingMarker.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace blink {
10
11 const char* const kDescription = "Test description";
12
13 class SpellingMarkerTest : public ::testing::Test {};
14
15 TEST_F(SpellingMarkerTest, MarkerType) {
yosin_UTC9 2017/06/01 05:45:40 Could you add a test case for IsSpellCheckerMarker
16 DocumentMarker* marker = new SpellingMarker(0, 1, kDescription);
17 EXPECT_EQ(DocumentMarker::kSpelling, marker->GetType());
18 }
19
20 TEST_F(SpellingMarkerTest, ConstructorAndGetters) {
21 SpellingMarker* marker = new SpellingMarker(0, 1, kDescription);
22 EXPECT_EQ(kDescription, marker->Description());
23 }
24
25 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698