-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen orientation lock: remove bad 'hidden' tests #38511
Conversation
@@ -14,48 +14,22 @@ | |||
|
|||
promise_test(async (t) => { | |||
const { minimize, restore } = window_state_context(t); | |||
t.add_cleanup(restore); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
window_state_context
adds resotre()
as clean up method. This is unnecessary. See #38031
function window_state_context(t) {
let rect = null;
let state = "restored";
t.add_cleanup(async () => {
if (state === "minimized")
await restore();
});
I guess that you want to call orientation.unlcok
as clean up. You should add t.add_cleanup(makeCleanup());
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for checking that.
* Screen orientation lock: remove bad 'hidden' tests * Update screen-orientation/hidden_document.html * Update screen-orientation/hidden_document.html
As discussed in w3c/screen-orientation#232