Repository navigation
fix(h5): accept valid zero and negative location coordinates - #19543
Jarvis636431 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Walkthrough
ChangesH5 chooseLocation 坐标处理
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19543 +/- ##
==========================================
+ Coverage 55.60% 55.82% +0.21%
==========================================
Files 467 467
Lines 25659 25662 +3
Branches 6416 6440 +24
==========================================
+ Hits 14268 14326 +58
- Misses 9399 9455 +56
+ Partials 1992 1881 -111
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
这个 PR 做了什么?
Fix H5 chooseLocation coordinate validation. Initial coordinates in the southern/western hemisphere were omitted from the map iframe URL, and selecting a point at latitude or longitude 0 incorrectly reported failure.
Use one numeric latitude/longitude range check for both initial coordinates and selected results. Preserve the explicit coord override, cancellation and submitting without a selection.
Adds 27 DOM regression tests covering negative/zero/boundary coordinates, missing and invalid values, map messages, iframe parameters and result callbacks. The original implementation fails 12 cases.
这个 PR 是什么类型?
这个 PR 涉及以下平台:
验证
Closes #19542
Summary by CodeRabbit
修复
coord可覆盖初始坐标生成的查询参数。测试