jooking / closure-library

Automatically exported from code.google.com/p/closure-library
Apache License 2.0
0 stars 1 forks source link

Failed AsyncTestCase displayed as "PASSED" #535

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the animationdelay_test.html, simply change line 66 to assertEqual(1, 
callCount) to make this test fail. Run it and the output is:
3 of 3 tests run in 1520ms.
3 passed, 0 failed.
507 ms/test. 34 files loaded.
.
10:37:12.412  Start
10:37:12.914  testAlwaysUseGoogNowForHandlerTimestamp : PASSED
10:37:13.420  testStart : PASSED
10:37:13.929  testStop [waiting for delay] : FAILED (run individually)
10:37:13.929  ERROR in testStop [waiting for delay]
Expected <1> (Number) but was <0> (Number)
> _assert at 
file:///D:/opensource/closure/closure/goog/testing/asynctestcase.js:560:26
> assertEquals at 
file:///D:/opensource/closure/closure/goog/testing/asserts.js:374:3
10:37:13.931  testStop : PASSED
10:37:13.931  Done

What is the expected output? What do you see instead?
The expected output is testStop : FAILED. However it displays both failed and 
passed.

What version of the product are you using? On what operating system?
r2506, windows 7, chromium 26.0.1378.0 (175519)

Please provide any additional information below.

Note: we cannot accept patches without the contributor license agreement
being signed. See http://code.google.com/p/closure-
library/wiki/Contributors for more info.

Original issue reported on code.google.com by arthas...@gmail.com on 6 Feb 2013 at 3:41