| Index: third_party/WebKit/Source/core/editing/markers/GrammarMarkerListImplTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/markers/GrammarMarkerListImplTest.cpp b/third_party/WebKit/Source/core/editing/markers/GrammarMarkerListImplTest.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..be0ab1bb2c73c721211ca96e70f584f393c7b9e0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/editing/markers/GrammarMarkerListImplTest.cpp
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved. Use of
|
| +// this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "core/editing/markers/SpellCheckMarkerListImpl.h"
|
| +
|
| +#include "core/editing/markers/GrammarMarkerListImpl.h"
|
| +#include "platform/heap/Handle.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// Functionality implemented in SpellCheckMarkerListImpl is tested in
|
| +// SpellingMarkerListImplTest.cpp.
|
| +
|
| +class GrammarMarkerListImplTest : public ::testing::Test {
|
| + protected:
|
| + GrammarMarkerListImplTest() : marker_list_(new GrammarMarkerListImpl()) {}
|
| +
|
| + Persistent<GrammarMarkerListImpl> marker_list_;
|
| +};
|
| +
|
| +// Test cases for functionality implemented by GrammarMarkerListImpl.
|
| +
|
| +TEST_F(GrammarMarkerListImplTest, MarkerType) {
|
| + EXPECT_EQ(DocumentMarker::kGrammar, marker_list_->MarkerType());
|
| +}
|
| +
|
| +} // namespace
|
|
|