-
Notifications
You must be signed in to change notification settings - Fork 781
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
UI doesn't reflect actual value of custom checkboxes #1792
Comments
There is an ugly inter-dependency here:
Up until recently the above was in relative harmony based on the fact that /src/core/browser/browser-runner.js simply did these two in their appropiate order at https://github.com/qunitjs/qunit/blob/3.0.0-alpha.1/src/browser/browser-runner.js#L77-L79 initUrlConfig(QUnit);
// …
QUnit.reporters.html.init(QUnit); This fell apart over two commits:
|
The reason I found this bug, by the way, is because I'm working on rendering the UI immediately as part of qunit.js instead of waiting for window.onload. At least for cases where We could try to fix the execution order here, but maybe there's a way we can untangle this knot. We use So we reliably know which checkboxes need to be displayed, regardless of internal ordering of "begin" callbacks. What we don't reliably know is the value of those checkboxes. At glance, it seems like we can avoid all this drama by simply reading the intended value of the checkbox state from Not exactly. The reason we read from What we could do, is change HtmlReporter to read from |
Tell us about your runtime:
What are you trying to do?
What did you expect to happen?
?foo
What actually happened?
The runner is parsing and reflecting the value correctly at runtime, but the UI isn't reflecting that. The checkbox stays off even though the address bar and test execution is correctly running with its actual enabled value.
?foo
The text was updated successfully, but these errors were encountered: