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

Unified Diff: Source/core/editing/PositionTest.cpp

Issue 1308263002: Introduce EditingUtilitiesTest.cpp as a home of nextPositionOf() test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/EditingUtilitiesTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/PositionTest.cpp
diff --git a/Source/core/editing/PositionTest.cpp b/Source/core/editing/PositionTest.cpp
index b368ea4def50382187032285cd26d57fc53ef6b4..ac15d4d65caf41cda8befa2b04cbd5fbd468601c 100644
--- a/Source/core/editing/PositionTest.cpp
+++ b/Source/core/editing/PositionTest.cpp
@@ -6,27 +6,12 @@
#include "core/editing/Position.h"
#include "core/editing/EditingTestBase.h"
-#include "core/editing/EditingUtilities.h"
namespace blink {
class PositionTest : public EditingTestBase {
};
-// TODO(yoisn) We should move |NextNodeIndex| to "EditingUtilitiesTest.cpp".
-TEST_F(PositionTest, NextNodeIndex)
-{
- const char* bodyContent = "<p id='host'>00<b id='one'>11</b><b id='two'>22</b>33</p>";
- const char* shadowContent = "<content select=#two></content><content select=#one></content>";
- setBodyContent(bodyContent);
- setShadowContent(shadowContent);
- Node* host = document().getElementById("host");
- Node* two = document().getElementById("two");
-
- EXPECT_EQ(Position(host, 3), nextPositionOf(Position(two, 2), PositionMoveType::CodePoint));
- EXPECT_EQ(PositionInComposedTree(host, 1), nextPositionOf(PositionInComposedTree(two, 2), PositionMoveType::CodePoint));
-}
-
TEST_F(PositionTest, NodeAsRangeLastNodeNull)
{
EXPECT_EQ(nullptr, Position().nodeAsRangeLastNode());
« no previous file with comments | « Source/core/editing/EditingUtilitiesTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698