Lines Matching refs:errors
15 if (validator.errors.length != 0) {
16 LOG("Got unexpected errors");
17 for (var i = 0; i < validator.errors.length; i++) {
18 LOG(validator.errors[i].message + " path: " + validator.errors[i].path);
25 function assertNotValid(type, instance, schema, errors, types) {
30 AssertTrue(validator.errors.length === errors.length);
32 for (var i = 0; i < errors.length; i++) {
33 if (validator.errors[i].message == errors[i]) {
34 LOG("Got expected error: " + validator.errors[i].message +
35 " for path: " + validator.errors[i].path);
37 LOG("Missed expected error: " + errors[i] + ". Got: " +
38 validator.errors[i].message + " instead.");