mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibWeb: Make window.clientInformation [Replaceable] per spec IDL
This commit is contained in:
committed by
Alexander Kalenik
parent
6dfa6993e5
commit
8d8aa964da
Notes:
github-actions[bot]
2024-12-05 21:10:45 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/8d8aa964da7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2782 Reviewed-by: https://github.com/gmta ✅
@@ -0,0 +1,8 @@
|
||||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
|
||||
<script src="../../../../resources/testharness.js"></script>
|
||||
<script src="../../../../resources/testharnessreport.js"></script>
|
||||
|
||||
<div id=log></div>
|
||||
<script src="../../../../html/webappapis/system-state-and-capabilities/the-navigator-object/clientinformation.window.js"></script>
|
||||
@@ -0,0 +1,8 @@
|
||||
test(() => {
|
||||
assert_equals(window.clientInformation, window.navigator);
|
||||
}, "window.clientInformation exists and equals window.navigator");
|
||||
|
||||
test(() => {
|
||||
window.clientInformation = 1;
|
||||
assert_equals(window.clientInformation, 1);
|
||||
}, "window.clientInformation is Replaceable");
|
||||
Reference in New Issue
Block a user