drupal-civicrm/sites/all/modules/civicrm/bower_components/qunit/addons/step
2018-01-14 13:10:16 +00:00
..
qunit-step.js First commit 2018-01-14 13:10:16 +00:00
README.md First commit 2018-01-14 13:10:16 +00:00
step-test.js First commit 2018-01-14 13:10:16 +00:00
step.html First commit 2018-01-14 13:10:16 +00:00

QUnit.step() - A QUnit Addon For Testing execution in order

This addon for QUnit adds a step method that allows you to assert the proper sequence in which the code should execute.

Example:

test("example test", function () {
  function x() {
    QUnit.step(2, "function y should be called first");
  }
  function y() {
    QUnit.step(1);
  }
  y();
  x();
});