mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
This suite already had `add_task.skip(aTask)` and `add_task.only(aTask)` implemented, which required quite a bit more boilerplate code to get them right. I removed this API in favor of `add_task(aTask).skip()` and `add_task(aTask).only()` so that it's the same signature as Mochitest-browser and Mochitest-chrome. I also noticed that `add_task` was defined twice, right above the other, which was of course the latest version. I removed the latter. MozReview-Commit-ID: BSCCXorzSlC
22 lines
448 B
JavaScript
22 lines
448 B
JavaScript
"use strict";
|
|
|
|
add_task(async function skipMeNot1() {
|
|
Assert.ok(true, "Well well well.");
|
|
});
|
|
|
|
add_task(async function skipMe1() {
|
|
Assert.ok(false, "Not skipped after all.");
|
|
}).skip();
|
|
|
|
add_task(async function skipMeNot2() {
|
|
Assert.ok(true, "Well well well.");
|
|
});
|
|
|
|
add_task(async function skipMeNot3() {
|
|
Assert.ok(true, "Well well well.");
|
|
});
|
|
|
|
add_task(async function skipMe2() {
|
|
Assert.ok(false, "Not skipped after all.");
|
|
}).skip();
|