What version of QUnit are you using? You need to be using a newer version - one that has the callback hooks in it to make something like this possible. At this point, if you want to use QUnit and/or test jQuery you should probably pull from the latest code in SVN.
--John On Thu, Aug 27, 2009 at 10:39 AM, kazhar<[email protected]> wrote: > > I just got to the same problem with the inject.js. > > The fx tests page seems to me like a bad choice, though - the > injection script does not find qUnit on the page and thus, test > results were not submitted. I had to add the following script in order > to make them bounce back: > > function runTest() { > _config.blocking = false; > var time = new Date(); > _config.fixture = document.getElementById('main').innerHTML; > _config.ajaxSettings = jQuery.ajaxSettings; > synchronize(function() { > time = new Date() - time; > jQuery("<div>").html(['<p class="result">Tests completed in ', > time, ' milliseconds.<br/>', > _config.stats.bad, ' tests of ', _config.stats.all, ' > failed.</p>'] > .join('')) > .appendTo("body"); > jQuery("#banner").addClass(_config.stats.bad ? "fail" : > "pass"); > > /* <what I added> */ > window.TestSwarm.submit({ fail: _config.stats.bad, total: > _config.stats.all }); > /* </what I added> */ > }); > } > > On Aug 27, 5:14 pm, John Resig <[email protected]> wrote: >> > We just setup a local instance and connected a few users and browsers. >> > We scheduled the test with the ?state=addjob page. I'm running a job >> > with tests from:http://jquery.com/test/?fx >> >> > The test in the iframe seem to be succesful: >> > Tests completed in 11268 milliseconds. 0 tests of 291 failed. >> >> > However the job status page shows all jobs resulted in "Error", if you >> > click the link the message states: >> > "Test Timed Out." >> >> You can't just point to a random test URL - the test suite page has to >> have the js/inject.js file added in. >> >> > On the home page, the High Scores all show negative numbers for users. >> >> That's weird, not sure why that's happening. >> >> --John > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TestSwarm" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/testswarm?hl=en -~----------~----~----~----~------~----~------~--~---
