summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-07-14 23:53:11 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-17 16:24:57 +0430
commit918bde98b17ad890ba0a83c1de137da86519f9b1 (patch)
tree543147c03a460c425063dae02babe23df46425b1 /Tests
parent15d8635afc7c1e3c01524cc670d90c3709670b2c (diff)
downloadserenity-918bde98b17ad890ba0a83c1de137da86519f9b1.zip
LibWeb: Hide implementation details of HTMLToken attribute list
Previously, HTMLToken would expose the Vector<Attribute> directly to its users. In preparation for a future change, all users now use implementation-agnostic APIs which do not expose the Vector directly.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibWeb/TestHTMLTokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibWeb/TestHTMLTokenizer.cpp b/Tests/LibWeb/TestHTMLTokenizer.cpp
index c001f00d2b..c3d5c2c195 100644
--- a/Tests/LibWeb/TestHTMLTokenizer.cpp
+++ b/Tests/LibWeb/TestHTMLTokenizer.cpp
@@ -61,7 +61,7 @@ using Token = Web::HTML::HTMLToken;
#define EXPECT_TAG_TOKEN_ATTRIBUTE_COUNT(count) \
VERIFY(last_token.has_value()); \
- EXPECT_EQ(last_token->attributes().size(), (size_t)count);
+ EXPECT_EQ(last_token->attribute_count(), (size_t)(count));
static Vector<Token> run_tokenizer(StringView const& input)
{