Skip to content

Commit c9ec497

Browse files
committed
Replace html5lib-tests submodule with a snapshot of required tests
1 parent 2b60720 commit c9ec497

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+16289
-10
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
.git* export-ignore
2-
test/html5lib-tests/ export-ignore

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ gumbo-%-1.rockspec: rockspec.in | .git/refs/tags/%
7575
@LUA_PATH=';;' luarocks lint $@
7676
@echo 'Generated: $@'
7777
78-
test/html5lib-tests/%:
79-
git submodule init
80-
git submodule update
81-
8278
install: all
8379
$(MKDIR) '$(DESTDIR)$(LUA_CMOD_DIR)/gumbo/'
8480
$(MKDIR) '$(DESTDIR)$(LUA_LMOD_DIR)/gumbo/serialize/'
@@ -116,7 +112,7 @@ check-unit: all
116112
@$(call TEST, test/misc.lua)
117113
@$(call TEST, test/dom/HTMLCollection-empty-name.lua)
118114
119-
check-html5lib: all | test/html5lib-tests/tree-construction
115+
check-html5lib: all | test/tree-construction
120116
@$(LUA) test/runner.lua $|/*.dat
121117
@echo 'PASS: html5lib'
122118

test/html5lib-tests

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/tree-construction/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This is a snapshot of the `tree-construction` directory of the
2+
[html5lib test suite], minus the `scripted` sub-directory, at commit
3+
`1d3a787ad4aa9e5ebfef63f61b20c9fe38e81a88`.
4+
5+
[html5lib test suite]: https://github.com/html5lib/html5lib-tests
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
#data
2+
<a><p></a></p>
3+
#errors
4+
#document
5+
| <html>
6+
| <head>
7+
| <body>
8+
| <a>
9+
| <p>
10+
| <a>
11+
12+
#data
13+
<a>1<p>2</a>3</p>
14+
#errors
15+
#document
16+
| <html>
17+
| <head>
18+
| <body>
19+
| <a>
20+
| "1"
21+
| <p>
22+
| <a>
23+
| "2"
24+
| "3"
25+
26+
#data
27+
<a>1<button>2</a>3</button>
28+
#errors
29+
#document
30+
| <html>
31+
| <head>
32+
| <body>
33+
| <a>
34+
| "1"
35+
| <button>
36+
| <a>
37+
| "2"
38+
| "3"
39+
40+
#data
41+
<a>1<b>2</a>3</b>
42+
#errors
43+
#document
44+
| <html>
45+
| <head>
46+
| <body>
47+
| <a>
48+
| "1"
49+
| <b>
50+
| "2"
51+
| <b>
52+
| "3"
53+
54+
#data
55+
<a>1<div>2<div>3</a>4</div>5</div>
56+
#errors
57+
#document
58+
| <html>
59+
| <head>
60+
| <body>
61+
| <a>
62+
| "1"
63+
| <div>
64+
| <a>
65+
| "2"
66+
| <div>
67+
| <a>
68+
| "3"
69+
| "4"
70+
| "5"
71+
72+
#data
73+
<table><a>1<p>2</a>3</p>
74+
#errors
75+
#document
76+
| <html>
77+
| <head>
78+
| <body>
79+
| <a>
80+
| "1"
81+
| <p>
82+
| <a>
83+
| "2"
84+
| "3"
85+
| <table>
86+
87+
#data
88+
<b><b><a><p></a>
89+
#errors
90+
#document
91+
| <html>
92+
| <head>
93+
| <body>
94+
| <b>
95+
| <b>
96+
| <a>
97+
| <p>
98+
| <a>
99+
100+
#data
101+
<b><a><b><p></a>
102+
#errors
103+
#document
104+
| <html>
105+
| <head>
106+
| <body>
107+
| <b>
108+
| <a>
109+
| <b>
110+
| <b>
111+
| <p>
112+
| <a>
113+
114+
#data
115+
<a><b><b><p></a>
116+
#errors
117+
#document
118+
| <html>
119+
| <head>
120+
| <body>
121+
| <a>
122+
| <b>
123+
| <b>
124+
| <b>
125+
| <b>
126+
| <p>
127+
| <a>
128+
129+
#data
130+
<p>1<s id="A">2<b id="B">3</p>4</s>5</b>
131+
#errors
132+
#document
133+
| <html>
134+
| <head>
135+
| <body>
136+
| <p>
137+
| "1"
138+
| <s>
139+
| id="A"
140+
| "2"
141+
| <b>
142+
| id="B"
143+
| "3"
144+
| <s>
145+
| id="A"
146+
| <b>
147+
| id="B"
148+
| "4"
149+
| <b>
150+
| id="B"
151+
| "5"
152+
153+
#data
154+
<table><a>1<td>2</td>3</table>
155+
#errors
156+
#document
157+
| <html>
158+
| <head>
159+
| <body>
160+
| <a>
161+
| "1"
162+
| <a>
163+
| "3"
164+
| <table>
165+
| <tbody>
166+
| <tr>
167+
| <td>
168+
| "2"
169+
170+
#data
171+
<table>A<td>B</td>C</table>
172+
#errors
173+
#document
174+
| <html>
175+
| <head>
176+
| <body>
177+
| "AC"
178+
| <table>
179+
| <tbody>
180+
| <tr>
181+
| <td>
182+
| "B"
183+
184+
#data
185+
<a><svg><tr><input></a>
186+
#errors
187+
#document
188+
| <html>
189+
| <head>
190+
| <body>
191+
| <a>
192+
| <svg svg>
193+
| <svg tr>
194+
| <svg input>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#data
2+
<b>1<i>2<p>3</b>4
3+
#errors
4+
#document
5+
| <html>
6+
| <head>
7+
| <body>
8+
| <b>
9+
| "1"
10+
| <i>
11+
| "2"
12+
| <i>
13+
| <p>
14+
| <b>
15+
| "3"
16+
| "4"
17+
18+
#data
19+
<a><div><style></style><address><a>
20+
#errors
21+
#document
22+
| <html>
23+
| <head>
24+
| <body>
25+
| <a>
26+
| <div>
27+
| <a>
28+
| <style>
29+
| <address>
30+
| <a>
31+
| <a>
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
#data
2+
FOO<!-- BAR -->BAZ
3+
#errors
4+
#document
5+
| <html>
6+
| <head>
7+
| <body>
8+
| "FOO"
9+
| <!-- BAR -->
10+
| "BAZ"
11+
12+
#data
13+
FOO<!-- BAR --!>BAZ
14+
#errors
15+
#document
16+
| <html>
17+
| <head>
18+
| <body>
19+
| "FOO"
20+
| <!-- BAR -->
21+
| "BAZ"
22+
23+
#data
24+
FOO<!-- BAR -- >BAZ
25+
#errors
26+
#document
27+
| <html>
28+
| <head>
29+
| <body>
30+
| "FOO"
31+
| <!-- BAR -- >BAZ -->
32+
33+
#data
34+
FOO<!-- BAR -- <QUX> -- MUX -->BAZ
35+
#errors
36+
#document
37+
| <html>
38+
| <head>
39+
| <body>
40+
| "FOO"
41+
| <!-- BAR -- <QUX> -- MUX -->
42+
| "BAZ"
43+
44+
#data
45+
FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
46+
#errors
47+
#document
48+
| <html>
49+
| <head>
50+
| <body>
51+
| "FOO"
52+
| <!-- BAR -- <QUX> -- MUX -->
53+
| "BAZ"
54+
55+
#data
56+
FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
57+
#errors
58+
#document
59+
| <html>
60+
| <head>
61+
| <body>
62+
| "FOO"
63+
| <!-- BAR -- <QUX> -- MUX -- >BAZ -->
64+
65+
#data
66+
FOO<!---->BAZ
67+
#errors
68+
#document
69+
| <html>
70+
| <head>
71+
| <body>
72+
| "FOO"
73+
| <!-- -->
74+
| "BAZ"
75+
76+
#data
77+
FOO<!--->BAZ
78+
#errors
79+
#document
80+
| <html>
81+
| <head>
82+
| <body>
83+
| "FOO"
84+
| <!-- -->
85+
| "BAZ"
86+
87+
#data
88+
FOO<!-->BAZ
89+
#errors
90+
#document
91+
| <html>
92+
| <head>
93+
| <body>
94+
| "FOO"
95+
| <!-- -->
96+
| "BAZ"
97+
98+
#data
99+
<?xml version="1.0">Hi
100+
#errors
101+
#document
102+
| <!-- ?xml version="1.0" -->
103+
| <html>
104+
| <head>
105+
| <body>
106+
| "Hi"
107+
108+
#data
109+
<?xml version="1.0">
110+
#errors
111+
#document
112+
| <!-- ?xml version="1.0" -->
113+
| <html>
114+
| <head>
115+
| <body>
116+
117+
#data
118+
<?xml version
119+
#errors
120+
#document
121+
| <!-- ?xml version -->
122+
| <html>
123+
| <head>
124+
| <body>
125+
126+
#data
127+
FOO<!----->BAZ
128+
#errors
129+
#document
130+
| <html>
131+
| <head>
132+
| <body>
133+
| "FOO"
134+
| <!-- - -->
135+
| "BAZ"

0 commit comments

Comments
 (0)