mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
LibWeb: Implement BarProp properties for Window
This commit is contained in:
parent
ad634897b8
commit
b66e7ac1ba
Notes:
github-actions[bot]
2025-03-29 02:36:35 +00:00
Author: https://github.com/Totto16
Commit: b66e7ac1ba
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3810
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/tcl3 ✅
13 changed files with 201 additions and 0 deletions
6
Tests/LibWeb/Text/expected/HTML/window-barprops.txt
Normal file
6
Tests/LibWeb/Text/expected/HTML/window-barprops.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
locationbar is BarProp: true visible: true
|
||||
menubar is BarProp: true visible: true
|
||||
personalbar is BarProp: true visible: true
|
||||
scrollbars is BarProp: true visible: true
|
||||
statusbar is BarProp: true visible: true
|
||||
toolbar is BarProp: true visible: true
|
|
@ -23,6 +23,7 @@ AudioParam
|
|||
AudioScheduledSourceNode
|
||||
AudioTrack
|
||||
AudioTrackList
|
||||
BarProp
|
||||
BaseAudioContext
|
||||
BeforeUnloadEvent
|
||||
BigInt
|
||||
|
|
23
Tests/LibWeb/Text/input/HTML/window-barprops.html
Normal file
23
Tests/LibWeb/Text/input/HTML/window-barprops.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const availableProps = [
|
||||
"locationbar",
|
||||
"menubar",
|
||||
"personalbar",
|
||||
"scrollbars",
|
||||
"statusbar",
|
||||
"toolbar",
|
||||
];
|
||||
|
||||
for (const propName of availableProps) {
|
||||
const windowProp = window[propName];
|
||||
println(
|
||||
`${propName} is BarProp: ${windowProp instanceof BarProp} visible: ${
|
||||
windowProp.visible
|
||||
}`
|
||||
);
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue