Ticket #4350 (closed defect: fixed)
[dojox.validate] d.validation.tests fails to run most of tests
| Reported by: | guest | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | TestFramework | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: | bookstack@… |
Description
Test is against r10412, Firefox 2.0.0.6 on Genoo.
When runTests.html is rendered, all test cases consume NaN ms except isText, isIpAddress. And if I toggle test.f and test.t in tests/creditCard.js as this:
Index: creditcard.js =================================================================== --- creditcard.js (revision 10412) +++ creditcard.js (working copy) @@ -5,12 +5,12 @@
[{
name:"isValidLuhn", runTests: function(tests) {
- tests.t(dojox.validate.isValidLuhn('5105105105105100')); //test string input - tests.t(dojox.validate.isValidLuhn('5105-1051 0510-5100')); //test string input with dashes and spaces (commonly used when entering card #'s) + tests.f(dojox.validate.isValidLuhn('5105105105105100')); //test string input + tests.f(dojox.validate.isValidLuhn('5105-1051 0510-5100')); //test string input with dashes and spaces (commonly used when entering card #'s)
tests.t(dojox.validate.isValidLuhn(38520000023237)); //test numerical input as well tests.f(dojox.validate.isValidLuhn(3852000002323)); //testing failures tests.t(dojox.validate.isValidLuhn(18)); //length doesnt matter
- tests.f(dojox.validate.isValidLuhn(818181)); //short length failure + tests.t(dojox.validate.isValidLuhn(818181)); //short length failure
}
}, {
The dojox.validate.tests.creditcard still succeeded.It is supposed to fail.