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
This kind of test (waiting for an error on resource loading)
t.it('Should support using external URL starting with // as resourceImagePath', async t => {
let fired;
const onError = event => {
t.is(event.target.src, location.protocol + '//foo.bar/bob.jpg');
fired = true;
};
document.body.addEventListener('error', onError, true);
scheduler = await t.getSchedulerAsync({
resourceImagePath : '//foo.bar/',
resources : [{name : 'Bob'}],
columns : [{type : 'resourceInfo']}, 1);
await t.waitFor(() => fired);
document.body.removeEventListener('error', onError, true);
});
fails when using code coverage, because (theoretically) the code coverage proxy tries to resolve the foo.bar domain and probably hangs on that, or waits a long time.
The text was updated successfully, but these errors were encountered:
This kind of test (waiting for an error on resource loading)
fails when using code coverage, because (theoretically) the code coverage proxy tries to resolve the
foo.bar
domain and probably hangs on that, or waits a long time.The text was updated successfully, but these errors were encountered: