-
Notifications
You must be signed in to change notification settings - Fork 20.6k
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
Limit all test suite selection operations to #qunit-fixture #2880
Comments
Why did you close this? It is a general hygiene ticket that should stay open until we are reasonably confident that there are no "others". |
I believe i have addressed your comment mentioned in this ticket description, aside from resolved cases there is no proof that such tests even exist, they might, but it is not determined, so i think we reached "reasonable" criteria, otherwise i don't understand how you want determine if those selectors are there. Also, i think bad hygiene is also to have tickets that are open forever, without any possibility of closing except for subjective feeling of confidence. However, if you strongly feel about this, please feel free to re-open. |
By looking through all the unit tests.
I agree, but closing it now is indistinguishable from "wontfix". The point here is to avoid re-occurrence, and if you're looking for an objective characterization, here you go:
|
The first of these should be discounted, because I've already found some offending examples:
I'll stop there, but you get the point. |
Even though for most of those tests it doesn't matter what element is taken, it should work for any of them, but now i understand your train of thought.
I would propose to do it gradually, since it could be a lot of work to do in action, one commit would be preferable, yeah, but it hard to do, for example i can take
Well, i always comment about such tests and fix a lot of them already, not even counting those aforementioned commits, so i think we no longer write such fragile tests. |
Hi, I decided to hijack limiting test suit operations to So, @gibson042 mentions attributes.js#L223 as one of the candidates for explicit limiting but not necesserily the first one. Then I look at the test above it and see an element with |
@all3fox This ticket is only about operation safety, so it's appropriate to leave selections like |
Ok, I did
I was left with:
My question now is: how do you want these fixed:
Personally, I do not understand the |
Explicit
|
Another offender is the "child and adjacent" selector test. Running the whole test suite in Chrome 48 almost always fails the |
Heh, that was actually the first identified offender: #2877 (comment) |
@mgol I see that the function How about adding the following logic to |
That doesn't work; |
Moved to roadmap |
For those that are explicitly document-scope, wrap with
supportjQuery( $jQueryResults ).filter( "#qunit-fixture *" )
(cf. #2877 (comment) ).The text was updated successfully, but these errors were encountered: