From f8519738b0041ed594ee0676c2f92e7a7e5ed975 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 19 May 2021 17:09:45 -0700 Subject: [PATCH] Googletest export Remove inapplicable example PiperOrigin-RevId: 374762004 --- docs/advanced.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docs/advanced.md b/docs/advanced.md index 4fdbb460..7994fc8b 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -411,17 +411,6 @@ using ::testing::MatchesRegex; EXPECT_THAT(bar_string, MatchesRegex("\\w*\\d+")); ``` -If the string contains a well-formed HTML or XML document, you can check whether -its DOM tree matches an -[XPath expression](http://www.w3.org/TR/xpath/#contents): - -```c++ -// Currently still in //template/prototemplate/testing:xpath_matcher -#include "template/prototemplate/testing/xpath_matcher.h" -using ::prototemplate::testing::MatchesXPath; -EXPECT_THAT(html_string, MatchesXPath("//a[text()='click here']")); -``` - ### Windows HRESULT assertions These assertions test for `HRESULT` success or failure.