info("Checking that the graph markup is created in the parent"); const container = doc.querySelector("#cubic-bezier-container"); const w = new CubicBezierWidget(container);
ok(container.querySelector(".display-wrap"), "The display has been added");
ok(
container.querySelector(".coordinate-plane"), "The coordinate plane has been added"
); const buttons = container.querySelectorAll("button");
is(buttons.length, 2, "The 2 control points have been added");
is(buttons[0].className, "control-point");
is(buttons[1].className, "control-point");
ok(container.querySelector("canvas"), "The curve canvas has been added");
info("Destroying the widget");
w.destroy();
is(container.children.length, 0, "All nodes have been removed");
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.