-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java][BiDi] emulation: allow passing null to GeolocationOverride #16594
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
Conversation
PR Compliance Guide 🔍(Compliance updated until commit cff7bdc)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 7b89898
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
navin772
left a comment
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.
LGTM!
User description
🔗 Related Issues
💥 What does this PR do?
Allows passing
nulltosetGeolocationOverride's coord parameter as per the W3C spec - https://w3c.github.io/webdriver-bidi/#command-emulation-setGeolocationOverrideUses
assertThatinstead ofassert🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix, Tests
Description
Allow passing null to GeolocationCoordinates parameter per W3C spec
Replace legacy assert statements with assertThat for better test clarity
Add test case for resetting geolocation override with null coordinates
Diagram Walkthrough
File Walkthrough
SetGeolocationOverrideParameters.java
Allow null coordinates in geolocation overridejava/src/org/openqa/selenium/bidi/emulation/SetGeolocationOverrideParameters.java
handling
SetGeolocationOverrideTest.java
Modernize assertions and add null coordinates testjava/test/org/openqa/selenium/bidi/emulation/SetGeolocationOverrideTest.java
assertions
canSetGeolocationOverrideWithCoordinatesInContext test
canSetGeolocationOverrideWithMultipleUserContexts test
verify null coordinate handling