MCPcopy Create free account
hub / github.com/microsoft/Webwright / loadFile

Function loadFile

assets/compare_trajectory/app.js:2023–2035  ·  view source on GitHub ↗
(side, file)

Source from the content-addressed store, hash-verified

2021 }
2022 },
2023 async loadFile(side, file) {
2024 this.errors[side] = '';
2025 this.attachmentErrors[side] = '';
2026 try {
2027 const text = await file.text();
2028 const trace = normalizeTrace(text, file.name, file.path || '', side);
2029 this[side] = trace;
2030 this.enrichTraceTokens(trace);
2031 } catch (error) {
2032 this[side] = null;
2033 this.errors[side] = error && error.message ? error.message : 'Failed to parse file';
2034 }
2035 },
2036 filteredEvents(trace) {
2037 if (!trace) {
2038 return [];

Callers

nothing calls this directly

Calls 1

normalizeTraceFunction · 0.85

Tested by

no test coverage detected