mirror of
https://git.mirrors.martin98.com/https://github.com/google/googletest.git
synced 2025-08-12 07:39:01 +08:00
Googletest export
Remove inapplicable example PiperOrigin-RevId: 374762004
This commit is contained in:
parent
aa9b44a186
commit
f8519738b0
@ -411,17 +411,6 @@ using ::testing::MatchesRegex;
|
|||||||
EXPECT_THAT(bar_string, MatchesRegex("\\w*\\d+"));
|
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
|
### Windows HRESULT assertions
|
||||||
|
|
||||||
These assertions test for `HRESULT` success or failure.
|
These assertions test for `HRESULT` success or failure.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user