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
Tests fail in mobile browers #908
Comments
The tests 47, 51, 52, 53, use As for 64, which of the 2 tests failed? |
When I separately rerun 47, 51, 52, 53 they succeed, but 51 does not. 64.1 ("can grab the function names of any passed -in object") fails, 64.2 does not fail. In any case false fails are irritating because something which is not working on those mobile devices for unknown reasons uses underscore and other libraries. (http://szabyg.github.com/annotate.js/) |
I'd love to bulletproof the setTimeout based tests a bit more -- perhaps just adding more time would do it (although it would slow down the suite). |
I've done some work on this in Lo-Dash, adding time helps a bit (though I still run into false fails from time to time), but avoiding exact counts is the biggest bet. For example if a test should just execute more than once, checking that |
I'd be wary -- given that some of our debounce-ish bugs have to do with the exact number of times it should be triggering within a given time window. Very annoying though... |
@akuckartz Can you run this page in Andriod 2.2.1: |
I get this using the Android browser which is part of Android 2.2.1:
(Firefox 18 Beta got the expected results) |
I wonder what |
@caseywebdev It's equivalent to |
Kinky! |
@akuckartz Ok, thanks, can you run this too http://jsbin.com/onogad/2 |
@jashkenas Found it. The minified Underscore has the w.isFunction = function (n) {return "function" == typeof n} |
@jdalton The result is:
|
The minified version has the |
@jashkenas Lo-Dash intentionally uses dead-code removal in its build, but just happened to avoid complications with a check like: if (isFunction(/x/)) { |
Thanks. Sounds like it's time to bump a release. |
This issue is resolved. |
@jashkenas please update the site with the rebuilt minified file. |
The following tests fail when using the Android Brower which is part of Android 2.2.1 on a Samsung Galaxy S:
The following tests fail when using Firefox 18 Beta on the same device:
51, 52, 53
The following tests fail when using Opera Mobile 12.10 on the same device:
51, 52
No failed tests are reported by the Windows desktop versions of Firefox 17.0.1 and Chrome 25.0.
The text was updated successfully, but these errors were encountered: