1 /*global QUnit:false, module:false, test:false, asyncTest:false, expect:false*/
2 /*global start:false, stop:false ok:false, equal:false, notEqual:false, deepEqual:false*/
3 /*global notDeepEqual:false, strictEqual:false, notStrictEqual:false, raises:false*/
7 ======== A Handy Little QUnit Reference ========
8 http://docs.jquery.com/QUnit
16 equal(actual, expected, [message])
17 notEqual(actual, expected, [message])
18 deepEqual(actual, expected, [message])
19 notDeepEqual(actual, expected, [message])
20 strictEqual(actual, expected, [message])
21 notStrictEqual(actual, expected, [message])
22 raises(block, [expected], [message])
25 module('jQuery#awesome', {
27 this.elems = $('#qunit-fixture').children();
31 test('is chainable', 1, function() {
32 // Not a bad test to run on collection methods.
33 strictEqual(this.elems.awesome(), this.elems, 'should be chaninable');
36 test('is awesome', 1, function() {
37 strictEqual(this.elems.awesome().text(), 'awesomeawesomeawesome', 'should be thoroughly awesome');
40 module('jQuery.awesome');
42 test('is awesome', 1, function() {
43 strictEqual($.awesome(), 'awesome', 'should be thoroughly awesome');
46 module(':awesome selector', {
48 this.elems = $('#qunit-fixture').children();
52 test('is awesome', 1, function() {
53 // Use deepEqual & .get() when comparing jQuery objects.
54 deepEqual(this.elems.filter(':awesome').get(), this.elems.last().get(), 'knows awesome when it sees it');