question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`wheelPxPerZoomLevel` unit test always fails on Mac

See original GitHub issue

The last unit test in Map.ScrollWheelZoomSpec.js added by @Falke-Design always fails for me locally on Mac:

Firefox 105.0 (Mac OS 10.15) Map.ScrollWheelZoom changes the option 'wheelPxPerZoomLevel' FAILED
	Error: expected 1 to be above 1 (node_modules/expect.js/index.js:96)

We should figure out if it’s expected to fail and fix either the behavior of the test, making it more platform-agnostic.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mournercommented, Sep 27, 2022

@Falke-Design I don’t have a mouse, but scrolling on a trackpad says this:

User-agent ‘Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36’
Leaflet ‘1.9.1’
Win false
Gecko false
Chrome true
Edge false
Safari false
Retina true
wheelDeltaY 6
deltaMode 0
deltaY -2
deltaX -2
deltaZ 0
wheelDelta 6
detail 0
devicePixelRatio 2
Zoom delta 0
0reactions
mournercommented, Sep 27, 2022

@Falke-Design fails the same way in Firefox.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slow framework unit test failure (~5s) - Apple Developer
Starting from Xcode 12.4 (I think), failing unit tests in framework targets take about 5 seconds ... Takes 4.356 seconds to execute on...
Read more >
Java tests failing when running through Maven on MacOS ...
I'm currently seeing an issue with my Java 8/Kotlin unit tests while executing them with Maven. This started happening after upgrading to ...
Read more >
unit test fails to run - Visual Studio Feedback
When I try to run unit tests from the editor, either with the shortcut keys or the context menu, they do not work...
Read more >
Explore test results | IntelliJ IDEA Documentation - JetBrains
Use the following options on the Test Runner toolbar if you want to focus only on the failed tests or if you want...
Read more >
Effective Python Testing With Pytest
If you've written unit tests for your Python code before, ... You might want to write one test that always passes and one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found