Skip to content

Commit

Permalink
rebase tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Aug 19, 2024
1 parent eed66eb commit ba5aad6
Show file tree
Hide file tree
Showing 121 changed files with 156 additions and 153 deletions.
2 changes: 1 addition & 1 deletion tests/abstract001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/adjacent-boilerplate/adjacent-boilerplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/advisement001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Advisements</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/algorithm001.html
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/basic001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/biblio001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/biblio002.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/biblio003.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/biblio004.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/biblio005.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/biblio006.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/biblio007.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/boilerplate-substitution001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/caniuse001.html
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/comments001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
47 changes: 24 additions & 23 deletions tests/conditional001.bs
Original file line number Diff line number Diff line change
@@ -1,64 +1,65 @@
<pre class=metadata>
Title: Foo
Group: test
Shortname: foo
Level: 1
Status: w3c/ED
Org: bikeshed
Group: test
Status: TEST
ED: http://example.com/foo
Abstract: Testing basic support for conditionals.
Editor: Example Editor
Date: 1970-01-01
</pre>

<div include-if="ED">
1. Included, since status is ED
<div include-if="TEST">
1. Included, since status is TEST
</div>

<p include-if="w3c/ED">
2. Included, since status canonicalizes to w3c/ED.
<p include-if="bikeshed/TEST">
2. Included, since status canonicalizes to bikeshed/TEST.
</p>

<div include-if="ietf/ED">
Excluded, since megagroup is wrong.
<div include-if="bikeshed-2/TEST">
Excluded, since org is wrong.
</div>

<div include-if="CR">
Excluded, since status is not CR.
<div include-if="TEST-2">
Excluded, since status is not TEST-2.
</div>

<hr>

<div exclude-if="ED">
Excluded, since status is ED
<div exclude-if="TEST">
Excluded, since status is TEST
</div>

<p exclude-if="w3c/ED">
Excluded, since status canonicalizes to w3c/ED.
<p exclude-if="bikeshed/TEST">
Excluded, since status canonicalizes to bikeshed/TEST.
</p>

<div exclude-if="ietf/ED">
3. Included, since megagroup is wrong.
<div exclude-if="bikeshed-2/TEST">
3. Included, since org is wrong.
</div>

<div exclude-if="CR">
4. Included, since status is not CR.
<div exclude-if="TEST-2">
4. Included, since status is not TEST-2.
</div>

<p>The attributes <span include-if=ED>5. can</span><span exclude-if=ED>can't</span> be used on inlines as well.</p>
<p>The attributes <span include-if=TEST>5. can</span><span exclude-if=TEST>can't</span> be used on inlines as well.</p>

<div include-if="CR, ED">
<div include-if="CR, TEST">
6. Included, because at least one condition matched.
</div>

<div include-if="CR, REC">
<div include-if="CR, TEST-2">
Excluded, because none of the conditions matched.
</div>

<div exclude-if="CR, REC">
<div exclude-if="CR, TEST-2">
7. Included, because none of the exclude conditions matched.
</div>

<div exclude-if="CR, ED">
<div exclude-if="CR, TEST">
Excluded because at least one condition matched.
</div>

Expand Down
10 changes: 5 additions & 5 deletions tests/conditional001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Bikeshed Test File, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand All @@ -432,26 +432,26 @@ <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
<div>
<ol>
<li data-md>
<p>Included, since status is ED</p>
<p>Included, since status is TEST</p>
</ol>
</div>
<p></p>
<ol start="2">
<li data-md>
<p>Included, since status canonicalizes to w3c/ED.</p>
<p>Included, since status canonicalizes to bikeshed/TEST.</p>
</ol>
<p></p>
<hr>
<div>
<ol start="3">
<li data-md>
<p>Included, since megagroup is wrong.</p>
<p>Included, since org is wrong.</p>
</ol>
</div>
<div>
<ol start="4">
<li data-md>
<p>Included, since status is not CR.</p>
<p>Included, since status is not TEST-2.</p>
</ol>
</div>
<p>The attributes <span>5. can</span> be used on inlines as well.</p>
Expand Down
17 changes: 9 additions & 8 deletions tests/conditional002.bs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<pre class=metadata>
Title: Foo
Org: bikeshed
Group: test
Status: test
Shortname: foo
Level: 1
Status: w3c/ED
ED: http://example.com/foo
Abstract: Testing support for &lt;if-wrapper>.
Editor: Example Editor
Expand All @@ -12,29 +13,29 @@ Date: 1970-01-01

<if-wrapper>Excluded and an error, since no conditions.</if-wrapper>

<if-wrapper include-if=ED>
<if-wrapper include-if=TEST>
<div>1. Included, since the wrapper passes.</div>
</if-wrapper>

<div>
<if-wrapper include-if=ED>2. Included, since the wrapper passes.</if-wrapper>
<if-wrapper include-if=TEST>2. Included, since the wrapper passes.</if-wrapper>
</div>

<if-wrapper include-if=ED>
<if-wrapper include-if=ED>
<if-wrapper include-if=TEST>
<if-wrapper include-if=TEST>
<div>3. Stacked wrapper is ok.</div>
</if-wrapper>
</if-wrapper>

<if-wrapper include-if=ED>
<if-wrapper include-if=TEST>
<div>4. Stuff between the wrappers
<if-wrapper include-if=ED>
<if-wrapper include-if=TEST>
5. also shows up fine.
</if-wrapper>
</div>
</if-wrapper>

<if-wrapper exclude-if=ED>
<if-wrapper exclude-if=TEST>
Removed, since the wrapper fails.
</if-wrapper>

Expand Down
2 changes: 1 addition & 1 deletion tests/conditional002.console.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
LINE 13: <if-wrapper> elements must have an include-if and/or exclude-if attribute.
LINE 14: <if-wrapper> elements must have an include-if and/or exclude-if attribute.
2 changes: 1 addition & 1 deletion tests/conditional002.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Bikeshed Test File, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/conditional003.bs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<pre class=metadata>
Title: Foo
Group: test
Status: TEST
Shortname: foo
Level: 1
Status: w3c/ED
ED: http://example.com/foo
Abstract: Testing conditionals over boilerplate and text macros.
Editor: Example Editor
Expand Down
2 changes: 1 addition & 1 deletion tests/conditional003.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Bikeshed Test File, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/css-production-range001.html
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/dict-type.html
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/elementdef001.html
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1>Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/fingerprint001.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/fingerprint002.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
2 changes: 1 addition & 1 deletion tests/fingerprint003.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
<div class="head">
<p data-fill-with="logo"></p>
<h1 class="p-name no-ref" id="title">Foo</h1>
<p id="w3c-state"><a href="https://www.w3.org/standards/types#LS">Living Standard</a>, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<p>Living Standard, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></p>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down
Loading

0 comments on commit ba5aad6

Please sign in to comment.