/** Test for Bug 789856 **/
SimpleTest.waitForExplicitFinish();
varscript = document.createElement("script"); script.onload = function() {
ok(false, "This script should not load");
SimpleTest.finish();
} script.onerror = function() {
ok(true, "This script should fail to load");
SimpleTest.finish();
}
// If neither one fires, the test fails, as it should
// Use a URL the test is not allowed to load script.src = "file:///tmp/"
document.body.appendChild(script);
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.