function runTests() { var doc = document.getElementById("testFrame").contentDocument; var options = doc.createElement("select").options;
ok(Cu.isXrayWrapper(options), "should be an Xray wrapper"); varoption = doc.createElement("option");
options[4] = option;
is(options.length, 5, "setting an indexed property through an Xray wrapper should work")
is(options[4], option, "setting an indexed property through an Xray wrapper should work")
SimpleTest.finish();
}
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.