| Index: third_party/WebKit/Source/core/editing/PositionTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/PositionTest.cpp b/third_party/WebKit/Source/core/editing/PositionTest.cpp
|
| index a1003c21eb8ce2d72e14ce4e47dba1ae60a507dd..835802b042013e891758cb80729009ee02f4a810 100644
|
| --- a/third_party/WebKit/Source/core/editing/PositionTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/PositionTest.cpp
|
| @@ -98,6 +98,15 @@ TEST_F(PositionTest, ToPositionInComposedTreeWithInactiveInsertionPoint)
|
| EXPECT_EQ(PositionInComposedTree(anchor, PositionAnchorType::AfterChildren), toPositionInComposedTree(Position(anchor.get(), 1)));
|
| }
|
|
|
| +// This test comes from "editing/style/block-style-progress-crash.html".
|
| +TEST_F(PositionTest, ToPositionInComposedTreeWithNotDistributed)
|
| +{
|
| + setBodyContent("<progress id=sample>foo</progress>");
|
| + Element* sample = document().getElementById("sample");
|
| +
|
| + EXPECT_EQ(PositionInComposedTree(sample, PositionAnchorType::AfterChildren), toPositionInComposedTree(Position(sample, 0)));
|
| +}
|
| +
|
| TEST_F(PositionTest, ToPositionInComposedTreeWithShadowRoot)
|
| {
|
| const char* bodyContent = "<p id='host'>00<b id='one'>11</b>22</p>";
|
|
|