/** Test for Bug 894874 */
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
is(document.styleSheets[0].disabled, false, "Sheet with no title should be enabled");
is(document.styleSheets[1].disabled, false, "First preferred sheet should be enabled");
is(document.styleSheets[2].disabled, true, "Second preferred sheet should be disabled");
is(document.selectedStyleSheetSet, "one", "Sheet one is enabled");
document.styleSheets[0].disabled = true;
document.styleSheets[2].disabled = false;
ok(document.selectedStyleSheetSet === null, "Sheet one and sheet two are both enabled");
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.