Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit aff403f

Browse files
darkwingjasonLaster
authored andcommitted
Fixes 5558 - Move requestLongerTimeout to global space (#5656)
1 parent a7db4c5 commit aff403f

10 files changed

+10
-18
lines changed

src/test/mochitest/browser_dbg-babel-stepping.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* http://creativecommons.org/publicdomain/zero/1.0/ */
33

44
// Tests for stepping through Babel's compile output.
5+
requestLongerTimeout(4);
56

67
async function breakpointSteps(dbg, fixture, { line, column }, steps) {
78
const { selectors: { getBreakpoint, getBreakpoints }, getState } = dbg;
@@ -161,8 +162,6 @@ function testStepOverRegeneratorAwait(dbg) {
161162
}
162163

163164
add_task(async function() {
164-
requestLongerTimeout(4);
165-
166165
const dbg = await initDebugger("doc-babel.html");
167166

168167
await testStepOverForOf(dbg);

src/test/mochitest/browser_dbg-breakpoints-reloading.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* http://creativecommons.org/publicdomain/zero/1.0/ */
33

44
// Tests pending breakpoints when reloading
5+
requestLongerTimeout(3);
56

67
// Utilities for interacting with the editor
78
function clickGutter(dbg, line) {
@@ -24,8 +25,6 @@ function assertEditorBreakpoint(dbg, line) {
2425
}
2526

2627
add_task(async function() {
27-
requestLongerTimeout(3);
28-
2928
const dbg = await initDebugger("doc-scripts.html");
3029
const { selectors: { getBreakpoints, getBreakpoint }, getState } = dbg;
3130
const source = findSource(dbg, "simple1.js");

src/test/mochitest/browser_dbg-chrome-create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/**
77
* Tests that a chrome debugger can be created in a new process.
88
*/
9+
requestLongerTimeout(5);
910

1011
const { BrowserToolboxProcess } = ChromeUtils.import(
1112
"resource://devtools/client/framework/ToolboxProcess.jsm",
@@ -43,7 +44,6 @@ registerCleanupFunction(function() {
4344

4445
add_task(async function() {
4546
// Windows XP and 8.1 test slaves are terribly slow at this test.
46-
requestLongerTimeout(5);
4747
await pushPref("devtools.chrome.enabled", true);
4848
await pushPref("devtools.debugger.remote-enabled", true);
4949

src/test/mochitest/browser_dbg-editor-select.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33

44
// Tests that the editor highlights the correct location when the
55
// debugger pauses
6+
requestLongerTimeout(2);
67

78
add_task(async function() {
89
// This test runs too slowly on linux debug. I'd like to figure out
910
// which is the slowest part of this and make it run faster, but to
1011
// fix a frequent failure allow a longer timeout.
11-
requestLongerTimeout(2);
12-
1312
const dbg = await initDebugger("doc-scripts.html");
1413
const { selectors: { getSelectedSource }, getState } = dbg;
1514
const simple1 = findSource(dbg, "simple1.js");

src/test/mochitest/browser_dbg-layout-changes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
* This if the debugger's layout is correctly modified when the toolbox's
66
* host changes.
77
*/
8+
requestLongerTimeout(2);
89

910
var gDefaultHostType = Services.prefs.getCharPref("devtools.toolbox.host");
1011

1112
add_task(async function() {
1213
// test is too slow on some platforms due to the number of test cases
13-
requestLongerTimeout(2);
14-
1514
const dbg = await initDebugger("doc-iframes.html");
1615

1716
const layouts = [

src/test/mochitest/browser_dbg-sourcemaps-bogus.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
// Test that an error while loading a sourcemap does not break
55
// debugging.
6+
requestLongerTimeout(2);
67

78
add_task(async function() {
89
// NOTE: the CORS call makes the test run times inconsistent
9-
requestLongerTimeout(2);
10-
1110
const dbg = await initDebugger("doc-sourcemap-bogus.html");
1211
const { selectors: { getSources }, getState } = dbg;
1312

src/test/mochitest/browser_dbg-sourcemaps-reloading.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Any copyright is dedicated to the Public Domain.
22
* http://creativecommons.org/publicdomain/zero/1.0/ */
3+
requestLongerTimeout(2);
34

45
async function waitForBreakpointCount(dbg, count) {
56
return waitForState(
@@ -10,8 +11,6 @@ async function waitForBreakpointCount(dbg, count) {
1011

1112
add_task(async function() {
1213
// NOTE: the CORS call makes the test run times inconsistent
13-
requestLongerTimeout(2);
14-
1514
const dbg = await initDebugger("doc-sourcemaps.html");
1615
const { selectors: { getBreakpoint, getBreakpoints }, getState } = dbg;
1716

src/test/mochitest/browser_dbg-sourcemaps.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
// Tests loading sourcemapped sources, setting breakpoints, and
55
// stepping in them.
6+
requestLongerTimeout(2);
67

78
function assertBreakpointExists(dbg, source, line) {
89
const { selectors: { getBreakpoint }, getState } = dbg;
@@ -35,8 +36,6 @@ function clickGutter(dbg, line) {
3536

3637
add_task(async function() {
3738
// NOTE: the CORS call makes the test run times inconsistent
38-
requestLongerTimeout(2);
39-
4039
const dbg = await initDebugger("doc-sourcemaps.html");
4140
const { selectors: { getBreakpoint, getBreakpoints }, getState } = dbg;
4241

src/test/mochitest/browser_dbg-sourcemaps2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Any copyright is dedicated to the Public Domain.
22
* http://creativecommons.org/publicdomain/zero/1.0/ */
3+
requestLongerTimeout(2);
34

45
function assertBpInGutter(dbg, lineNumber) {
56
const el = findElement(dbg, "breakpoint");
@@ -17,8 +18,6 @@ function assertBpInGutter(dbg, lineNumber) {
1718
// This source map does not have source contents, so it's fetched separately
1819
add_task(async function() {
1920
// NOTE: the CORS call makes the test run times inconsistent
20-
requestLongerTimeout(2);
21-
2221
const dbg = await initDebugger("doc-sourcemaps2.html");
2322
const { selectors: { getBreakpoint, getBreakpoints }, getState } = dbg;
2423

src/test/mochitest/browser_dbg-sourcemaps3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
// Tests loading sourcemapped sources, setting breakpoints, and
55
// inspecting restored scopes.
6+
requestLongerTimeout(2);
67

78
// This source map does not have source contents, so it's fetched separately
89
add_task(async function() {
910
// NOTE: the CORS call makes the test run times inconsistent
10-
requestLongerTimeout(2);
1111
await pushPref("devtools.debugger.features.map-scopes", true);
1212

1313
const dbg = await initDebugger("doc-sourcemaps3.html");

0 commit comments

Comments
 (0)