`,
inputId: "typeC",
expectedStrings: [
"label type C",
"inner div prefix",
"test C-1",
"test C-2",
"inner div postfix",
],
},
];
TESTCASES.forEach(testcase => {
add_task(async function() {
info("Starting testcase: " + testcase.description);
LabelUtils._labelStrings = new WeakMap();
let doc = MockDocument.createTestDocument(
"http://localhost:8080/test/",
testcase.document
);
let element = doc.getElementById(testcase.inputId);
let strings = LabelUtils.extractLabelStrings(element);
Assert.deepEqual(strings, testcase.expectedStrings);
});
});