Theseue 712ae56273 add
import
2012-08-23 13:32:56 +08:00
..
add
2012-08-23 13:32:56 +08:00
add
2012-08-23 13:32:56 +08:00
add
2012-08-23 13:32:56 +08:00
add
2012-08-23 13:32:56 +08: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();
});