-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix base URL tests to not self-interfere #2085
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
Conversation
|
Critic review: https://critic.hoppipolla.co.uk/r/5726 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
I would prefer to never have the critic bot comment or email on my PRs. Is there a way I can do that apart from spam filtering? |
Commented on IRC; pasting in here.
Maybe @jgraham has other suggestions. |
|
I don't see how this is correct. Don't a lot of tests depend on the base URL defaulting? |
Where? There are only 5 tests in the file this change is patching. |
|
I thought this was changing something in |
|
This won't work if any of the assertions fail. You should add |
Without this change, the document's base URL is set to "/foo/bar" for the whole testing cycle. This then infects future tests, which assume that window.location is equal to document.baseURI, when they pass the former to assert_resolve_url.
|
Fixed. While we are here, there are a couple issues with
|
Fix base URL tests to not self-interfere; r=Ms2ger
|
Feel free to write a PR for those :) |
Without this change, the document's base URL is set to "/foo/bar" for the whole testing cycle. This then infects future tests, which assume that window.location is equal to document.baseURI, when they pass the former to assert_resolve_url.