Bug 1824173 - Automatically fix some ESLint issues raised by the valid-jsdoc configuration. r=mossop,webcompat-reviewers,denschub

Differential Revision: https://phabricator.services.mozilla.com/D173450
This commit is contained in:
Mark Banner 2023-03-24 19:35:24 +00:00
parent be7a7167d0
commit 4a729cf9d7
124 changed files with 146 additions and 138 deletions

View file

@ -94,7 +94,7 @@ add_task(async function testReopen() {
* reopen container tab in regular tab
* Close all the tabs
* This tests that behaviour of reopening tabs is correct
* */
*/
let regularPage = await openURIInRegularTab("about:blank");
var currRemoteType;

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=402788
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 402788 **/
/** Test for Bug 402788 */
SimpleTest.waitForExplicitFinish();
// return false if an exception has been catched, true otherwise

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1382545
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1382545 **/
/** Test for Bug 1382545 */
SimpleTest.waitForExplicitFinish();
// Used by file_animation_api.html

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1369319
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1369319 **/
/** Test for Bug 1369319 */
SimpleTest.waitForExplicitFinish();
window.onload = () => {
SimpleTest.waitForFocus(() => {

View file

@ -12,8 +12,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1372069
const BASE_GEO_URL = "http://mochi.test:8888/tests/dom/tests/mochitest/geolocation/network_geolocation.sjs";
/** Test for Bug 1372069 **/
/** Modified for Bug 1441295 **/
/** Test for Bug 1372069 */
/** Modified for Bug 1441295 */
SimpleTest.waitForExplicitFinish();
window.onload = () => {
SimpleTest.waitForFocus(() => {

View file

@ -11,7 +11,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1222285
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1222285 **/
/** Test for Bug 1222285 */
SimpleTest.waitForExplicitFinish();
window.onload = () => {

View file

@ -15,7 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1363508
<div id="target1" style="width: 50px; height: 50px; background: black"></div>
<script type="application/javascript">
/** Test for Bug 1363508 **/
/** Test for Bug 1363508 */
SimpleTest.waitForExplicitFinish();
var target0 = window.document.getElementById("target0");

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1333641
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1333641 **/
/** Test for Bug 1333641 */
SimpleTest.waitForExplicitFinish();
window.onload = setupSpeechSynthesis;

View file

@ -436,7 +436,7 @@ let ShellServiceInternal = {
* Determine if we're the default handler for the given file extension (like
* ".pdf") or protocol (like "https"). Windows-only for now.
*
* @returns true if we are the default handler, false otherwise.
* @returns {boolean} true if we are the default handler, false otherwise.
*/
isDefaultHandlerFor(aFileExtensionOrProtocol) {
if (AppConstants.platform == "win") {

View file

@ -36,6 +36,7 @@ XPCOMUtils.defineLazyServiceGetter(
/**
* Executes a XUL command on the top window. Called by the callbacks in each
* TouchBarInput.
*
* @param {string} commandName
* A XUL command.
*/
@ -52,6 +53,7 @@ function execCommand(commandName) {
/**
* Static helper function to convert a hexadecimal string to its integer
* value. Used to convert colours to a format accepted by Apple's NSColor code.
*
* @param {string} hexString
* A hexadecimal string, optionally beginning with '#'.
*/
@ -364,6 +366,7 @@ class TouchBarHelper {
/**
* Fetches a specific Touch Bar Input by name and updates it on the Touch Bar.
*
* @param {...*} inputNames
* A key/keys to a value/values in the gBuiltInInputs object in this file.
*/
@ -392,6 +395,7 @@ class TouchBarHelper {
/**
* Inserts a restriction token into the Urlbar ahead of the current typed
* search term.
*
* @param {string} restrictionToken
* The restriction token to be inserted into the Urlbar. Preferably
* sourced from UrlbarTokenizer.RESTRICT.
@ -509,6 +513,7 @@ helperProto._l10n = new Localization(["browser/touchbar/touchbar.ftl"]);
/**
* A representation of a Touch Bar input.
*
* @param {object} input
* An object representing a Touch Bar Input.
* Contains listed properties.
@ -617,6 +622,7 @@ class TouchBarInput {
/**
* Apply Fluent l10n to child inputs.
*
* @param {Array} children
* An array of initialized TouchBarInputs.
*/

View file

@ -7,7 +7,7 @@
* to make sure `FastClick.notNeeded` returns `true`.
* This allows to disable FastClick and fix various breakage caused
* by the library (mainly non-functioning drop-down lists).
**/
*/
/* globals exportFunction */

View file

@ -6,7 +6,7 @@
* The patch is applied on sites using older version of FastClick library.
* This allows to disable FastClick and fix various breakage caused
* by the library.
**/
*/
/* globals exportFunction */

View file

@ -5,6 +5,7 @@
/**
* A Map of themes built in to the browser, alongwith a Map of collections those themes belong to. Params for the objects contained
* within the map:
*
* @param {string} id
* The unique identifier for the theme. The map's key.
* @param {string} version

View file

@ -11,7 +11,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1180921
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1180921 **/
/** Test for Bug 1180921 */
let module = Cu.getGlobalForObject(Services);
let ssm = Services.scriptSecurityManager;

View file

@ -18,9 +18,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=246699
<script class="testbody" type="text/javascript">
/**
** Test for Bug 246699
** (should produce stack information for caps errors)
**/
* Test for Bug 246699
* (should produce stack information for caps errors)
*/
function isError(e) {
return e.constructor.name === "Error" || e.constructor.name === "TypeError";
}

View file

@ -20,10 +20,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=292789
<script class="testbody" type="text/javascript">
/** Test for Bug 292789
**
** Selectively allow access to allowlisted chrome packages
** even for ALLOW_CHROME mechanisms (<script>, <img> etc)
**/
*
* Selectively allow access to allowlisted chrome packages
* even for ALLOW_CHROME mechanisms (<script>, <img> etc)
*/
/* import-globals-from ../../../toolkit/content/treeUtils.js */
/* import-globals-from ../../../toolkit/mozapps/update/content/history.js */
@ -34,20 +34,20 @@ let ChromeUtils = {
import() { return {}; },
};
/** <script src=""> test **/
/** <script src=""> test */
function testScriptSrc(aCallback) {
is(typeof gTreeUtils.sort, "function",
"content can still load <script> from chrome://global");
/** Try to find an export from history.js. We will find it if it is
** improperly not blocked, otherwise it will be "undefined".
**/
* improperly not blocked, otherwise it will be "undefined".
*/
is(typeof gUpdateHistory, "undefined",
"content should not be able to load <script> from chrome://mozapps");
/** make sure the last one didn't pass because someone
** moved history.js
**/
* moved history.js
*/
var resjs = document.getElementById("resjs");
resjs.onload = scriptOnload;
resjs.src = "resource://gre/chrome/toolkit/content/mozapps/update/history.js";
@ -63,7 +63,7 @@ function testScriptSrc(aCallback) {
}
}
/** <img src=""> tests **/
/** <img src=""> tests */
var img_global = "chrome://global/skin/media/error.png";
var img_mozapps = "chrome://mozapps/skin/extensions/extensionGeneric.svg";
var res_mozapps = "resource://gre/chrome/toolkit/skin/classic/mozapps/extensions/extensionGeneric.svg";

View file

@ -18,9 +18,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=423375
<script class="testbody" type="text/javascript">
/**
** Test for Bug 423375
** (content shouldn't be able to load chrome: or resource:)
**/
*Test for Bug 423375
*(content shouldn't be able to load chrome: or resource:)
*/
function tryLoad(url) {
try {
window.frames[0].location = url;

View file

@ -19,7 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=470804
/** Test for Bug 470804
Passing a null targetURL to checkLoadURIWithPrincipal shouldn't crash
**/
*/
const nsIScriptSecurityManager = SpecialPowers.Ci.nsIScriptSecurityManager;
var secMan = SpecialPowers.Services.scriptSecurityManager;

View file

@ -19,7 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=995943
<![CDATA[
function debug(msg) { info(msg); }
/** Test for CAPS file:// URI prefs. **/
/** Test for CAPS file:// URI prefs. */
SimpleTest.waitForExplicitFinish();
SimpleTest.requestCompleteLog();
if (navigator.userAgent.includes("Mac OS X 10.10"))

View file

@ -22,7 +22,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=840488
/* eslint-disable mozilla/no-useless-parameters, no-redeclare, no-undef */
<![CDATA[
/** Test for all the different ways that script can be disabled for a given global. **/
/** Test for all the different ways that script can be disabled for a given global. */
SimpleTest.waitForExplicitFinish();
const ssm = Services.scriptSecurityManager;

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=732413
/** Test for Bug 732413
Passing DISALLOW_INHERIT_PRINCIPAL flag should be effective even if
aPrincipal is the system principal.
**/
*/
const nsIScriptSecurityManager = SpecialPowers.Ci.nsIScriptSecurityManager;
var secMan = SpecialPowers.Cc["@mozilla.org/scriptsecuritymanager;1"]

View file

@ -6,7 +6,7 @@
* Test for Bug 655273. Make sure that after changing the URI via
* history.pushState, the resulting SHEntry has the same title as our old
* SHEntry.
**/
*/
add_task(async function test() {
waitForExplicitFinish();

View file

@ -40,7 +40,7 @@
addBrowser("box1", "f2", 300, 200);
addBrowser("box2", "f3", 30, 200);
/** Test for Bug 113934 **/
/** Test for Bug 113934 */
var doc1 =
"data:text/html,<html><body onbeforeunload='document.documentElement.textContent = \"\"' onunload='document.documentElement.textContent = \"\"' onpagehide='document.documentElement.textContent = \"\"'>This is a test</body></html>";
var doc2 = "data:text/html,<html><head></head><body>This is a second test</body></html>";

View file

@ -30,7 +30,7 @@
addBrowser("parent", "f1", 300, 200);
addBrowser("parent", "f2", 300, 200);
/** Test for Bug 449778 **/
/** Test for Bug 449778 */
var doc1 = "data:text/html,<html><body>This is a test</body></html>";
var doc2 = "data:text/html,<html><body>This is a second test</body></html>";
var doc3 = "data:text/html,<html><body>This is a <script>var evt = document.createEvent('Events'); evt.initEvent('testEvt', true, true); document.dispatchEvent(evt);</script>third test</body></html>";

View file

@ -27,7 +27,7 @@
let f1 = addBrowser("parent", 300, 200);
/** Test for Bug 449780 **/
/** Test for Bug 449780 */
var doc1 = "data:text/html,<html><body>This is a test</body></html>";
var doc2 = "data:text/html,<html><body>This is a second test</body></html>";

View file

@ -25,7 +25,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=112564
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 112564 **/
/** Test for Bug 112564 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug112564_window.xhtml", "bug112564",

View file

@ -25,7 +25,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=215405
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 215405 **/
/** Test for Bug 215405 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug215405_window.xhtml", "bug215405",

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=293235.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 293235 **/
/** Test for Bug 293235 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug293235_window.xhtml", "bug293235",

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=294258.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 294258 **/
/** Test for Bug 294258 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug294258_window.xhtml", "bug294258",

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=298622.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 298622 **/
/** Test for Bug 298622 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug298622_window.xhtml", "bug298622",

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=301397.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 301397 **/
/** Test for Bug 301397 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug301397_window.xhtml", "bug301397",

View file

@ -27,7 +27,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=303267.xul
SimpleTest.expectAssertions(0, 1);
/** Test for Bug 303267 **/
/** Test for Bug 303267 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug303267_window.xhtml", "bug303267",

View file

@ -30,7 +30,7 @@ if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(0, 1);
}
/** Test for Bug 311007 **/
/** Test for Bug 311007 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug311007_window.xhtml", "bug311007",

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=321671.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 321671 **/
/** Test for Bug 321671 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug321671_window.xhtml", "bug321671",

View file

@ -27,7 +27,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=360511.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 360511 **/
/** Test for Bug 360511 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug360511_window.xhtml", "bug360511",

View file

@ -25,7 +25,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=364461
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 364461 **/
/** Test for Bug 364461 */
SimpleTest.waitForExplicitFinish();

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=396519
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
/** Test for Bug 396519 **/
/** Test for Bug 396519 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug396519_window.xhtml", "bug396519",

View file

@ -29,7 +29,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=396649.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 396649 **/
/** Test for Bug 396649 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug396649_window.xhtml", "bug396649",

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=428288
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 428288 **/
/** Test for Bug 428288 */
function makeClick() {
var event = document.createEvent("MouseEvents");

View file

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=453650
<script type="application/javascript">
<![CDATA[
/** Test for Bug 453650 **/
/** Test for Bug 453650 */
SimpleTest.waitForExplicitFinish();
var iter = runTests();

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=454235
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
/** Test for Bug 454235 **/
/** Test for Bug 454235 */
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(doTest);

View file

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=565388
<script type="application/javascript">
<![CDATA[
/** Test for Bug 565388 **/
/** Test for Bug 565388 */
SimpleTest.waitForExplicitFinish();
function test() {

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=582176.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 582176 **/
/** Test for Bug 582176 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug582176_window.xhtml", "bug582176",

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=608669
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
/** Test for Bug 608669 **/
/** Test for Bug 608669 */
SimpleTest.waitForExplicitFinish();
addLoadEvent(nextTest);

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=662200.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 662200 **/
/** Test for Bug 662200 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug662200_window.xhtml", "bug662200",

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=690056
<!-- test code goes here -->
<script type="application/javascript">
<![CDATA[
/** Test for Bug 690056 **/
/** Test for Bug 690056 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug690056_window.xhtml", "bug690056",
"chrome,width=600,height=600,noopener", window);

View file

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=846906
<script type="application/javascript">
<![CDATA[
/** Test for Bug 846906 **/
/** Test for Bug 846906 */
SimpleTest.waitForExplicitFinish();
var appShellService = SpecialPowers.Services.appShell;

View file

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=89419.xul
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 89419 **/
/** Test for Bug 89419 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug89419_window.xhtml", "bug89419",

View file

@ -25,7 +25,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=92598
<script class="testbody" type="application/javascript">
<![CDATA[
/** Test for Bug 92598 **/
/** Test for Bug 92598 */
SimpleTest.waitForExplicitFinish();
window.openDialog("bug92598_window.xhtml", "bug92598",

View file

@ -28,7 +28,7 @@ if (navigator.platform.startsWith("Win")) {
SimpleTest.expectAssertions(0, 1);
}
/** Test for Bug 769771 **/
/** Test for Bug 769771 */
SimpleTest.waitForExplicitFinish();
addLoadEvent(function () {

View file

@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=602256
<pre id="test">
<script type="application/javascript">
/** Test for Bug 602256 **/
/** Test for Bug 602256 */
var testWin = window.opener ? window.opener : window.parent;

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=881487
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 881487 **/
/** Test for Bug 881487 */
SimpleTest.waitForExplicitFinish();
// Child needs to invoke us, otherwise our onload will fire before the child
// has done the write/close bit.

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=646641
<pre id="test">
<script type="application/javascript">
/** Test for Bug 646641 **/
/** Test for Bug 646641 */
/**
* Steps:

View file

@ -19,7 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1045096
</pre>
<script type="application/javascript">
/** Test for Bug 1045096 **/
/** Test for Bug 1045096 */
var i = document.createElement("iframe");
i.src = "javascript:false"; // This is required!
$("content").appendChild(i);

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1121701
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1121701 **/
/** Test for Bug 1121701 */
SimpleTest.waitForExplicitFinish();
var testUrl1 = "file_bug1121701_1.html";

View file

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1151421
<script type="application/javascript">
/** Test for Bug 1151421 **/
/** Test for Bug 1151421 */
SimpleTest.waitForExplicitFinish();
function childLoad() {

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1186774
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1186774 **/
/** Test for Bug 1186774 */
var child;

View file

@ -10,7 +10,7 @@
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1450164 **/
/** Test for Bug 1450164 */
function runTest() {
var child = window.open("file_bug1450164.html", "", "width=100,height=100");

View file

@ -19,7 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=385434
<pre id="test">
<script type="application/javascript">
/** Test for Bug 385434 **/
/** Test for Bug 385434 */
SimpleTest.waitForExplicitFinish();
SimpleTest.requestFlakyTimeout("untriaged");
SimpleTest.expectAssertions(0, 1); // bug 1333702

View file

@ -16,7 +16,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=387979
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 387979 **/
/** Test for Bug 387979 */
function a(s) {
var r;
try { r = frames[0].document.body; } catch (e) { r = e; }

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=404548
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 404548 **/
/** Test for Bug 404548 */
var firstRemoved = false;
var secondHidden = false;

View file

@ -19,7 +19,7 @@ if (navigator.platform.startsWith("Mac")) {
SimpleTest.expectAssertions(0, 1);
}
/** Test for Bug 413310 **/
/** Test for Bug 413310 */
// NOTE: If we ever make subframes do bfcache stuff, this test will need to be
// modified accordingly! It assumes that subframes do NOT get bfcached.

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=509055
<pre id="test">
<script type="application/javascript">
/** Test for Bug 509055 **/
/** Test for Bug 509055 */
SimpleTest.waitForExplicitFinish();

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=511449
<pre id="test">
<script type="application/javascript">
/** Test for Bug 511449 **/
/** Test for Bug 511449 */
SimpleTest.waitForExplicitFinish();
SimpleTest.requestFlakyTimeout("untriaged");

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=540462
<pre id="test">
<script type="application/javascript">
/** Test for Bug 540462 **/
/** Test for Bug 540462 */
var win;
function runTest() {

View file

@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=551225
<script type="application/javascript">
/** Test for Bug 551225 **/
/** Test for Bug 551225 */
var obj = {
a: new Date("1/1/2000"),

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=598895
<pre id="test">
<script type="application/javascript">
/** Test for Bug 598895 **/
/** Test for Bug 598895 */
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=637644
<pre id="test">
<script type="application/javascript">
/** Test for Bug 637644 **/
/** Test for Bug 637644 */
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {

View file

@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=653741
<script type="application/javascript">
/** Test for Bug 653741 **/
/** Test for Bug 653741 */
SimpleTest.waitForExplicitFinish();
function childLoad() {

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=660404
<pre id="test">
<script type="application/javascript">
/** Test for Bug 660404 **/
/** Test for Bug 660404 */
SimpleTest.waitForExplicitFinish();
var textContent =

View file

@ -14,7 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=662170
<script type="application/javascript">
/** Test for Bug 662170 **/
/** Test for Bug 662170 */
SimpleTest.waitForExplicitFinish();
function childLoad() {

View file

@ -40,9 +40,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=669671
* Then we go back and repeat the whole process but call history.replaceState
* instead of pushState. And for good measure, we test once more, this time
* modifying only the hash of the URI using replaceState. In this case, we
* *should* load from the cache.
* should* load from the cache.
*
**/
*/
SimpleTest.requestLongerTimeout(2);
SimpleTest.waitForExplicitFinish();

View file

@ -19,7 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=675587
<pre id="test">
<script type="application/javascript">
/** Test for Bug 675587 **/
/** Test for Bug 675587 */
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
ok(window.frames[0].location.href.endsWith("file_bug675587.html#"),

View file

@ -16,7 +16,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=694612
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 694612 **/
/** Test for Bug 694612 */
SimpleTest.waitForExplicitFinish();
window.addEventListener("message", receiveMessage);

View file

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=703855
<pre id="test">
<script type="application/javascript">
/** Test for Bug 703855 **/
/** Test for Bug 703855 */
SimpleTest.waitForExplicitFinish();

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=797909
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 797909 **/
/** Test for Bug 797909 */
SimpleTest.waitForExplicitFinish();

View file

@ -20,7 +20,7 @@ Checks that we correctly decompress and display it (via running JS within the do
<pre id="test">
<script type="application/javascript">
/** Test for Bug 1600211 **/
/** Test for Bug 1600211 */
SimpleTest.waitForExplicitFinish();
var w;

View file

@ -16,7 +16,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=602256
<pre id="test">
<script type="application/javascript">
/** Test for Bug 602256 **/
/** Test for Bug 602256 */
SimpleTest.waitForExplicitFinish();
var win = window.open("file_framedhistoryframes.html");

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=957479
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 957479 **/
/** Test for Bug 957479 */
SimpleTest.waitForExplicitFinish();
// Child needs to invoke us, otherwise our onload will fire before the child
// has done the write/close bit.

View file

@ -15,7 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=602256
<pre id="test">
<script type="application/javascript">
/** Test for Bug 602256 **/
/** Test for Bug 602256 */
SimpleTest.waitForExplicitFinish();

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1364364
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1364364 **/
/** Test for Bug 1364364 */
let testWin, testDoc;
async function test() {
SimpleTest.waitForExplicitFinish();

View file

@ -17,7 +17,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=344861
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 344861 **/
/** Test for Bug 344861 */
SimpleTest.waitForExplicitFinish();
var newwindow = window.open("/", "testwindow", "width=200,height=200");

View file

@ -112,7 +112,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=386782
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 386782 **/
/** Test for Bug 386782 */
SimpleTest.waitForExplicitFinish();

View file

@ -21,7 +21,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=430624
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 430624 **/
/** Test for Bug 430624 */
function onLoad() {
window.frames[0].frameElement.onload = onReload;

View file

@ -19,7 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=430723
<script class="testbody" type="text/javascript">
// <![CDATA[
/** Test for Bug 430723 **/
/** Test for Bug 430723 */
var BASE_URI = "http://mochi.test:8888/tests/docshell/test/navigation/";
var gTallRedBoxURI = BASE_URI + "redbox_bug430723.html";

View file

@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1314912
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1314912 **/
/** Test for Bug 1314912 */
const RATE_LIMIT_COUNT = 90;
const RATE_LIMIT_TIME_SPAN = 3;

View file

@ -11,7 +11,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1170484
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1170484 **/
/** Test for Bug 1170484 */
SimpleTest.waitForExplicitFinish();
var { maybeOnSpellCheck } = SpecialPowers.ChromeUtils.import(

View file

@ -23,7 +23,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1272623
</pre>
<script>
/** Test for Bug 1272623 **/
/** Test for Bug 1272623 */
var maybeOnSpellCheck;

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1071816
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 1071816 **/
/** Test for Bug 1071816 */
/* Note! This test uses the chardet test harness but doesn't test chardet! */
CharsetDetectionTests("bug1071816-1_text.html",
"UTF-8",

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1071816
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 1071816 **/
/** Test for Bug 1071816 */
/* Note! This test uses the chardet test harness but doesn't test chardet! */
CharsetDetectionTests("bug1071816-2_text.html",
"windows-1252",

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1071816
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 1071816 **/
/** Test for Bug 1071816 */
/* Note! This test uses the chardet test harness but doesn't test chardet! */
CharsetDetectionTests("bug1071816-3_text.html",
"UTF-8",

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1071816
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 1071816 **/
/** Test for Bug 1071816 */
/* Note! This test uses the chardet test harness but doesn't test chardet! */
CharsetDetectionTests("bug1071816-4_text.html",
"windows-1252",

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=306272
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 306272 **/
/** Test for Bug 306272 */
CharsetDetectionTests("bug306272_text.html",
"UTF-8",
new Array("ja_parallel_state_machine"));

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=426271
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 426271 **/
/** Test for Bug 426271 */
CharsetDetectionTests("bug426271_text-euc-jp.html",
"EUC-JP",
new Array("ja_parallel_state_machine"));

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=426271
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 426271 **/
/** Test for Bug 426271 */
CharsetDetectionTests("bug426271_text-utf-8.html",
"UTF-8",
new Array("ja_parallel_state_machine"));

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=431054
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 431054 **/
/** Test for Bug 431054 */
CharsetDetectionTests("bug431054_text.html",
"EUC-JP",
new Array("ja_parallel_state_machine"));

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=431054
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 431054 **/
/** Test for Bug 431054 */
CharsetDetectionTests("bug431054_text.html",
"EUC-JP",
["zhtw_parallel_state_machine",

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=631751
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 631751 **/
/** Test for Bug 631751 */
/* Note! This test uses the chardet test harness but doesn't test chardet! */
CharsetDetectionTests("bug631751be_text.html",
"UTF-8", // Test runs from file: URL, so ASCII gets detected as UTF-8.

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=631751
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 631751 **/
/** Test for Bug 631751 */
/* Note! This test uses the chardet test harness but doesn't test chardet! */
CharsetDetectionTests("bug631751le_text.html",
"UTF-8", // Test runs from file: URL, so ASCII gets detected as UTF-8.

View file

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=638318
<iframe id="testframe"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 638318 **/
/** Test for Bug 638318 */
/* Note! This test uses the chardet test harness but doesn't test chardet! */
CharsetDetectionTests("bug638318_text.html",
"UTF-8",

Some files were not shown because too many files have changed in this diff Show more