Bug 1502128 - Remove last old debugger test. r=davidwalsh

This test is broken for a while as it doesn't wait for resumeDebuggerThenCloseAndFinish to finish...
If was trying to ensure that resumeDebuggerThenCloseAndFinish wasn't throwing.
The test is most about testing old debugger test helper rather than test a particular STR.

MozReview-Commit-ID: 3gAWOSxjFet

Depends on D13823

Differential Revision: https://phabricator.services.mozilla.com/D13824

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2018-12-11 14:15:56 +00:00
Родитель 1b70409821
Коммит 4f56468ce4
6 изменённых файлов: 0 добавлений и 1141 удалений

Просмотреть файл

@ -9,7 +9,6 @@ DIRS += [
BROWSER_CHROME_MANIFESTS += [ BROWSER_CHROME_MANIFESTS += [
'new/test/mochitest/browser.ini', 'new/test/mochitest/browser.ini',
'test/mochitest/browser.ini'
] ]
with Files('**'): with Files('**'):

Просмотреть файл

@ -1,6 +0,0 @@
"use strict";
module.exports = {
// Extend from the shared list of defined globals for mochitests.
"extends": "../../../.eslintrc.mochitests.js"
};

Просмотреть файл

@ -1,12 +0,0 @@
[DEFAULT]
tags = devtools
subsuite = devtools
skip-if = (os == 'linux' && debug && bits == 32)
support-files =
doc_terminate-on-tab-close.html
head.js
!/devtools/client/shared/test/shared-head.js
!/devtools/client/shared/test/telemetry-test-helpers.js
[browser_dbg_terminate-on-tab-close.js]
uses-unsafe-cpows = true
skip-if = true

Просмотреть файл

@ -1,34 +0,0 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/**
* Tests that debuggee scripts are terminated on tab closure.
*/
// The following rejection should not be left uncaught. This test has been
// whitelisted until the issue is fixed.
if (!gMultiProcessBrowser) {
ChromeUtils.import("resource://testing-common/PromiseTestUtils.jsm", this);
PromiseTestUtils.expectUncaughtRejection(/error\.message is undefined/);
}
const TAB_URL = EXAMPLE_URL + "doc_terminate-on-tab-close.html";
add_task(async () => {
const options = {
source: TAB_URL,
line: 1
};
const { tab, panel } = await initDebugger(TAB_URL, options);
const { gThreadClient } = panel.panelWin;
gThreadClient.addOneTimeListener("paused", () => {
resumeDebuggerThenCloseAndFinish(gPanel).then(function () {
ok(true, "should not throw after this point");
});
});
callInTab(gTab, "debuggerThenThrow");
});

Просмотреть файл

@ -1,20 +0,0 @@
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Debugger test page</title>
</head>
<body>
<script type="text/javascript">
function debuggerThenThrow() {
debugger;
throw "unreachable";
}
</script>
</body>
</html>

Разница между файлами не показана из-за своего большого размера Загрузить разницу