Yes! Or just use the integrated testsuite:
lib/js/test$ ant testserver for manual test and lib/js/test$ ant test with phantomjs -roger > -----Ursprüngliche Nachricht----- > Von: Andrew Grumet [mailto:aegru...@gmail.com] > Gesendet: Freitag, 23. Dezember 2011 10:30 > An: dev@thrift.apache.org > Betreff: Re: Javascript Async tests > > Ok, answering my own question for future searches. Callback support > requires the jquery option > > thrift -r --gen js:jquery ThriftTest.thrift > > > On Thu, Dec 22, 2011 at 4:48 PM, Andrew Grumet <aegru...@gmail.com> > wrote: > > > > > We're running some tests of the Javascript client > > (lib/js/test/test.js) and noticed that the Async tests ( module("Async") ) do > not appear to be > > running the supplied callbacks. For example, in this block > > > > test("Double", function() { > > expect( 1 ); > > > > QUnit.stop(); > > client.testDouble(3.14159265, function(result) { > > equals(result, 3.14159265); > > QUnit.start(); > > }); > > }); > > > > the second argument to client.testDouble is not executed. We can see > > the network call and response, and the synchronous call to > > client.testDouble passes. > > > > Checking the generated client code, we don't see evidence of support > > for this async mode. Should it work? > > > > Andrew > > > > > > > > > >