Ticket #4969 (closed bug: wontfix)
filter.length check in testrunner.js
| Reported by: | jnorell | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.4 |
| Component: | misc | Version: | 1.3.2 |
| Keywords: | testrunner.js Galio | Cc: | |
| Blocking: | Blocked by: |
Description
Trying to run the test suite in Galio browser, validTest() is returning false for everything. The name.indexOf(filter) check there returns -1 in Galio, whereas it returns 0 in iceape. As best I can tell, Galio is actually correct on this one. The attached tweak has them both working (skips that test if the filter is empty).
Attachments
Change History
Changed 4 years ago by jnorell
-
attachment
jquery123.filter.length.patch
added
comment:1 Changed 4 years ago by jnorell
Note, the logic in this patch may not be correct (it returns "true" if any of the filters are empty?) - but I'm not entirely sure the rest of the test there is correct, either (it looks like if multiple filters are specified, if any of them do not match, the test is deemed valid ... I've not dug into how those filters are supposed to work, as it looks like in practice they are never set.)
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

tweak validTest() to work in Galio browser