Skip to content

Commit

Permalink
rebase tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Nov 4, 2024
1 parent 94d7852 commit 58d37bf
Show file tree
Hide file tree
Showing 335 changed files with 35,428 additions and 34,598 deletions.
10 changes: 6 additions & 4 deletions tests/adjacent-boilerplate/adjacent-boilerplate.html
Original file line number Diff line number Diff line change
Expand Up @@ -1213,18 +1213,20 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
"use strict";
{
let refsData = {
"https://example.test/foo/#term": {"export":true,"for_":[],"level":"","normative":true,"shortname":"example-spec","spec":"example-spec","status":"anchor-block","text":"term","type":"dfn","url":"https://example.test/foo/#term"},
"https://fetch.spec.whatwg.org/#concept-response-response": {"export":true,"for_":["Response"],"level":"1","normative":true,"shortname":"fetch","spec":"fetch","status":"current","text":"response","type":"dfn","url":"https://fetch.spec.whatwg.org/#concept-response-response"},
"https://example.test/foo/#term": {"displayText":"term","export":true,"for_":[],"level":"","normative":true,"shortname":"example-spec","spec":"example-spec","status":"anchor-block","text":"term","type":"dfn","url":"https://example.test/foo/#term"},
"https://fetch.spec.whatwg.org/#concept-response-response": {"displayText":"response","export":true,"for_":["Response"],"level":"1","normative":true,"shortname":"fetch","spec":"fetch","status":"current","text":"response","type":"dfn","url":"https://fetch.spec.whatwg.org/#concept-response-response"},
};

function mkRefHint(link, ref) {
const linkText = link.textContent;
let dfnTextElements = '';
if (ref.text != linkText) {
if (ref.displayText.toLowerCase() != linkText.toLowerCase()) {
// Give the original term if it's being displayed in a different way.
// But allow casing differences, they're insignificant.
dfnTextElements =
mk.li({},
mk.b({}, "Term: "),
mk.span({}, ref.text)
mk.span({}, ref.displayText)
);
}
const forList = ref.for_;
Expand Down
4 changes: 2 additions & 2 deletions tests/caniuse001.html
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,8 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
</ul>
<details class="caniuse-status unpositioned" data-anno-for="insertadjacentelement-where-element" data-deco>
<summary>CanIUse</summary>
<p class="support"><b>Support:</b><span class="android yes"><span>Android Browser</span><span>2.3+</span></span><span class="baidu yes"><span>Baidu Browser</span><span>13.52+</span></span><span class="bb yes"><span>Blackberry Browser</span><span>7+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span><span class="and_chr yes"><span>Chrome for Android</span><span>127+</span></span><span class="edge yes"><span>Edge</span><span>12+</span></span><span class="firefox yes"><span>Firefox</span><span>48+</span></span><span class="and_ff yes"><span>Firefox for Android</span><span>127+</span></span><span class="ie yes"><span>IE</span><span>6+</span></span><span class="ie_mob yes"><span>IE Mobile</span><span>10+</span></span><span class="kaios yes"><span>KaiOS Browser</span><span>2.5+</span></span><span class="opera yes"><span>Opera</span><span>9.5+</span></span><span class="op_mini yes"><span>Opera Mini</span><span>All</span></span><span class="op_mob yes"><span>Opera Mobile</span><span>10+</span></span><span class="and_qq yes"><span>QQ Browser</span><span>14.9+</span></span><span class="safari yes"><span>Safari</span><span>3.1+</span></span><span class="ios_saf yes"><span>Safari on iOS</span><span>3.2+</span></span><span class="samsung yes"><span>Samsung Internet</span><span>4+</span></span><span class="and_uc yes"><span>UC Browser for Android</span><span>15.5+</span></span></p>
<p class="caniuse">Source: <a href="https://caniuse.com/#feat=insert-adjacent">caniuse.com</a> as of 2024-08-25</p>
<p class="support"><b>Support:</b><span class="android yes"><span>Android Browser</span><span>2.3+</span></span><span class="baidu yes"><span>Baidu Browser</span><span>13.52+</span></span><span class="bb yes"><span>Blackberry Browser</span><span>7+</span></span><span class="chrome yes"><span>Chrome</span><span>4+</span></span><span class="and_chr yes"><span>Chrome for Android</span><span>130+</span></span><span class="edge yes"><span>Edge</span><span>12+</span></span><span class="firefox yes"><span>Firefox</span><span>48+</span></span><span class="and_ff yes"><span>Firefox for Android</span><span>130+</span></span><span class="ie yes"><span>IE</span><span>6+</span></span><span class="ie_mob yes"><span>IE Mobile</span><span>10+</span></span><span class="kaios yes"><span>KaiOS Browser</span><span>2.5+</span></span><span class="opera yes"><span>Opera</span><span>9.5+</span></span><span class="op_mini yes"><span>Opera Mini</span><span>All</span></span><span class="op_mob yes"><span>Opera Mobile</span><span>10+</span></span><span class="and_qq yes"><span>QQ Browser</span><span>14.9+</span></span><span class="safari yes"><span>Safari</span><span>3.1+</span></span><span class="ios_saf yes"><span>Safari on iOS</span><span>3.2+</span></span><span class="samsung yes"><span>Samsung Internet</span><span>4+</span></span><span class="and_uc yes"><span>UC Browser for Android</span><span>15.5+</span></span></p>
<p class="caniuse">Source: <a href="https://caniuse.com/#feat=insert-adjacent">caniuse.com</a> as of 2024-10-31</p>
</details>
<script>/* Boilerplate: script-dom-helper */
"use strict";
Expand Down
12 changes: 7 additions & 5 deletions tests/css-production-range001.html
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
"use strict";
{
let linkTitleData = {
"https://drafts.csswg.org/css-values-4/#length-value": "Expands to: advance measure | cap | ch | cm | dvb | dvh | dvi | dvmax | dvmin | dvw | em | ex | ic | in | lh | lvb | lvh | lvi | lvmax | lvmin | lvw | mm | pc | pt | px | q | rcap | rch | rem | rex | ric | rlh | svb | svh | svi | svmax | svmin | svw | vb | vh | vi | vmax | vmin | vw",
"https://drafts.csswg.org/css-values-4/#length-value": "Expands to: advance measure | cap | ch | cm | dvb | dvh | dvi | dvmax | dvmin | dvw | em | ex | ic | in | lh | lvb | lvh | lvi | lvmax | lvmin | lvw | mm | pc | pt | px | rcap | rch | rem | rex | ric | rlh | svb | svh | svi | svmax | svmin | svw | vb | vh | vi | vmax | vmin | vw",
};

function setTypeTitles() {
Expand All @@ -1236,18 +1236,20 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
"use strict";
{
let refsData = {
"https://drafts.csswg.org/css-values-4/#integer-value": {"export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<integer>","type":"type","url":"https://drafts.csswg.org/css-values-4/#integer-value"},
"https://drafts.csswg.org/css-values-4/#length-value": {"export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<length>","type":"type","url":"https://drafts.csswg.org/css-values-4/#length-value"},
"https://drafts.csswg.org/css-values-4/#integer-value": {"displayText":"<integer>","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<integer>","type":"type","url":"https://drafts.csswg.org/css-values-4/#integer-value"},
"https://drafts.csswg.org/css-values-4/#length-value": {"displayText":"<length>","export":true,"for_":[],"level":"4","normative":true,"shortname":"css-values","spec":"css-values-4","status":"current","text":"<length>","type":"type","url":"https://drafts.csswg.org/css-values-4/#length-value"},
};

function mkRefHint(link, ref) {
const linkText = link.textContent;
let dfnTextElements = '';
if (ref.text != linkText) {
if (ref.displayText.toLowerCase() != linkText.toLowerCase()) {
// Give the original term if it's being displayed in a different way.
// But allow casing differences, they're insignificant.
dfnTextElements =
mk.li({},
mk.b({}, "Term: "),
mk.span({}, ref.text)
mk.span({}, ref.displayText)
);
}
const forList = ref.for_;
Expand Down
16 changes: 9 additions & 7 deletions tests/dict-type.html
Original file line number Diff line number Diff line change
Expand Up @@ -1364,21 +1364,23 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
"use strict";
{
let refsData = {
"#dictdef-dictwithdefaults": {"export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"DictWithDefaults","type":"dictionary","url":"#dictdef-dictwithdefaults"},
"#dom-dictwithdefaults-arraywithdefaultempty": {"export":true,"for_":["DictWithDefaults"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"arrayWithDefaultEmpty","type":"dict-member","url":"#dom-dictwithdefaults-arraywithdefaultempty"},
"#dom-dictwithdefaults-dictwithdefaultempty": {"export":true,"for_":["DictWithDefaults"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"dictWithDefaultEmpty","type":"dict-member","url":"#dom-dictwithdefaults-dictwithdefaultempty"},
"https://webidl.spec.whatwg.org/#idl-long": {"export":true,"for_":[],"level":"1","normative":true,"shortname":"webidl","spec":"webidl","status":"current","text":"long","type":"interface","url":"https://webidl.spec.whatwg.org/#idl-long"},
"https://webidl.spec.whatwg.org/#idl-sequence": {"export":true,"for_":[],"level":"1","normative":true,"shortname":"webidl","spec":"webidl","status":"current","text":"sequence","type":"dfn","url":"https://webidl.spec.whatwg.org/#idl-sequence"},
"#dictdef-dictwithdefaults": {"displayText":"DictWithDefaults","export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"DictWithDefaults","type":"dictionary","url":"#dictdef-dictwithdefaults"},
"#dom-dictwithdefaults-arraywithdefaultempty": {"displayText":"arrayWithDefaultEmpty","export":true,"for_":["DictWithDefaults"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"arrayWithDefaultEmpty","type":"dict-member","url":"#dom-dictwithdefaults-arraywithdefaultempty"},
"#dom-dictwithdefaults-dictwithdefaultempty": {"displayText":"dictWithDefaultEmpty","export":true,"for_":["DictWithDefaults"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"dictWithDefaultEmpty","type":"dict-member","url":"#dom-dictwithdefaults-dictwithdefaultempty"},
"https://webidl.spec.whatwg.org/#idl-long": {"displayText":"long","export":true,"for_":[],"level":"1","normative":true,"shortname":"webidl","spec":"webidl","status":"current","text":"long","type":"interface","url":"https://webidl.spec.whatwg.org/#idl-long"},
"https://webidl.spec.whatwg.org/#idl-sequence": {"displayText":"sequence","export":true,"for_":[],"level":"1","normative":true,"shortname":"webidl","spec":"webidl","status":"current","text":"sequence","type":"dfn","url":"https://webidl.spec.whatwg.org/#idl-sequence"},
};

function mkRefHint(link, ref) {
const linkText = link.textContent;
let dfnTextElements = '';
if (ref.text != linkText) {
if (ref.displayText.toLowerCase() != linkText.toLowerCase()) {
// Give the original term if it's being displayed in a different way.
// But allow casing differences, they're insignificant.
dfnTextElements =
mk.li({},
mk.b({}, "Term: "),
mk.span({}, ref.text)
mk.span({}, ref.displayText)
);
}
const forList = ref.for_;
Expand Down
28 changes: 15 additions & 13 deletions tests/elementdef001.html
Original file line number Diff line number Diff line change
Expand Up @@ -1323,27 +1323,29 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
"use strict";
{
let refsData = {
"#baz-attributes": {"export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"baz attributes","type":"dfn","url":"#baz-attributes"},
"#element-attrdef-baz-attributes-baz1": {"export":true,"for_":["baz attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"baz1","type":"element-attr","url":"#element-attrdef-baz-attributes-baz1"},
"#element-attrdef-baz-attributes-baz2": {"export":true,"for_":["baz attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"baz2","type":"element-attr","url":"#element-attrdef-baz-attributes-baz2"},
"#element-attrdef-quux-attributes-quux1": {"export":true,"for_":["quux attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"quux1","type":"element-attr","url":"#element-attrdef-quux-attributes-quux1"},
"#element-attrdef-quux-attributes-quux2": {"export":true,"for_":["quux attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"quux2","type":"element-attr","url":"#element-attrdef-quux-attributes-quux2"},
"#element-attrdef-testelement-bar": {"export":true,"for_":["testelement"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"bar","type":"element-attr","url":"#element-attrdef-testelement-bar"},
"#element-attrdef-testelement-foo": {"export":true,"for_":["testelement"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"foo","type":"element-attr","url":"#element-attrdef-testelement-foo"},
"#quux-attributes": {"export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"quux attributes","type":"dfn","url":"#quux-attributes"},
"#svgtestelement": {"export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"SVGTestElement","type":"interface","url":"#svgtestelement"},
"https://html.spec.whatwg.org/multipage/dom.html#flow-content-2": {"export":true,"for_":[],"level":"1","normative":true,"shortname":"html","spec":"html","status":"current","text":"flow content","type":"dfn","url":"https://html.spec.whatwg.org/multipage/dom.html#flow-content-2"},
"https://svgwg.org/svg2-draft/struct.html#graphics-element": {"export":true,"for_":[],"level":"2","normative":true,"shortname":"svg","spec":"svg2","status":"current","text":"graphics element","type":"dfn","url":"https://svgwg.org/svg2-draft/struct.html#graphics-element"},
"#baz-attributes": {"displayText":"baz attributes","export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"baz attributes","type":"dfn","url":"#baz-attributes"},
"#element-attrdef-baz-attributes-baz1": {"displayText":"baz1","export":true,"for_":["baz attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"baz1","type":"element-attr","url":"#element-attrdef-baz-attributes-baz1"},
"#element-attrdef-baz-attributes-baz2": {"displayText":"baz2","export":true,"for_":["baz attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"baz2","type":"element-attr","url":"#element-attrdef-baz-attributes-baz2"},
"#element-attrdef-quux-attributes-quux1": {"displayText":"quux1","export":true,"for_":["quux attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"quux1","type":"element-attr","url":"#element-attrdef-quux-attributes-quux1"},
"#element-attrdef-quux-attributes-quux2": {"displayText":"quux2","export":true,"for_":["quux attributes"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"quux2","type":"element-attr","url":"#element-attrdef-quux-attributes-quux2"},
"#element-attrdef-testelement-bar": {"displayText":"bar","export":true,"for_":["testelement"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"bar","type":"element-attr","url":"#element-attrdef-testelement-bar"},
"#element-attrdef-testelement-foo": {"displayText":"foo","export":true,"for_":["testelement"],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"foo","type":"element-attr","url":"#element-attrdef-testelement-foo"},
"#quux-attributes": {"displayText":"quux attributes","export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"quux attributes","type":"dfn","url":"#quux-attributes"},
"#svgtestelement": {"displayText":"SVGTestElement","export":true,"for_":[],"level":"1","normative":true,"shortname":"foo","spec":"foo-1","status":"local","text":"SVGTestElement","type":"interface","url":"#svgtestelement"},
"https://html.spec.whatwg.org/multipage/dom.html#flow-content-2": {"displayText":"flow content","export":true,"for_":[],"level":"1","normative":true,"shortname":"html","spec":"html","status":"current","text":"flow content","type":"dfn","url":"https://html.spec.whatwg.org/multipage/dom.html#flow-content-2"},
"https://svgwg.org/svg2-draft/struct.html#graphics-element": {"displayText":"graphics element","export":true,"for_":[],"level":"2","normative":true,"shortname":"svg","spec":"svg2","status":"current","text":"graphics element","type":"dfn","url":"https://svgwg.org/svg2-draft/struct.html#graphics-element"},
};

function mkRefHint(link, ref) {
const linkText = link.textContent;
let dfnTextElements = '';
if (ref.text != linkText) {
if (ref.displayText.toLowerCase() != linkText.toLowerCase()) {
// Give the original term if it's being displayed in a different way.
// But allow casing differences, they're insignificant.
dfnTextElements =
mk.li({},
mk.b({}, "Term: "),
mk.span({}, ref.text)
mk.span({}, ref.displayText)
);
}
const forList = ref.for_;
Expand Down
Loading

0 comments on commit 58d37bf

Please sign in to comment.