LiTiang / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

QUnit.equals - TypeError is reported when the test fails #227

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.configure equiv.js and QUnitAdapter.js
2.check string using QUnit: equals(this.field.value, "TestString", "check ...");

What is the expected output? What do you see instead?

In case the check fails, I would expect to get a message telling me that fact. 
Instead, i get this message: "TypeError: Object does not support this property 
or method".

What version of the product are you using? On what operating system?

JsTestDriver 1.3.2 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by D.Witt...@gmx.de on 18 Apr 2011 at 1:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
During debugging session i could see, that inside of the fail-method of the 
runner.js file, the error is correct constructed and thrown. But inside of the 
catch-block of the runTest-method, the type of the error is suddenly 
"TypeError", the value of the description and message is "g' is undefined". 
Maybe this info helps.

Original comment by D.Witt...@gmx.de on 19 Apr 2011 at 7:38