Rename original window_resizeTo.html to window_resize_event.html & Fix wrong usage of innerHeight & add new test (#37856)

1. rename original `window_resizeTo.html` to `window_resize_event.html`
to reflect the purpose. Also change {innerWidth, innerHeight} to
{outerWidth, outerHeight} to match spec.
2. Add a new test `window_resizeTo.html` for
https://github.com/servo/servo/pull/37848

Testing: new test always fails because of
https://github.com/servo/servo/issues/37824, which gives inaccurate
outerHeight.

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-07-04 23:41:11 +08:00 committed by GitHub
parent 19ceccc8eb
commit a81ddd5c18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 41 additions and 13 deletions

View file

@ -14430,7 +14430,14 @@
]
],
"window_resizeTo.html": [
"3f6c5a610d52b64bf4457d478b929e95d79e9ab8",
"d104be2bc840eecc7c32e27a6fdf1850d945f1e5",
[
null,
{}
]
],
"window_resize_event.html": [
"68222f978909022ae1abfbdce6c4ea1c5787c554",
[
null,
{}

View file

@ -0,0 +1,3 @@
[window_resizeTo.html]
[Correctly resize outerWidth and outerHeight]
expected: FAIL