mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
script: document.visibilityState
and document.hidden
(#32635)
* Squashed commit of the following: commit 5e0ea9996cb0d8137c3e1cd04487a1065b61289d Author: Wu Yu Wei <yuweiwu@pm.me> Date: Thu Jul 11 13:37:51 2024 +0900 Move lint to new_inherited Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> commit a8cbfb1eef2650d153ef41c232d9e80e1118fc37 Merge: b819968f3e 7a33f8f008 Author: Wu Yu Wei <yuweiwu@pm.me> Date: Thu Jul 11 13:32:18 2024 +0900 Merge branch 'main' into visibility commit b819968f3eaa361c8a2cf3af679943ae2065ab32 Merge: eda2ec4c221c6b74e1f1
Author: Wu Wayne <yuweiwu@pm.me> Date: Tue Jul 9 14:26:43 2024 +0900 Merge branch 'main' into visibility commit eda2ec4c225c63236d6851ea525455cad8874ce5 Author: Wu Wayne <yuweiwu@pm.me> Date: Thu Jul 4 14:25:05 2024 +0900 Include page-visibility tests to wpt commit 9da7b4ee39b141e59e4a21a64445c4b08499463f Author: Wu Yu Wei <yuweiwu@pm.me> Date: Thu Jul 4 12:50:40 2024 +0900 Add TODO comment for future update commit 11f55fea3ead0c8fa07f16557a63cc6a77c15c3f Author: Wu Yu Wei <yuweiwu@pm.me> Date: Wed Jul 3 11:01:51 2024 +0900 Add spaces between steps commit 408c3e51f25867e85f894cd77a6355bc32f2aa00 Author: Wu Wayne <yuweiwu@pm.me> Date: Tue Jul 2 18:33:53 2024 +0900 Update MANIFEST.json commit 679fe4ffdd28554b11b4018395fac22a08ccbc34 Author: Wu Wayne <yuweiwu@pm.me> Date: Tue Jul 2 18:27:02 2024 +0900 Add VisibilityStateEntry to mozilla/interfaces.html commit 4a456a2b4a473fa795274edf56ecf660616f90eb Author: Wu Wayne <yuweiwu@pm.me> Date: Tue Jul 2 14:28:11 2024 +0900 Update meta results commit cd191447ff61de392526e00c13f765c2df7a269e Merge: 7ff480a698ad01342f00
Author: Ngo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me> Date: Tue Jul 2 13:47:49 2024 +0900 Merge branch 'main' into visibility commit 7ff480a698413ac5526edfb1b8731373bb9d04ae Author: Wu Yu Wei <yuweiwu@pm.me> Date: Tue Jul 2 13:12:44 2024 +0900 Update description text of update_visibility_state commit 0e496b7bce4fd5476a1919737b00e8f0c9e2fdc8 Author: Wu Yu Wei <yuweiwu@pm.me> Date: Tue Jul 2 12:59:40 2024 +0900 Add specification link to VisibilityStateEntry methods commit 3e4a061450621bd17f19ff81099dd4daaeaea478 Author: Wu Yu Wei <yuweiwu@pm.me> Date: Tue Jul 2 12:31:53 2024 +0900 Add descriptive text to each step commit 8bbdfcae97db5002b09e5f5ecec6ae80d080dc95 Author: Wu Wayne <yuweiwu@pm.me> Date: Fri Jun 28 19:15:34 2024 +0900 mach fmt commit dc1c7a4aec6aba56af7afcfee6feadbee242a643 Author: Wu Wayne <yuweiwu@pm.me> Date: Fri Jun 28 19:01:00 2024 +0900 Add update_visibility_state commit 6aa18143319044dc084a9585ab064cd853bccc21 Author: Wu Wayne <yuweiwu@pm.me> Date: Fri Jun 28 16:06:25 2024 +0900 Add VisibilityStateEntry.webidl commit 638ae3cd563004334d35cc3fbdc1f918d29833d0 Author: Wu Yu Wei <yuweiwu@pm.me> Date: Fri Jun 28 13:39:29 2024 +0900 Add visibilityState and hidden in Document.webidl Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Move creation into reflect call Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> --------- Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
This commit is contained in:
parent
b206a0f4a3
commit
40bac8c3df
15 changed files with 186 additions and 63 deletions
2
tests/wpt/include.ini
vendored
2
tests/wpt/include.ini
vendored
|
@ -190,6 +190,8 @@ skip: true
|
|||
skip: true
|
||||
[submission]
|
||||
skip: true
|
||||
[page-visibility]
|
||||
skip: false
|
||||
[performance-timeline]
|
||||
skip: false
|
||||
[permissions]
|
||||
|
|
|
@ -1436,36 +1436,6 @@
|
|||
[SVGElement interface: attribute onbeforetoggle]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface object name]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: existence and properties of interface prototype object's "constructor" property]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: attribute name]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: attribute entryType]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: attribute startTime]
|
||||
expected: FAIL
|
||||
|
||||
[VisibilityStateEntry interface: attribute duration]
|
||||
expected: FAIL
|
||||
|
||||
[ImageBitmap interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2452,12 +2422,6 @@
|
|||
[Window interface: calling structuredClone(any, optional StructuredSerializeOptions) on window with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: attribute hidden]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: attribute visibilityState]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: attribute onvisibilitychange]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2467,12 +2431,6 @@
|
|||
[Document interface: attribute oncontextrestored]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "hidden" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "visibilityState" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "onvisibilitychange" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2482,12 +2440,6 @@
|
|||
[Document interface: iframe.contentDocument must inherit property "oncontextrestored" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "hidden" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "visibilityState" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "onvisibilitychange" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -2497,12 +2449,6 @@
|
|||
[Document interface: new Document() must inherit property "oncontextrestored" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: documentWithHandlers must inherit property "hidden" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: documentWithHandlers must inherit property "visibilityState" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: documentWithHandlers must inherit property "onvisibilitychange" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
|
3
tests/wpt/meta/page-visibility/iframe-session-history.html.ini
vendored
Normal file
3
tests/wpt/meta/page-visibility/iframe-session-history.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[iframe-session-history.html]
|
||||
[pagehide should be called before visibilitychange, and visibilityState should be set to hidden at the right time]
|
||||
expected: FAIL
|
4
tests/wpt/meta/page-visibility/iframe-unload.html.ini
vendored
Normal file
4
tests/wpt/meta/page-visibility/iframe-unload.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[iframe-unload.html]
|
||||
expected: TIMEOUT
|
||||
[visibilitychange fires on unload with iframes]
|
||||
expected: TIMEOUT
|
4
tests/wpt/meta/page-visibility/onvisibilitychange.html.ini
vendored
Normal file
4
tests/wpt/meta/page-visibility/onvisibilitychange.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[onvisibilitychange.html]
|
||||
expected: TIMEOUT
|
||||
[onvisibilitychange attribute is a proper event handler]
|
||||
expected: NOTRUN
|
9
tests/wpt/meta/page-visibility/test_child_document.html.ini
vendored
Normal file
9
tests/wpt/meta/page-visibility/test_child_document.html.ini
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
[test_child_document.html]
|
||||
[document.visibilityState for frame with no style attribute == visible]
|
||||
expected: FAIL
|
||||
|
||||
[document.visibilityState for frame with 'display:none' style == visible]
|
||||
expected: FAIL
|
||||
|
||||
[document.visibilityState for frame with 'visibility:hidden' style == visible]
|
||||
expected: FAIL
|
4
tests/wpt/meta/page-visibility/unload-bubbles.html.ini
vendored
Normal file
4
tests/wpt/meta/page-visibility/unload-bubbles.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[unload-bubbles.html]
|
||||
expected: TIMEOUT
|
||||
[visibilitychange event bubbles when fired on unload]
|
||||
expected: TIMEOUT
|
4
tests/wpt/meta/page-visibility/unload.html.ini
vendored
Normal file
4
tests/wpt/meta/page-visibility/unload.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[unload.html]
|
||||
expected: TIMEOUT
|
||||
[visibilitychange fires on unload]
|
||||
expected: TIMEOUT
|
2
tests/wpt/mozilla/meta/MANIFEST.json
vendored
2
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -13434,7 +13434,7 @@
|
|||
]
|
||||
],
|
||||
"interfaces.html": [
|
||||
"6f8b7beaa36046d8ade72a13aee82edd4fabe314",
|
||||
"d4daa95cfe84f1ffd77d0b631e67deb778db5fc3",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
|
|
|
@ -252,6 +252,7 @@ test_interfaces([
|
|||
"ValidityState",
|
||||
"VideoTrack",
|
||||
"VideoTrackList",
|
||||
"VisibilityStateEntry",
|
||||
"WebAssembly",
|
||||
"WebGLRenderingContext",
|
||||
"WebGLUniformLocation",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue