Lines Matching refs:item
209 #handleReportItem(item) {
210 const isTopLevel = item.data.nesting === 0;
212 if (item.type === 'test:plan' && this.#skipReporting()) {
215 if (item.type === 'test:diagnostic' && this.#checkNestedComment(item.data.message)) {
219 if (item.data.details?.error) {
220 item.data.details.error = deserializeError(item.data.details.error);
222 if (item.type === 'test:pass' || item.type === 'test:fail') {
223 item.data.testNumber = isTopLevel ? (this.root.harness.counters.topLevel + 1) : item.data.testNumber;
226 name: item.data.name,
228 skipped: item.data.skip !== undefined,
229 isTodo: item.data.todo !== undefined,
230 passed: item.type === 'test:pass',
231 cancelled: kCanceledTests.has(item.data.details?.error?.failureType),
232 nesting: item.data.nesting,
233 reportedType: item.data.details?.type,
236 this.reporter[kEmitMessage](item.type, item.data);
238 #accumulateReportItem(item) {
239 if (item.type !== 'test:pass' && item.type !== 'test:fail') {
243 if (item.data.nesting === 0 && item.type === 'test:fail') {
253 addToReport(item) {
254 this.#accumulateReportItem(item);
256 ArrayPrototypePush(this.#reportBuffer, item);
260 this.#handleReportItem(item);
358 const item = deserializer.readValue();
359 this.addToReport(item);