/** Test for Bug 579767 **/
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() { var f1 = document.getElementById("f1"); var f2 = document.getElementById("f2"); var t1 = f1.contentDocument.documentElement; var t2 = f2.contentDocument.documentElement;
setTimeout(function() {
// drag the horizontal handle 10px to down and 5px to right
synthesizeMouse(t1, 2, 92, {type: "mousedown"}, f1.contentWindow);
synthesizeMouse(t1, 3, 93, {type: "mousemove"}, f1.contentWindow);
synthesizeMouse(t1, 4, 94, {type: "mousemove"}, f1.contentWindow);
synthesizeMouse(t1, 5, 95, {type: "mousemove"}, f1.contentWindow);
synthesizeMouse(t1, 7, 102,{type: "mousemove"}, f1.contentWindow);
synthesizeMouse(t1, 7, 102,{type: "mouseup" }, f1.contentWindow);
setTimeout(function() {
// now compare the two windows
ok(compareSnapshots(snapshotWindow(f1.contentWindow),
snapshotWindow(f2.contentWindow), true)[0], "The borders should be painted correctly after resizing");
is(t1.querySelectorAll("frameset")[0].getAttribute("cols"), "11%,89%", "The cols attribute should be correctly updated");
is(t1.querySelectorAll("frameset")[1].getAttribute("rows"), "100,200", "The rows attribute should be correctly updated");
SimpleTest.finish();
}, 0);
}, 0);
}, 0);
});
</script>
</pre>
</body>
</html>
Messung V0.5
¤ 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 und die Messung sind noch experimentell.