Skip to content

Commit

Permalink
Load testing HTML files
Browse files Browse the repository at this point in the history
  • Loading branch information
UO289930 committed Apr 29, 2024
1 parent 75aaef9 commit 137000e
Show file tree
Hide file tree
Showing 322 changed files with 153,823 additions and 0 deletions.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<testsuite name="wiq.RecordedSimulation" tests="0" errors="0" failures="0" time="0">

</testsuite>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function parentId(name) {
return "parent-" + name;
}

function isEllipsed(name) {
const child = document.getElementById(name);
const parent = document.getElementById(parentId(name));
const emptyData = parent.getAttribute("data-content") === "";
const hasOverflow = child.clientWidth < child.scrollWidth;

if (hasOverflow) {
if (emptyData) {
parent.setAttribute("data-content", name);
}
} else {
if (!emptyData) {
parent.setAttribute("data-content", "");
}
}
}

function ellipsedLabel ({ name, parentClass = "", childClass = "" }) {
const child = "<span onmouseover='isEllipsed(\"" + name + "\")' id='" + name + "' class='ellipsed-name " + childClass + "'>" + name + "</span>";

return "<span class='" + parentClass + "' id='" + parentId(name) + "' data-toggle='popover' data-placement='right' data-container='body' data-content=''>" + child + "</span>";
}
Loading

0 comments on commit 137000e

Please sign in to comment.