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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp

Issue 1878473002: ASSERT -> DCHECK in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Output info for some DCHECKs, add TODOs. Created 4 years, 8 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
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..ff5adea1597594d5ba49bbcab1da15ba8cad5c52 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()) << styleText;
updateLayoutAndStyleForPainting();
EXPECT_FALSE(startOfParagraph(createVisiblePosition(Position(styleText, 0))).isNull());

Powered by Google App Engine
This is Rietveld 408576698