mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Tests: Add comments to the HTMLTokenizer regression test file
This commit is contained in:
parent
bb2aed7d76
commit
a9a54914bf
Notes:
sideshowbarker
2024-07-18 09:00:51 +09:00
Author: https://github.com/MaxWipfli
Commit: a9a54914bf
Pull-request: https://github.com/SerenityOS/serenity/pull/8759
Issue: https://github.com/SerenityOS/serenity/issues/8757
2 changed files with 4 additions and 1 deletions
|
@ -193,5 +193,5 @@ TEST_CASE(regression)
|
||||||
auto file_contents = file.value()->read_all();
|
auto file_contents = file.value()->read_all();
|
||||||
auto tokens = run_tokenizer(file_contents);
|
auto tokens = run_tokenizer(file_contents);
|
||||||
u32 hash = hash_tokens(tokens);
|
u32 hash = hash_tokens(tokens);
|
||||||
EXPECT_EQ(hash, 1328591125u);
|
EXPECT_EQ(hash, 2891738465u);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,8 @@
|
||||||
<body>
|
<body>
|
||||||
<p>This is the first paragraph.</p>
|
<p>This is the first paragraph.</p>
|
||||||
<p foo="bar">The second paragraph has an attribute!</p>
|
<p foo="bar">The second paragraph has an attribute!</p>
|
||||||
|
<!-- This is a standard HTML comment. -->
|
||||||
|
<!----- This comment has a few too many dashes. ----->
|
||||||
|
<!----> <!-- <= There is an empty comment over there. -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue