| Testing the functions of WI.AuditTestCaseResult. |
| |
| |
| == Running test suite: AuditTestCaseResult |
| -- Running test case: AuditTestCaseResult.fromPayload.nullObject |
| null |
| |
| -- Running test case: AuditTestCaseResult.fromPayload.nonObject |
| null |
| |
| -- Running test case: AuditTestCaseResult.fromPayload.emptyObject |
| null |
| |
| -- Running test case: AuditTestCaseResult.fromPayload.invalidTopLevelMembers |
| null |
| |
| -- Running test case: AuditTestCaseResult.fromPayload.valid |
| { |
| "type": "test-case-result", |
| "name": "valid test result name", |
| "level": "pass" |
| } |
| |
| -- Running test case: AuditTestCaseResult.fromPayload.validWithInvalidOptionals |
| WARN: Audit Warning: "validWithInvalidOptionals test result name" has a non-object "data" value |
| WARN: Audit Warning: "validWithInvalidOptionals test result name" has a non-object "metadata" value |
| WARN: Audit Warning: "validWithInvalidOptionals test result name" has a non-string "description" value |
| { |
| "type": "test-case-result", |
| "name": "validWithInvalidOptionals test result name", |
| "level": "pass" |
| } |
| |
| -- Running test case: AuditTestCaseResult.fromPayload.validWithInvalidSubOptionals |
| WARN: Audit Warning: "validWithInvalidSubOptionals test result name" has a non-object "metadata.startTimestamp" value |
| WARN: Audit Warning: "validWithInvalidSubOptionals test result name" has a non-object "metadata.asyncTimestamp" value |
| WARN: Audit Warning: "validWithInvalidSubOptionals test result name" has a non-object "metadata.endTimestamp" value |
| WARN: Audit Warning: "validWithInvalidSubOptionals test result name" has a non-object "metadata.url" value |
| { |
| "type": "test-case-result", |
| "name": "validWithInvalidSubOptionals test result name", |
| "description": "validWithInvalidSubOptionals test result description", |
| "level": "pass" |
| } |
| |
| -- Running test case: AuditTestCaseResult.fromPayload.validWithValidSubOptionals |
| { |
| "type": "test-case-result", |
| "name": "validWithValidSubOptionals test result name", |
| "description": "validWithValidSubOptionals test result description", |
| "level": "pass", |
| "data": { |
| "domNodes": [ |
| "validWithValidSubOptionals test result domNode" |
| ], |
| "domAttributes": [ |
| "validWithValidSubOptionals test result domAttribute" |
| ], |
| "errors": [ |
| "validWithValidSubOptionals test result error" |
| ] |
| }, |
| "metadata": { |
| "startTimestamp": "0001-01-01T00:00:00.000Z", |
| "asyncTimestamp": "0002-01-01T00:00:00.000Z", |
| "endTimestamp": "0003-01-01T00:00:00.000Z", |
| "url": "validWithValidSubOptionals test result url" |
| } |
| } |
| |