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

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

Issue 2178243002: Make ExceptionState parameter of ContainerNode::querySelector() as an optional parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-26T10:56:52 Created 4 years, 5 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/VisiblePositionTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisiblePositionTest.cpp b/third_party/WebKit/Source/core/editing/VisiblePositionTest.cpp
index efd576e2197f4c77f1739f0373b0dfd0ee533021..2b1baab6ed0e4bf2e136f5b2b41d7e6268fd9dc3 100644
--- a/third_party/WebKit/Source/core/editing/VisiblePositionTest.cpp
+++ b/third_party/WebKit/Source/core/editing/VisiblePositionTest.cpp
@@ -20,10 +20,10 @@ TEST_F(VisiblePositionTest, ShadowV0DistributedNodes)
ShadowRoot* shadowRoot = setShadowContent(shadowContent, "host");
Element* body = document().body();
- Element* one = body->querySelector("#one", ASSERT_NO_EXCEPTION);
- Element* two = body->querySelector("#two", ASSERT_NO_EXCEPTION);
- Element* four = shadowRoot->querySelector("#s4", ASSERT_NO_EXCEPTION);
- Element* five = shadowRoot->querySelector("#s5", ASSERT_NO_EXCEPTION);
+ Element* one = body->querySelector("#one");
+ Element* two = body->querySelector("#two");
+ Element* four = shadowRoot->querySelector("#s4");
+ Element* five = shadowRoot->querySelector("#s5");
EXPECT_EQ(Position(one->firstChild(), 0), canonicalPositionOf(Position(one, 0)));
EXPECT_EQ(Position(one->firstChild(), 0), createVisiblePosition(Position(one, 0)).deepEquivalent());

Powered by Google App Engine
This is Rietveld 408576698