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

Side by Side Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp

Issue 2197953002: Remove unnecessary uses of HTMLDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplify 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/editing/commands/ReplaceSelectionCommand.h" 5 #include "core/editing/commands/ReplaceSelectionCommand.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/HTMLNames.h" 8 #include "core/HTMLNames.h"
9 #include "core/dom/Document.h"
9 #include "core/dom/DocumentFragment.h" 10 #include "core/dom/DocumentFragment.h"
10 #include "core/dom/ParserContentPolicy.h" 11 #include "core/dom/ParserContentPolicy.h"
11 #include "core/editing/EditingTestBase.h" 12 #include "core/editing/EditingTestBase.h"
12 #include "core/editing/FrameSelection.h" 13 #include "core/editing/FrameSelection.h"
13 #include "core/editing/Position.h" 14 #include "core/editing/Position.h"
14 #include "core/editing/VisibleSelection.h" 15 #include "core/editing/VisibleSelection.h"
15 #include "core/frame/FrameView.h" 16 #include "core/frame/FrameView.h"
16 #include "core/frame/LocalFrame.h" 17 #include "core/frame/LocalFrame.h"
17 #include "core/html/HTMLDocument.h"
18 #include "core/testing/DummyPageHolder.h" 18 #include "core/testing/DummyPageHolder.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 #include <memory> 21 #include <memory>
22 22
23 namespace blink { 23 namespace blink {
24 24
25 class ReplaceSelectionCommandTest : public EditingTestBase { 25 class ReplaceSelectionCommandTest : public EditingTestBase {
26 }; 26 };
27 27
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 EXPECT_EQ( 76 EXPECT_EQ(
77 "<head><style>foo { bar: baz; }</style></head>" 77 "<head><style>foo { bar: baz; }</style></head>"
78 "<body><p>Text</p></body>", 78 "<body><p>Text</p></body>",
79 document().body()->innerHTML()) 79 document().body()->innerHTML())
80 << "the STYLE and P elements should have been pasted into the body " 80 << "the STYLE and P elements should have been pasted into the body "
81 << "of the document"; 81 << "of the document";
82 } 82 }
83 83
84 } // namespace blink 84 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698