Bug 1864896: Autofix unused function arguments (parser). r=hsivonen

Differential Revision: https://phabricator.services.mozilla.com/D202976
This commit is contained in:
Dave Townsend 2024-03-02 15:26:01 +00:00
parent cd02013a7c
commit d92190fa91
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
/**
* A few utility functions.
*/
function log(entry) {}
function log() {}
function startsWith(s, s2) {
return s.indexOf(s2) == 0;

View file

@ -60,7 +60,7 @@ function writeErrorSummary(input, expected, got, isTodo) {
* event handler returned by makeTestChecker() or the callback returned by
* makeFragmentTestChecker() until the 'testcases' iterator is spent.
*/
function makeTestChecker(input, expected, errors) {
function makeTestChecker(input, expected) {
return function (e) {
var domAsString = docToTestOutput(e.target.contentDocument);
if (html5Exceptions[input]) {

View file

@ -7,7 +7,7 @@
SimpleTest.waitForExplicitFinish();
window.svgRanScript = false;
const o = new MutationObserver(mutations => {
const o = new MutationObserver(() => {
o.disconnect();
setTimeout(() => {
ok(!svgRanScript, "svg onload must not fire");

View file

@ -10,7 +10,7 @@ document.addEventListener("copy", ev => {
ev.preventDefault();
ev.clipboardData.setData('text/html', "<svg><style><svg/onload=\"window.svgRanScript=true\">");
});
const o = new MutationObserver(mutations => {
const o = new MutationObserver(() => {
o.disconnect();
setTimeout(() => {
ok(!svgRanScript, "svg onload must not fire");