+test("delay()", function() {
+ expect(2);
+ stop();
+
+ var foo = jQuery({}), run = 0;
+
+ foo.delay(100).queue(function(){
+ run = 1;
+ ok( true, "The function was dequeued." );
+ start();
+ });
+
+ equals( run, 0, "The delay delayed the next function from running." );
+});
+