Skip to content

Commit

Permalink
rebase tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Dec 21, 2023
1 parent f16cd2e commit 97ba679
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 627 deletions.
57 changes: 0 additions & 57 deletions tests/github/whatwg/compat/compatibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -2304,63 +2304,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
document.addEventListener("DOMContentLoaded", setTypeTitles);
}
</script>
<script>/* Boilerplate: script-position-annos */
"use strict";
{
function repositionAnnoPanels(){
const panels = [...document.querySelectorAll("[data-anno-for]")];
hydratePanels(panels);
let vSoFar = 0;
for(const panel of panels.sort(cmpTops)) {
if(panel.top < vSoFar) {
panel.top = vSoFar;
panel.style.top = vSoFar + "px";
}
vSoFar = panel.top + panel.height + 15;
}
}
function hydratePanels(panels) {
const main = document.querySelector("main");
let mainRect;
if(main) mainRect = main.getBoundingClientRect();
// First display them all, if they're not already visible.
for(const panel of panels) {
panel.classList.remove("unpositioned");
}
// Measure them all
for(const panel of panels) {
const dfn = document.getElementById(panel.getAttribute("data-anno-for"));
if(!dfn) {
console.log("Can't find the annotation panel target:", panel);
continue;
}
panel.dfn = dfn;
panel.top = window.scrollY + dfn.getBoundingClientRect().top;
let panelRect = panel.getBoundingClientRect();
panel.height = panelRect.height;
if(main) {
panel.overlappingMain = panelRect.left < mainRect.right;
} else {
panel.overlappingMain = false;
}
}
// And finally position them
for(const panel of panels) {
const dfn = panel.dfn;
if(!dfn) continue;
panel.style.top = panel.top + "px";
panel.classList.toggle("overlapping-main", panel.overlappingMain);
}
}

function cmpTops(a,b) {
return a.top - b.top;
}

window.addEventListener("load", repositionAnnoPanels);
window.addEventListener("resize", repositionAnnoPanels);
}
</script>
<script>/* Boilerplate: script-ref-hints */
"use strict";
{
Expand Down
57 changes: 0 additions & 57 deletions tests/github/whatwg/console/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1898,63 +1898,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
}
}
</script>
<script>/* Boilerplate: script-position-annos */
"use strict";
{
function repositionAnnoPanels(){
const panels = [...document.querySelectorAll("[data-anno-for]")];
hydratePanels(panels);
let vSoFar = 0;
for(const panel of panels.sort(cmpTops)) {
if(panel.top < vSoFar) {
panel.top = vSoFar;
panel.style.top = vSoFar + "px";
}
vSoFar = panel.top + panel.height + 15;
}
}
function hydratePanels(panels) {
const main = document.querySelector("main");
let mainRect;
if(main) mainRect = main.getBoundingClientRect();
// First display them all, if they're not already visible.
for(const panel of panels) {
panel.classList.remove("unpositioned");
}
// Measure them all
for(const panel of panels) {
const dfn = document.getElementById(panel.getAttribute("data-anno-for"));
if(!dfn) {
console.log("Can't find the annotation panel target:", panel);
continue;
}
panel.dfn = dfn;
panel.top = window.scrollY + dfn.getBoundingClientRect().top;
let panelRect = panel.getBoundingClientRect();
panel.height = panelRect.height;
if(main) {
panel.overlappingMain = panelRect.left < mainRect.right;
} else {
panel.overlappingMain = false;
}
}
// And finally position them
for(const panel of panels) {
const dfn = panel.dfn;
if(!dfn) continue;
panel.style.top = panel.top + "px";
panel.classList.toggle("overlapping-main", panel.overlappingMain);
}
}

function cmpTops(a,b) {
return a.top - b.top;
}

window.addEventListener("load", repositionAnnoPanels);
window.addEventListener("resize", repositionAnnoPanels);
}
</script>
<script>/* Boilerplate: script-ref-hints */
"use strict";
{
Expand Down
57 changes: 0 additions & 57 deletions tests/github/whatwg/dom/dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -15228,63 +15228,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
}
}
</script>
<script>/* Boilerplate: script-position-annos */
"use strict";
{
function repositionAnnoPanels(){
const panels = [...document.querySelectorAll("[data-anno-for]")];
hydratePanels(panels);
let vSoFar = 0;
for(const panel of panels.sort(cmpTops)) {
if(panel.top < vSoFar) {
panel.top = vSoFar;
panel.style.top = vSoFar + "px";
}
vSoFar = panel.top + panel.height + 15;
}
}
function hydratePanels(panels) {
const main = document.querySelector("main");
let mainRect;
if(main) mainRect = main.getBoundingClientRect();
// First display them all, if they're not already visible.
for(const panel of panels) {
panel.classList.remove("unpositioned");
}
// Measure them all
for(const panel of panels) {
const dfn = document.getElementById(panel.getAttribute("data-anno-for"));
if(!dfn) {
console.log("Can't find the annotation panel target:", panel);
continue;
}
panel.dfn = dfn;
panel.top = window.scrollY + dfn.getBoundingClientRect().top;
let panelRect = panel.getBoundingClientRect();
panel.height = panelRect.height;
if(main) {
panel.overlappingMain = panelRect.left < mainRect.right;
} else {
panel.overlappingMain = false;
}
}
// And finally position them
for(const panel of panels) {
const dfn = panel.dfn;
if(!dfn) continue;
panel.style.top = panel.top + "px";
panel.classList.toggle("overlapping-main", panel.overlappingMain);
}
}

function cmpTops(a,b) {
return a.top - b.top;
}

window.addEventListener("load", repositionAnnoPanels);
window.addEventListener("resize", repositionAnnoPanels);
}
</script>
<script>/* Boilerplate: script-ref-hints */
"use strict";
{
Expand Down
57 changes: 0 additions & 57 deletions tests/github/whatwg/encoding/encoding.html
Original file line number Diff line number Diff line change
Expand Up @@ -4723,63 +4723,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
}
}
</script>
<script>/* Boilerplate: script-position-annos */
"use strict";
{
function repositionAnnoPanels(){
const panels = [...document.querySelectorAll("[data-anno-for]")];
hydratePanels(panels);
let vSoFar = 0;
for(const panel of panels.sort(cmpTops)) {
if(panel.top < vSoFar) {
panel.top = vSoFar;
panel.style.top = vSoFar + "px";
}
vSoFar = panel.top + panel.height + 15;
}
}
function hydratePanels(panels) {
const main = document.querySelector("main");
let mainRect;
if(main) mainRect = main.getBoundingClientRect();
// First display them all, if they're not already visible.
for(const panel of panels) {
panel.classList.remove("unpositioned");
}
// Measure them all
for(const panel of panels) {
const dfn = document.getElementById(panel.getAttribute("data-anno-for"));
if(!dfn) {
console.log("Can't find the annotation panel target:", panel);
continue;
}
panel.dfn = dfn;
panel.top = window.scrollY + dfn.getBoundingClientRect().top;
let panelRect = panel.getBoundingClientRect();
panel.height = panelRect.height;
if(main) {
panel.overlappingMain = panelRect.left < mainRect.right;
} else {
panel.overlappingMain = false;
}
}
// And finally position them
for(const panel of panels) {
const dfn = panel.dfn;
if(!dfn) continue;
panel.style.top = panel.top + "px";
panel.classList.toggle("overlapping-main", panel.overlappingMain);
}
}

function cmpTops(a,b) {
return a.top - b.top;
}

window.addEventListener("load", repositionAnnoPanels);
window.addEventListener("resize", repositionAnnoPanels);
}
</script>
<script>/* Boilerplate: script-ref-hints */
"use strict";
{
Expand Down
57 changes: 0 additions & 57 deletions tests/github/whatwg/fetch/fetch.html
Original file line number Diff line number Diff line change
Expand Up @@ -8890,63 +8890,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
}
}
</script>
<script>/* Boilerplate: script-position-annos */
"use strict";
{
function repositionAnnoPanels(){
const panels = [...document.querySelectorAll("[data-anno-for]")];
hydratePanels(panels);
let vSoFar = 0;
for(const panel of panels.sort(cmpTops)) {
if(panel.top < vSoFar) {
panel.top = vSoFar;
panel.style.top = vSoFar + "px";
}
vSoFar = panel.top + panel.height + 15;
}
}
function hydratePanels(panels) {
const main = document.querySelector("main");
let mainRect;
if(main) mainRect = main.getBoundingClientRect();
// First display them all, if they're not already visible.
for(const panel of panels) {
panel.classList.remove("unpositioned");
}
// Measure them all
for(const panel of panels) {
const dfn = document.getElementById(panel.getAttribute("data-anno-for"));
if(!dfn) {
console.log("Can't find the annotation panel target:", panel);
continue;
}
panel.dfn = dfn;
panel.top = window.scrollY + dfn.getBoundingClientRect().top;
let panelRect = panel.getBoundingClientRect();
panel.height = panelRect.height;
if(main) {
panel.overlappingMain = panelRect.left < mainRect.right;
} else {
panel.overlappingMain = false;
}
}
// And finally position them
for(const panel of panels) {
const dfn = panel.dfn;
if(!dfn) continue;
panel.style.top = panel.top + "px";
panel.classList.toggle("overlapping-main", panel.overlappingMain);
}
}

function cmpTops(a,b) {
return a.top - b.top;
}

window.addEventListener("load", repositionAnnoPanels);
window.addEventListener("resize", repositionAnnoPanels);
}
</script>
<script>/* Boilerplate: script-ref-hints */
"use strict";
{
Expand Down
57 changes: 0 additions & 57 deletions tests/github/whatwg/fullscreen/fullscreen.html
Original file line number Diff line number Diff line change
Expand Up @@ -1771,63 +1771,6 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
}
}
</script>
<script>/* Boilerplate: script-position-annos */
"use strict";
{
function repositionAnnoPanels(){
const panels = [...document.querySelectorAll("[data-anno-for]")];
hydratePanels(panels);
let vSoFar = 0;
for(const panel of panels.sort(cmpTops)) {
if(panel.top < vSoFar) {
panel.top = vSoFar;
panel.style.top = vSoFar + "px";
}
vSoFar = panel.top + panel.height + 15;
}
}
function hydratePanels(panels) {
const main = document.querySelector("main");
let mainRect;
if(main) mainRect = main.getBoundingClientRect();
// First display them all, if they're not already visible.
for(const panel of panels) {
panel.classList.remove("unpositioned");
}
// Measure them all
for(const panel of panels) {
const dfn = document.getElementById(panel.getAttribute("data-anno-for"));
if(!dfn) {
console.log("Can't find the annotation panel target:", panel);
continue;
}
panel.dfn = dfn;
panel.top = window.scrollY + dfn.getBoundingClientRect().top;
let panelRect = panel.getBoundingClientRect();
panel.height = panelRect.height;
if(main) {
panel.overlappingMain = panelRect.left < mainRect.right;
} else {
panel.overlappingMain = false;
}
}
// And finally position them
for(const panel of panels) {
const dfn = panel.dfn;
if(!dfn) continue;
panel.style.top = panel.top + "px";
panel.classList.toggle("overlapping-main", panel.overlappingMain);
}
}

function cmpTops(a,b) {
return a.top - b.top;
}

window.addEventListener("load", repositionAnnoPanels);
window.addEventListener("resize", repositionAnnoPanels);
}
</script>
<script>/* Boilerplate: script-ref-hints */
"use strict";
{
Expand Down
Loading

0 comments on commit 97ba679

Please sign in to comment.