/** Test for Bug 46555 **/
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function() {
const kCmd = "cmd_selectAll";
varinput = document.getElementById("t1"); input.focus(); var controller =
SpecialPowers.wrap(input).controllers.getControllerForCommand(kCmd);
// Test 1: Select All should be disabled if editor is empty
is(controller.isCommandEnabled(kCmd), false, "Select All command disabled when editor is empty");
SimpleTest.finish();
});
</script>
</pre>
</body>
</html>
¤ Dauer der Verarbeitung: 0.13 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.