w3c/testharness.js — pull request #9 by tobie (2012-10-27 11:43:15+00:00)
Title: Allow async_test to also take a function as first argument.

This function is called with the test object as both its `this` object and first argument. This avoids cluttering the global scope with lots of references to test instances.

async_test(function(t) {
object.some_event = function() {
t.step(function (){assert_true(true); t.done();});
};
}, "Simple async test");