/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/** *Testpruningofchildrenfrommeter.
*/
addAccessibleTask(
`
<div id="meter"
role="meter"
aria-valuemin="0"
aria-valuemax="100"
aria-valuenow="33"
aria-valuetext="33% (Prepared)">
<span>Prepared</span>
<span>Shipped</span>
<span>Delivered</span>
</div>
`,
async function testPruneChildren() { const meterChildCount = await runPython(`
global meter
doc = getDoc()
meter = findByDomId(doc, "meter")
return meter.childCount
`);
is(meterChildCount, 0, "Meter is pruned");
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.