Skip to content
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

Recreate #15394 #20146

Merged
merged 2 commits into from Nov 15, 2019
Merged

Recreate #15394 #20146

merged 2 commits into from Nov 15, 2019

Conversation

marcoscaceres
Copy link
Contributor

@marcoscaceres marcoscaceres commented Nov 7, 2019

closes #15394

Recreated #15394 because we didn't have write access and it had strange merge conflicts.

@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request besides its author. Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing (web client) to get help with this. Thank you!

@@ -25,5 +28,6 @@
assert_equals(message.data, orientation, "subframe receives orientation change event");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious; if this asserts here, what state is the browser left in (we don't reach screen.orientation.unlock() or document.exitFullscreen(), right?)? Could this affect subsequent tests (@foolip ?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t.add_cleanup is used in many fullscreen tests and would be a good idea here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this then try/catch and call t.add_cleanup?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No try/catch. Add t.add_cleanup as early as possible (right after requesting fullscreen). It will run the cleanup when the test is considered done, regardless of test result.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't trust bless no to throw :) ... so I put the cleanup at the top of each test. Hope that's ok.

await test_driver.bless("request fullscreen", () => {
return document.documentElement.requestFullscreen();
});
let orientations = [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, I reformatted this file without realizing.... everything below changed is just prettier doing its thing.

@zcorpan zcorpan merged commit b222302 into master Nov 15, 2019
@zcorpan zcorpan deleted the marcoscaceres-patch-2 branch November 15, 2019 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants