Bug Tracker

Ticket #14040 (closed bug: fixed)

Opened 14 months ago

Last modified 7 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 13 months ago by dmethvin

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to misc

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.

comment:2 Changed 7 months ago by cjqed

  • Status changed from open to closed
  • Resolution set to fixed

Tests: Avoid use of QUnit.reset() in tests by splitting them

Fix #14040 Close gh-1457

Changeset: 537e9ced6164074c32df429bb1fa4c30361aa711

comment:3 Changed 7 months ago by dmethvin

  • Milestone changed from None to 1.11/2.1
Note: See TracTickets for help on using tickets.