function runTests() { var wrapper = document.getElementById("wrapper"); var grid = wrapper.getGridFragments()[0]; var boxA = document.getElementById("boxA"); var boxB = document.getElementById("boxB");
// test property existence
isnot(typeof(grid.cols.tracks), "undefined", "Grid.cols.tracks property exists.");
isnot(typeof(grid.rows.tracks), "undefined", "Grid.rows.tracks property exists.");
if ((typeof(grid.cols.tracks) != "undefined") &&
(typeof(grid.rows.tracks) != "undefined")) {
// test column and row track counts
is(grid.cols.tracks.length, 4, "Grid.cols.tracks property has length that matches grid-template-columns."
);
is(grid.rows.tracks.length, 2, "Grid.rows.tracks property has length that matches content."
);
if ((grid.cols.tracks.length == 4) &&
(grid.rows.tracks.length == 2)) {
// test column track position
is(grid.cols.tracks[1].start, 110, "Grid column track 2 position is as expected.");
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.