Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate test runner and other imrovements #57

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
07d518b
Remove unused BadURLToken.tokenType
danny0838 Apr 4, 2024
fd5be0f
Use 2-space indentation for printIndent()
danny0838 Apr 5, 2024
8eff206
Separate test runner from test cases
danny0838 Apr 5, 2024
5c36fd1
Support error test with "expectedThrow" property
danny0838 Apr 5, 2024
da9ea5e
Use UTF-8 for test pages
danny0838 Apr 5, 2024
f536db6
Add tests from project css-parsing-tests
danny0838 Apr 5, 2024
45dc254
Add tests
danny0838 Apr 6, 2024
7dd9cfe
Fix TokenStream.empty() not true when index at an EOF token
danny0838 Apr 6, 2024
3e80e59
Fix undefined token
danny0838 Apr 6, 2024
9e99a6b
Fix bad index handling for discardToken()
danny0838 Apr 6, 2024
256a730
Use codepoint 0x0 for EOF
danny0838 Apr 6, 2024
e2a84e0
Remove obsolete line number related code
danny0838 Apr 6, 2024
29a9f14
Remove unused InvalidCharacterError
danny0838 Apr 6, 2024
7aff364
Optimize tokenize()
danny0838 Apr 6, 2024
51ca7e2
Rename str to codepoints
danny0838 Apr 6, 2024
1a0374c
Add tests of some An+B cases
danny0838 Apr 6, 2024
a0c72de
Fix isValidInContext to allow a declaration with a standalone {}-block
danny0838 Apr 6, 2024
f6b962b
Refactor test report handling
danny0838 Apr 7, 2024
ff83c26
Support tests of toSource() with "expectedToSource" property
danny0838 Apr 7, 2024
7c57574
Add tests for toSource()
danny0838 Apr 7, 2024
067d807
Escape non-printable ident code with hex
danny0838 Apr 7, 2024
220c458
Don't escape starting "-" for an ident
danny0838 Apr 7, 2024
0be23fd
Escape '"' and "\" in a string with literal
danny0838 Apr 7, 2024
f983e3b
Don't escape "\t" for a string token
danny0838 Apr 7, 2024
1272126
Fix formatNumber() for "-0"
danny0838 Apr 7, 2024
11947f0
Improve Declaration.toSource()
danny0838 Apr 7, 2024
c89b991
Improve QualifiedRule.toSource()
danny0838 Apr 7, 2024
cd6a22a
Improve AtRule.toSource()
danny0838 Apr 7, 2024
f2d9800
Fix "-0" for toString()
danny0838 Apr 7, 2024
ae32413
Fix special char representation for toString()
danny0838 Apr 7, 2024
ea0c6a9
Make DimensionToken.toString() more compact
danny0838 Apr 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!doctype html>
<meta charset="utf-8">
<div><!--
--><textarea id='css'>foo { bar: baz; }</textarea><!--
--><button id="parse" onclick='parseStuff()'>Parse</button><!--
Expand Down
Loading