var gTestContinuation = null;
function continueAsync() {
popup.addEventListener("hashchange",
function() { gTestContinuation.next(); }, { once: true });
}
// The popup will call into popupLoaded() once it loads.
function popupLoaded() {
// runTests() needs to be called from outside popupLoaded's onload handler.
// Otherwise, the navigations we do in runTests won't create new SHEntries.
SimpleTest.executeSoon(function() {
if (!gTestContinuation) {
gTestContinuation = runTests();
}
gTestContinuation.next();
});
}
function checkPopupLinkStyle(isTarget, desc) { varlink = popup.document.getElementById("a"); varstyle = popup.getComputedStyle(link); var color = style.getPropertyValue("color");
// Color is red if isTarget, black otherwise.
if (isTarget) {
is(color, "rgb(255, 0, 0)", desc);
} else {
is(color, "rgb(0, 0, 0)", desc);
}
}
</script>
</body>
</html>
¤ Dauer der Verarbeitung: 0.26 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 ist noch experimentell.