// Attempt to configure with a too-large canvas, which should
// fail due to device texture limits. canvas.width = 1970696937;
let expectedError;
try {
context.configure({
device,
format,
});
} catch (error) {
expectedError = error;
}
// Bug 1864904: This should become an "is".
todo_is(
typeof expectedError, "TypeError", "Failed configure should generate a TypeError."
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.