[qooxdoo-devel] Multimple asyncrhonous test
Brought to you by:
ecker,
martinwittemann
From: A M. Q. <ama...@gm...> - 2012-03-30 09:19:08
|
Hi all, We are writing some tests for our product and we need to do asyncrhonous test. We've found at your manual's page about "The qooxdoo Test Runner" ( http://manual.qooxdoo.org/1.6/pages/development/frame_apps_testrunner.html) how are asynchronous test mented to be implemented, but when we write two asynchronous tests one after the other: "test async": function() { > var self = this; > window.setTimeout(function() { > self.resume(function() { > this.assertTrue(true, "It should work."); > }, self); > }, 1000); > this.wait(25000); > }, > "test async2": function() { > var self = this; > window.setTimeout(function() { > self.resume(function() { > this.assertTrue(false, "It should fail."); > }, self); > }, 1000); > this.wait(25000); > } The throw two errors: Test failed: Timeout reached before resume() was called. - Asynchronous > Test Error > Test failed: resume() called before wait() As I understand, two .wait() orders collide. Is that the way asynchronous test ment to be written? Am I wrong on something? --- A. Matías Quezada |