Lines Matching refs:status
88 status: harness_status.structured_clone(),
312 status: harness_status.structured_clone(),
612 * immediately. If it returns without error, the test status is
614 * any other exception, the test status is set to ``FAIL``
622 tests.status.status = tests.status.ERROR;
623 tests.status.message = '`test` invoked after `promise_setup`';
641 tests.status.status = tests.status.ERROR;
642 tests.status.message = msg;
664 tests.status.status = tests.status.ERROR;
665 tests.status.message = '`async_test` invoked after `promise_setup`';
697 tests.set_status(tests.status.ERROR, msg);
787 * inherit the value and status from the given promise.
1027 * status of the test rather than the status of the harness.
1056 * the function will set the overall harness status to `ERROR`.
1091 tests.set_status(tests.status.ERROR,
1118 tests.set_status(tests.status.ERROR,
1133 * For single page tests this marks the test as complete and sets its status.
1139 // harness status is already set, the corresponding message is more
1141 if (tests.status.status === null) {
1142 tests.status.status = tests.status.ERROR;
1143 tests.status.message = "done() was called without first defining any tests";
1427 let status = Test.statuses.TIMEOUT;
1437 status = Test.statuses.PASS;
1440 status = Test.statuses.FAIL;
1448 tests.set_assert_status(status, stack);
2457 /** The test status code.*/
2458 this.status = this.NOTRUN;
2527 return this.status_formats[this.status];
2541 this._structured_clone.status = this.status;
2554 * exception, the :js:class:`Test` status is set to ``FAIL``.
2595 var status = e instanceof OptionalFeatureUnsupportedError ? this.PRECONDITION_FAILED : this.FAIL;
2599 this.set_status(status, message, stack);
2623 * the :js:class:`Test` status is set to ``FAIL``.
2649 * the :js:class:`Test` status is set to ``FAIL``. If it returns
2650 * without error the status is set to ``PASS``.
2833 * method in order to hide implementation details from the harness status
2867 Test.prototype.set_status = function(status, message, stack)
2869 this.status = status;
2875 * Manually set the test status to ``TIMEOUT``.
2886 * Manually set the test status to ``TIMEOUT``.
2897 * This sets the test status to ``PASS`` if no other status was
2901 * After setting the test status any test cleanup functions will
2920 this.status,
3017 tests.status.status = tests.status.ERROR;
3018 tests.status.stack = null;
3019 tests.status.message = "Test named '" + test.name +
3024 tests.status.message += ", and " + errors.length + " failed";
3025 tests.status.stack = ((typeof errors[0] === "object" &&
3033 tests.status.message += ", and " + bad_value_count +
3037 tests.status.message += ".";
3100 * test status in the parent realm). The `cleanup` method delegates to
3109 this.status = clone.status;
3126 return Test.prototype.status_formats[this.status];
3200 tests.set_status(tests.status.ERROR,
3232 if (tests.status.status === null &&
3233 data.status.status !== data.status.OK) {
3234 tests.set_status(data.status.status, data.status.message, data.status.stack);
3242 record.status = assert.status;
3282 /** The status code */
3283 this.status = null;
3321 status:this.status,
3330 return this.formats[this.status];
3350 this.status = null;
3358 status: this.status,
3413 this.status = new TestsStatus();
3472 this.status.status = e instanceof OptionalFeatureUnsupportedError ? this.status.PRECONDITION_FAILED : this.status.ERROR;
3473 this.status.message = String(e);
3474 this.status.stack = e.stack ? e.stack : null;
3491 Tests.prototype.set_status = function(status, message, stack)
3493 this.status.status = status;
3494 this.status.message = message;
3495 this.status.stack = stack ? stack : null;
3513 if (this.status.status === null) {
3531 this.status.status = this.status.ERROR;
3532 this.status.message = "Timeout while running cleanup for " +
3534 tests.status.stack = null;
3536 this.status.status = this.status.TIMEOUT;
3657 Tests.prototype.set_assert_status = function(status, stack) {
3659 assert_record.status = status;
3664 * Update the harness status to reflect an unrecoverable harness error that
3669 this.status.status = this.status.ERROR;
3734 if (this.status.status === null) {
3747 this.status.status = this.status.ERROR;
3748 this.status.message =
3753 this.status.status = this.status.OK;
3760 callback(this_obj.tests, this_obj.status, this_obj.asserts_run);
4114 var status = test.format_status();
4115 if (status_number.hasOwnProperty(status)) {
4116 status_number[status] += 1;
4118 status_number[status] = 1;
4122 function status_class(status)
4124 return status.replace(/\s/g, '').toLowerCase();
4131 var status = harness_status.format_status();
4134 "Harness status: ",
4135 ["span", {"class":status_class(status)},
4136 status
4146 if (harness_status.status === harness_status.ERROR) {
4160 var status = Test.prototype.status_formats[i];
4164 status_number[status] + " ",
4165 ["span", {"class":status_class(status)}, status]]]);
4264 status_class(Test.prototype.status_formats[assert.status]) + "'>" +
4266 status_class(Test.prototype.status_formats[assert.status]) + "'>" +
4267 Test.prototype.status_formats[assert.status] + "</td>" +
4756 var status = optional_unsupported ? test.PRECONDITION_FAILED : test.FAIL;
4757 test.set_status(status, message, stack);
4760 var status = optional_unsupported ? tests.status.PRECONDITION_FAILED : tests.status.ERROR;
4761 tests.status.status = status;
4762 tests.status.message = message;
4763 tests.status.stack = stack;