Commit | Line | Data |
---|---|---|
7f254ad8 AE |
1 | QUnit.step() - A QUnit Addon For Testing execution in order |
2 | ============================================================ | |
3 | ||
4 | This addon for QUnit adds a step method that allows you to assert | |
5 | the proper sequence in which the code should execute. | |
6 | ||
7 | Example: | |
8 | ||
9 | test("example test", function () { | |
10 | function x() { | |
11 | QUnit.step(2, "function y should be called first"); | |
12 | } | |
13 | function y() { | |
14 | QUnit.step(1); | |
15 | } | |
16 | y(); | |
17 | x(); | |
18 | }); |