if (values.parent) {
is(actualParent, expectedParent, "Item " + itemLabel + " should have a parent with id " + values.parent + ".");
} else {
is(actualParent, null, "Non-item " + itemLabel + " should not have a parent.");
}
}
function testFlexParents() {
let expectedValues = [
// These items expect to have a flex parent.
{ id: "item0", parent: "container0" },
{ id: "item1", parent: "container1" },
{ id: "item2", parent: "container2" },
{ id: "item3", parent: "container3" },
{ id: "item4", parent: "container4" },
{ id: null /* choose the first child of the expected parent */, parent: "container5" },
// These elements do NOT expect to have a flex parent.
{ id: "nonitem0" },
{ id: "nonitem1" },
{ id: "nonitem2" },
{ id: "nonitem3" },
];
for (let i = 0; i < expectedValues.length; ++i) {
testFlexParentExpectedValues(expectedValues[i]);
}
}
function runTests() {
testFlexParents();
SimpleTest.finish();
}
</script>
</head>
<body onLoad="runTests();"> <!-- These items expect to have a flex parent. -->
<div id="container0" class="container">
<div id="item0" class="lime">first item</div>
</div>
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.