зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1242505 - Part 5 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore. MozReview-Commit-ID: 3uOxkgWYWEz --HG-- extra : rebase_source : 5a10a3ebbfe0ce2a801330041f95447c313a9a70 extra : source : 6f0394b523a66dab444b8551deb8f3c6c81d8f31
This commit is contained in:
Родитель
f960ce1e88
Коммит
30ea634bb0
|
@ -1,13 +1,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: window.location is null");
|
||||
|
||||
|
||||
add_task(async function checkIdentityOfAboutSupport() {
|
||||
let tab = gBrowser.loadOneTab("about:support", {
|
||||
referrerURI: null,
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: this.docShell is null");
|
||||
|
||||
function test() {
|
||||
ok(!!gBrowser, "gBrowser exists");
|
||||
is(gBrowser, getBrowser(), "both ways of getting tabbrowser work");
|
||||
|
|
|
@ -1,15 +1,3 @@
|
|||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: gBrowser._finalizeTabSwitch is not a function");
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: gBrowser._finalizeTabSwitch is not a function");
|
||||
|
||||
function test() {
|
||||
BrowserTestUtils.addTab(gBrowser);
|
||||
BrowserTestUtils.addTab(gBrowser);
|
||||
|
|
|
@ -2,13 +2,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: Assert is null");
|
||||
|
||||
|
||||
var SocialService = Cu.import("resource:///modules/SocialService.jsm", {}).SocialService;
|
||||
|
||||
var tabsToRemove = [];
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: window.location is null");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Promise",
|
||||
"resource://gre/modules/Promise.jsm");
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "fxAccounts",
|
||||
|
|
|
@ -31,7 +31,6 @@ module.exports = {
|
|||
"SimpleTest": false,
|
||||
"SpecialPowers": false,
|
||||
"TestUtils": false,
|
||||
"thisTestLeaksUncaughtRejectionsAndShouldBeFixed": false,
|
||||
"todo": false,
|
||||
"todo_is": false,
|
||||
"todo_isnot": false,
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
"SimpleTest": false,
|
||||
"SpecialPowers": false,
|
||||
"TestUtils": false,
|
||||
"thisTestLeaksUncaughtRejectionsAndShouldBeFixed": false,
|
||||
"todo": false,
|
||||
"todo_is": false,
|
||||
"todo_isnot": false,
|
||||
|
|
|
@ -3,12 +3,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejections should be fixed.
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("[object Object]");
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed(
|
||||
"TypeError: this.transport is null");
|
||||
|
||||
/**
|
||||
* Tests that event listeners aren't fetched when the events tab isn't selected.
|
||||
*/
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejections should be fixed.
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("[object Object]");
|
||||
|
||||
/**
|
||||
* Tests that debuggee scripts are terminated on tab closure.
|
||||
*/
|
||||
|
|
|
@ -3,10 +3,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejections should be fixed.
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("[object Object]");
|
||||
|
||||
// The following "connectionClosed" rejection should not be left uncaught. This
|
||||
// test has been whitelisted until the issue is fixed.
|
||||
Cu.import("resource://testing-common/PromiseTestUtils.jsm", this);
|
||||
|
|
|
@ -3,15 +3,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejections should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: this.docShell is null");
|
||||
|
||||
// When running in a standalone directory, we get this error
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: this.doc is undefined");
|
||||
|
||||
// Tests devtools API
|
||||
|
||||
const toolId1 = "test-tool-1";
|
||||
|
|
|
@ -7,13 +7,6 @@
|
|||
|
||||
requestLongerTimeout(5);
|
||||
|
||||
/**
|
||||
* Whitelisting this test.
|
||||
* As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
*/
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("Error: Shader Editor is " +
|
||||
"still waiting for a WebGL context to be created.");
|
||||
|
||||
function performChecks(target) {
|
||||
return Task.spawn(function* () {
|
||||
let toolIds = gDevTools.getToolDefinitionArray()
|
||||
|
|
|
@ -5,13 +5,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Whitelisting this test.
|
||||
* As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
*/
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("Error: Shader Editor is " +
|
||||
"still waiting for a WebGL context to be created.");
|
||||
|
||||
const { DebuggerServer } = require("devtools/server/main");
|
||||
const { DebuggerClient } = require("devtools/shared/client/main");
|
||||
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("Error: Unknown sheet source");
|
||||
|
||||
// Tests the links from the computed view to the style editor.
|
||||
|
||||
const STYLESHEET_URL = "data:text/css," + encodeURIComponent(
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
// FIXME: Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("Error: Unknown sheet source");
|
||||
|
||||
// Test the links from the rule-view to the styleeditor
|
||||
|
||||
const STYLESHEET_URL = "data:text/css," + encodeURIComponent(
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("false");
|
||||
|
||||
// Test that hovering over the markup-view's containers doesn't always show the
|
||||
// highlighter, depending on the type of node hovered over.
|
||||
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("destroy");
|
||||
|
||||
loadHelperScript("helper_edits.js");
|
||||
|
||||
// Test ProjectEditor basic functionality
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("destroy");
|
||||
|
||||
loadHelperScript("helper_edits.js");
|
||||
|
||||
// Test ProjectEditor image editor functionality
|
||||
|
|
|
@ -4,13 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("destroy");
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: this.window is null");
|
||||
|
||||
// Test that projecteditor can be destroyed in various states of loading
|
||||
// without causing any leaks or exceptions.
|
||||
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("destroy");
|
||||
|
||||
loadHelperScript("helper_edits.js");
|
||||
|
||||
// Test ProjectEditor basic functionality
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("destroy");
|
||||
|
||||
// Test that files get reselected in the tree when their editor
|
||||
// is focused. https://bugzilla.mozilla.org/show_bug.cgi?id=1011116.
|
||||
|
||||
|
|
|
@ -3,12 +3,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("destroy");
|
||||
|
||||
function test() {
|
||||
let manager = ResponsiveUIManager;
|
||||
let done;
|
||||
|
|
|
@ -3,13 +3,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed(
|
||||
"Error: Shader Editor is still waiting for a WebGL context to be created.");
|
||||
|
||||
const TEST_URI = "data:text/html;charset=utf-8," +
|
||||
"<p>browser_telemetry_toolboxtabs_shadereditor.js</p>";
|
||||
|
||||
|
|
|
@ -5,14 +5,6 @@
|
|||
|
||||
// Tests that the developer toolbar works properly
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed(
|
||||
"Protocol error (unknownError): Error: Got an invalid root window in DocumentWalker"
|
||||
);
|
||||
|
||||
const TEST_URI = "data:text/html;charset=utf-8,<p>Tooltip Tests</p>";
|
||||
const PREF_DEVTOOLS_THEME = "devtools.theme";
|
||||
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("Error: Connection closed");
|
||||
|
||||
/**
|
||||
* Tests that the reloading/onContentLoaded hooks work.
|
||||
*/
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("Error: Connection closed");
|
||||
|
||||
/**
|
||||
* Tests that reloading a tab will properly listen for the `start-context`
|
||||
* event and reshow the tools after reloading.
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("Error: Connection closed");
|
||||
|
||||
/**
|
||||
* Tests that switching to an iframe works fine.
|
||||
*/
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("null");
|
||||
|
||||
// Test the webconsole output for various types of objects.
|
||||
|
||||
const TEST_URI = "data:text/html;charset=utf8,test for console output - 01";
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("null");
|
||||
|
||||
// Test the webconsole output for various types of objects.
|
||||
|
||||
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
|
||||
|
|
|
@ -8,10 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed(null);
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed(
|
||||
"TypeError: this.toolbox is null");
|
||||
|
||||
// Test the webconsole output for various types of DOM Nodes.
|
||||
|
||||
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("null");
|
||||
|
||||
// Test the webconsole output for DOM events.
|
||||
|
||||
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
|
||||
|
|
|
@ -1034,9 +1034,6 @@ function testScope(aTester, aTest, expected) {
|
|||
self.SimpleTest.ignoreAllUncaughtExceptions(aIgnoring);
|
||||
};
|
||||
|
||||
this.thisTestLeaksUncaughtRejectionsAndShouldBeFixed = function(...rejections) {
|
||||
};
|
||||
|
||||
this.expectAssertions = function test_expectAssertions(aMin, aMax) {
|
||||
let min = aMin;
|
||||
let max = aMax;
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: this.docShell is null");
|
||||
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.require_user_interaction_for_beforeunload", false]]});
|
||||
|
||||
const TEST_URL = "http://example.com/browser/toolkit/components/startup/tests/browser/beforeunload.html";
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
* http://creativecommons.org/publicdomain/zero/1.0/
|
||||
*/
|
||||
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("");
|
||||
|
||||
// Bug 570760 - Make ctrl-f and / focus the search box in the add-ons manager
|
||||
|
||||
var gManagerWindow;
|
||||
|
|
|
@ -3,13 +3,6 @@
|
|||
// canceled
|
||||
// This verifies bug 312473
|
||||
|
||||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: this.docShell is null");
|
||||
|
||||
|
||||
function test() {
|
||||
Harness.authenticationCallback = get_auth_info;
|
||||
Harness.downloadFailedCallback = download_failed;
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
//
|
||||
// Whitelisting this test.
|
||||
// As part of bug 1077403, the leaking uncaught rejection should be fixed.
|
||||
//
|
||||
thisTestLeaksUncaughtRejectionsAndShouldBeFixed("TypeError: this.docShell is null");
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Test whether a request for auth for an XPI switches to the appropriate tab
|
||||
var gNewTab;
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ module.exports = {
|
|||
"privateNoteIntentionalCrash": false,
|
||||
"registerCleanupFunction": false,
|
||||
"requestLongerTimeout": false,
|
||||
"thisTestLeaksUncaughtRejectionsAndShouldBeFixed": false,
|
||||
"todo": false,
|
||||
"todo_is": false,
|
||||
"todo_isnot": false,
|
||||
|
|
Загрузка…
Ссылка в новой задаче