Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<?xml version="1.0"?>
type="text/css"?>
<window title="Test add_task.only() function"
<script type="application/javascript">
<![CDATA[
/* eslint-disable mozilla/reject-addtask-only */
// Check that we can skip all but one task by calling `only()`.
add_task(async function skipMe1() {
ok(false, "Not skipped after all.");
});
add_task(async function skipMe2() {
ok(false, "Not skipped after all.");
}).skip();
add_task(async function skipMe3() {
ok(false, "Not skipped after all.");
}).only();
add_task(async function skipMeNot() {
ok(true, "Well well well.");
}).only();
add_task(async function skipMe4() {
ok(false, "Not skipped after all.");
});
]]>
</script>
</body>
</window>