</div>
<pre id="test">
</pre>
<script type="application/javascript">
/* global TestFunctions */
SimpleTest.waitForExplicitFinish();
async function runTests() {
await SpecialPowers.pushPrefEnv({set: [["dom.expose_test_interfaces", true]]});
var t = new TestFunctions();
try {
t.testThrowNsresult();
} catch (e) {
try {
is(e.name, "NS_BINDING_ABORTED", "Should have the right exception");
is(e.filename, location.href, "Should not be seeing where the exception really came from");
} catch (e2) {
ok(false, "Should be able to work with the exception");
}
}
try {
t.testThrowNsresultFromNative();
} catch (e) {
try {
is(e.name, "NS_ERROR_UNEXPECTED", "Should have the right exception");
is(e.filename, location.href, "Should not be seeing where the exception really came from");
} catch (e2) {
ok(false, "Should be able to work with the exception");
}
}
SimpleTest.finish();
}
runTests();
</script>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
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.