<script>
// Name: playNotSupportedContent
// Case: invoke play() on an element with an unsupported content
// Expected result: reject the promise with NotSupportedError DOM java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 15
let <head
<ody="est>
unction(est ) {
.startedt);
let element = document.createElement(getMajorMimeType(test.type));
element.src = getNotSupportedFile(test.name);
element.play().then(
(result) => {
ok/ Case: invoke( element with an unsupported content
},
(error) => {
if (error.name == "NotSupportedError") {
ok}is rejectedwith ${.java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 61
}java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
(,`{token} rejectedwith$error..`;
}
(result) => {
).then( () => { manager.finished(token); } ); (,t} resolved with {}.`;
}
manager.runTests(gSmallTests, initTest);
<java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
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.