ladybird/Tests/LibWeb/Text/data/window-barprops-popout-window.html
Totto16 11280897d3 LibWeb: Add Extended Tests for Window BarProps
Add Tests for Window BarProps in popout windows
2025-03-29 02:35:27 +00:00

28 lines
701 B
HTML

<!DOCTYPE html>
<script>
try {
const availableProps = [
"locationbar",
"menubar",
"personalbar",
"scrollbars",
"statusbar",
"toolbar",
];
let results = [];
for (const propName of availableProps) {
const windowProp = window[propName];
results.push(
`${propName} is BarProp: ${windowProp instanceof BarProp} visible: ${
windowProp.visible
}`
);
}
window.opener.postMessage(results.join("\n"), "*");
} catch (e) {
window.opener.postMessage(`ERROR: ${e}`, "*");
}
</script>