#14040 closed bug (fixed)
Tests: Replace QUnit.reset usage
Reported by: | jzaefferer | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.11/2.1 |
Component: | misc | Version: | 1.10.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
QUnit.reset is deprecated, and will be removed eventually: https://github.com/jquery/qunit/issues/354
jQuery Core currently uses QUnit.reset() within several tests, and uses it as a hook for custom resets. Both need to be replaced.
For the QUnit.reset usage within tests: Split those tests into individual test calls.
For the QUnit.reset "enhancement" in testrunner.js: Use QUnit.testDone(function() { ... }); for custom resets. This needs to happen after all direct usage for QUnit.reset is gone, to work properly.
I'm happy to help with this, but need support from someone who's (more) familiar with the testsuite.
Change History (3)
comment:1 Changed 10 years ago by
Component: | unfiled → misc |
---|---|
Priority: | undecided → high |
Status: | new → open |
comment:2 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Tests: Avoid use of QUnit.reset() in tests by splitting them
Fix #14040 Close gh-1457
Changeset: 537e9ced6164074c32df429bb1fa4c30361aa711
comment:3 Changed 10 years ago by
Milestone: | None → 1.11/2.1 |
---|
Yeah, those tests are from long ago and I'm not sure why they were done like that. Seems like it should be relatively easy to split them up.