Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp |
| diff --git a/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp b/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp |
| index 670be8ed87de9e3fcf1c6d71808dcde955627659..f9bec09d17da002246f72afbcca54adba6137df5 100644 |
| --- a/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp |
| +++ b/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp |
| @@ -1255,11 +1255,11 @@ TEST_F(VisibleUnitsTest, startOfParagraph) |
| root->setInnerHTML("<style>* { display:inline-table; }</style><body contenteditable=true><svg><svg><foreignObject>abc<svg></svg></foreignObject></svg></svg></body>", ASSERT_NO_EXCEPTION); |
| Element* oldBody = document().body(); |
| root->setInnerHTML("<body contenteditable=true><svg><foreignObject><style>def</style>", ASSERT_NO_EXCEPTION); |
| - ASSERT(oldBody != document().body()); |
| + DCHECK_NE(oldBody, document().body()); |
| Node* foreignObject = document().body()->firstChild()->firstChild(); |
| foreignObject->insertBefore(oldBody, foreignObject->firstChild()); |
| Node* styleText = foreignObject->lastChild()->firstChild(); |
| - ASSERT(styleText->isTextNode()); |
| + DCHECK(styleText->isTextNode()); |
|
yosin_UTC9
2016/04/14 04:35:00
How about adding |<< styleText|?
|
| updateLayoutAndStyleForPainting(); |
| EXPECT_FALSE(startOfParagraph(createVisiblePosition(Position(styleText, 0))).isNull()); |