/** Test for Bug 656379 **/
SimpleTest.waitForExplicitFinish();
function* tests() {
info("Synthesizing mousemove on label1...");
synthesizeMouseAtCenter($("label1"), { type: "mousemove" });
yield undefined;
is($("button1").matches(":hover"), true, "Button 1 should be hovered after mousemove over label1");
is($("label1").matches(":hover"), true, "Label 1 should be hovered after mousemove over label1");
is($("button2").matches(":hover"), false, "Button 2 should not be hovered after mousemove over label1");
is($("label2").matches(":hover"), false, "Label 2 should not be hovered after mousemove over label1");
info("Synthesizing mousemove on button2...");
synthesizeMouseAtCenter($("button2"), { type: "mousemove" });
yield undefined;
is($("button1").matches(":hover"), false, "Button 1 should not be hovered after mousemove over button2");
is($("label1").matches(":hover"), false, "Label 1 should not be hovered after mousemove over button2");
is($("button2").matches(":hover"), true, "Button 2 should be hovered after mousemove over button2");
is($("label2").matches(":hover"), false, "Label 2 should not be hovered after mousemove over label2");
info("Synthesizing mousemove on label2...");
synthesizeMouseAtCenter($("label2"), { type: "mousemove" });
yield undefined;
is($("button1").matches(":hover"), false, "Button 1 should not be hovered after mousemove over label2");
is($("label1").matches(":hover"), false, "Label 1 should not be hovered after mousemove over label2");
is($("button2").matches(":hover"), true, "Button 2 should be hovered after mousemove over label2");
is($("label2").matches(":hover"), true, "Label 2 should be hovered after mousemove over label2");
SimpleTest.finish();
}
function executeTests() { var testYielder = tests();
function execNext() {
let {done} = testYielder.next();
if (done) {
return;
}
SimpleTest.executeSoon(execNext);
}
execNext();
}
SimpleTest.waitForFocus(executeTests);
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.21 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 und die Messung sind noch experimentell.