1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:07:34 +00:00

Tests: Add a basic test suite for HTMLTokenizer

The test suite includes a few basic tests and a very crude regression
test, which just concatenates the to_string() of all tokens and checks
the String's hash to be equal. This relies on the format of
HTMLToken::to_string() to stay the same, which is not ideal.
This commit is contained in:
Max Wipfli 2021-07-12 15:12:47 +02:00 committed by Andreas Kling
parent 045a6a566b
commit 5a44a0b9f4
3 changed files with 218 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>This is a test page :^)</title>
</head>
<body>
<p>This is the first paragraph.</p>
<p foo="bar">The second paragraph has an attribute!</p>
</body>
</html>