Skip to content

Commit

Permalink
Updated results and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed Feb 24, 2024
1 parent 4ed8aff commit a6757db
Show file tree
Hide file tree
Showing 27 changed files with 46 additions and 47 deletions.
12 changes: 6 additions & 6 deletions test262/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<link rel="icon" href="../assets/logo.svg" type="image/svg+xml" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css"
integrity="sha256-MBffSnbbXwHCuZtgPYiwMQbfE7z+GOZ7fBPCNB06Z98="
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
integrity="sha256-PI8n5gCcz9cQqQXm3PEtDuPG8qx9oFsFctPg0S5zb8g="
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1/font/bootstrap-icons.min.css"
integrity="sha256-6MNujrdbV0Z7S927PzUMXOmMLwkKdsdD7XIl/w89HMQ="
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
integrity="sha256-9kPW/n5nn53j4WMRYAxe9c1rCY96Oogo/MKSVdKzPmI="
crossorigin="anonymous"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down Expand Up @@ -203,8 +203,8 @@ <h5 class="modal-title" id="modalTitle">Main branch progress</h5>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.min.js"
integrity="sha256-YMa+wAM6QkVyz999odX7lPRxkoYAan8suedu4k2Zur8="
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha256-CDOy6cOibCWEdsRiZuaHf8dSGGJRYuBGC+mjoJimHGw="
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js"></script>
Expand Down
1 change: 0 additions & 1 deletion test262/refs/heads/main/features.json

This file was deleted.

2 changes: 1 addition & 1 deletion test262/refs/heads/main/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/heads/main/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.10/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.10/results.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"c":"a2d8f7b7dbcb0ce1e9a8ce8d20272405ee856c13","u":"896994413cad849f470cec7757c4bb7d1b4ffc12","a":{"t":38706,"o":6960,"i":5748,"p":0}}]
[{"c":"2d8f7b7dbcb0ce1e9a8ce8d20272405ee856c13b","u":"896994413cad849f470cec7757c4bb7d1b4ffc12","a":{"t":38507,"o":6943,"i":5747,"p":8143}}]
2 changes: 1 addition & 1 deletion test262/refs/tags/v0.11/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.11/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.12/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.12/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.13/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.13/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.14/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.14/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.15/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.15/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.16/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.16/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17.1/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17.1/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17.2/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17.2/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17.3/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17.3/results.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17/latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test262/refs/tags/v0.17/results.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions test262/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const ignored = ["v0.17.1", "v0.17.2"];
const formatter = new Intl.NumberFormat("en-GB");
const esVersionPicker = document.getElementById("info-options-es-version");
const hidePassingSwitch = document.getElementById(
"info-options-hide-passing-switch"
"info-options-hide-passing-switch",
);

let hidePassingSuites = false;
Expand All @@ -29,7 +29,7 @@ loadMainData();
loadMainResults();

const response = await fetch(
"https://api.github.com/repos/boa-dev/boa/releases"
"https://api.github.com/repos/boa-dev/boa/releases",
);
const releases = await response.json();
releases.sort((a, b) => compareVersions(a.tag_name, b.tag_name) * -1);
Expand Down Expand Up @@ -72,25 +72,25 @@ const versionListHTMLItems = await Promise.all(
<span class="text-warning">${formatter.format(stats.i)}</span>
/
<span class="text-danger">${formatter.format(
stats.t - stats.o - stats.i
stats.t - stats.o - stats.i,
)}
${
stats.p !== 0
? ` (${formatter.format(
stats.p
stats.p,
)} <i class="bi-exclamation-triangle"></i>)`
: ""
}</span>
/
<b>${formatter.format(
Math.round((10000 * stats.o) / stats.t) / 100
Math.round((10000 * stats.o) / stats.t) / 100,
)}%</b>
</div>
<button type="button" class="btn btn-outline-primary" id="old-version-${tag}">
Test Results
</button>
</li>`;
})
}),
);

document.getElementById("old-versions-list").innerHTML =
Expand Down Expand Up @@ -225,30 +225,30 @@ function createInfoFromResults(resultsData, nodeID) {
</li>
<li class="list-group-item">
Passed tests: <span class="text-success">${formatter.format(
stats.o
stats.o,
)}</span>
</li>
<li class="list-group-item">
Ignored tests: <span class="text-warning">${formatter.format(
stats.i
stats.i,
)}</span>
</li>
<li class="list-group-item">
Failed tests: <span class="text-danger">${formatter.format(
stats.t - stats.o - stats.i
stats.t - stats.o - stats.i,
)}
${
stats.p !== 0
? ` (${formatter.format(
stats.p
stats.p,
)} <i class="bi-exclamation-triangle"></i>)`
: ""
}</span>
</li>
<li class="list-group-item">
Conformance: <b>${Math.round((10000 * stats.o) / stats.t) / 100}%</b>
</li>
`
`,
);
}

Expand Down Expand Up @@ -389,12 +389,12 @@ function addSuite(suiteName, suite, parentID, namespace, upstream) {
<span class="text-warning">${formatter.format(stats.i)}</span>
/
<span class="text-danger">${formatter.format(
stats.t - stats.o - stats.i
stats.t - stats.o - stats.i,
)}
${
stats.p !== 0
? ` (${formatter.format(
stats.p
stats.p,
)} <i class="bi-exclamation-triangle"></i>)`
: ""
}</span>
Expand Down Expand Up @@ -436,8 +436,8 @@ function addSuite(suiteName, suite, parentID, namespace, upstream) {
return `<a
title="${testName}"
class="card test embed-responsive ${style}${
panics ? "" : " embed-responsive-1by1"
}"
panics ? "" : " embed-responsive-1by1"
}"
target="_blank"
href="https://github.com/tc39/test262/blob/${upstream}/${namespace}/${testName}.js"
>${panics ? '<i class="bi-exclamation-triangle"></i>' : ""}</a>`;
Expand All @@ -458,7 +458,7 @@ function addSuite(suiteName, suite, parentID, namespace, upstream) {
subSuites[innerSuite],
newInnerID,
namespace + "/" + innerSuite,
upstream
upstream,
);
}
});
Expand Down

0 comments on commit a6757db

Please sign in to comment.