You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee98fc5
Browse filesBrowse the repository at this point in the historyBrowse files
it('names what the page did with each event when it says the runner widened a gap: held until its listeners ran, busy until its main thread was free',()=>{
115
+
// The gap ending at event 10 widened 6 ms while the page's listeners took
116
+
// half a ms each: the runner's, as before, but the error now shows that
117
+
// the page's render after event 9 kept its main thread for 14 ms.
'the page held each event 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ms and was busy 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 14, 0.5, 0.5, 0.5 ms after its stamp',
131
+
);
132
+
}
133
+
// Without the page's own record, the message is the gaps alone.
`the page received this gesture off its scripted pacing: ${reason} (scripted gaps ${formatGaps(scriptedGaps)} ms; received ${formatGaps(receivedGaps)} ms)`,
177
+
`the page received this gesture off its scripted pacing: ${reason} (scripted gaps ${formatGaps(scriptedGaps)} ms; received ${formatGaps(receivedGaps)} ms${formatPageTimes(page)})`,
158
178
);
159
179
this.name='TouchPacingError';
160
180
this.scriptedGaps=scriptedGaps;
161
181
this.receivedGaps=receivedGaps;
182
+
this.page=page;
162
183
}
163
184
}
164
185
@@ -171,17 +192,20 @@ export class TouchPacingError extends Error {
171
192
exportclassTouchPageStallErrorextendsError{
172
193
readonlyscriptedGaps: readonlynumber[];
173
194
readonlyreceivedGaps: readonlynumber[];
195
+
readonlypage: TouchPageTimes;
174
196
constructor(
175
197
reason: string,
176
198
scriptedGaps: readonlynumber[],
177
199
receivedGaps: readonlynumber[],
200
+
page: TouchPageTimes=NO_PAGE_TIMES,
178
201
){
179
202
super(
180
-
`the page's own handling put this gesture off its scripted pacing: ${reason} (scripted gaps ${formatGaps(scriptedGaps)} ms; received ${formatGaps(receivedGaps)} ms)`,
203
+
`the page's own handling put this gesture off its scripted pacing: ${reason} (scripted gaps ${formatGaps(scriptedGaps)} ms; received ${formatGaps(receivedGaps)} ms${formatPageTimes(page)})`,
181
204
);
182
205
this.name='TouchPageStallError';
183
206
this.scriptedGaps=scriptedGaps;
184
207
this.receivedGaps=receivedGaps;
208
+
this.page=page;
185
209
}
186
210
}
187
211
@@ -207,7 +231,12 @@ export function checkTouchPacing(
0 commit comments