Backed out changeset dedf066bfcfc (bug 1538054) for xpcshell failures at devtools/server/tests/unit/test_pause_exceptions-04.js on a CLOSED TREE

This commit is contained in:
Coroiu Cristina 2019-04-20 00:09:05 +03:00
Родитель 5f4315f3ee
Коммит e687fbf549
3 изменённых файлов: 0 добавлений и 87 удалений

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

@ -1020,8 +1020,6 @@ const ThreadActor = ActorClassWithSpec(threadSpec, {
maybePauseOnExceptions: function() {
if (this._options.pauseOnExceptions) {
this.dbg.onExceptionUnwind = this.onExceptionUnwind.bind(this);
} else {
this.dbg.onExceptionUnwind = undefined;
}
},

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

@ -1,84 +0,0 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-disable no-shadow */
"use strict";
/**
* Test that setting pauseOnExceptions to true and then to false will not cause
* the debuggee to pause when an exception is thrown.
*/
add_task(threadClientTest(async ({ threadClient, client, debuggee }) => {
let packet = null;
threadClient.addOneTimeListener("paused", function(event, pkt) {
packet = pkt;
threadClient.resume();
});
await threadClient.pauseOnExceptions(true, true);
try {
/* eslint-disable */
debuggee.eval(
"(" + function() {
function stopMe() {
throw 42;
}
stopMe();
} + ")()"
);
/* eslint-enable */
} catch (e) {}
Assert.equal(!!packet, true);
Assert.equal(packet.why.type, "exception");
Assert.equal(packet.why.exception, "42");
packet = null;
threadClient.addOneTimeListener("paused", function(event, pkt) {
packet = pkt;
threadClient.resume();
});
await threadClient.pauseOnExceptions(false, true);
try {
/* eslint-disable */
await debuggee.eval(
"(" + function() {
function dontStopMe() {
throw 43;
}
dontStopMe();
} + ")()"
);
/* eslint-enable */
} catch (e) {}
// Test that the paused listener callback hasn't been called
// on the thrown error from dontStopMe()
Assert.equal(!!packet, false);
await threadClient.pauseOnExceptions(true, true);
try {
/* eslint-disable */
debuggee.eval(
"(" + function() {
function stopMeAgain() {
throw 44;
}
stopMeAgain();
} + ")()"
);
/* eslint-enable */
} catch (e) {}
// Test that the paused listener callback has been called
// on the thrown error from stopMeAgain()
Assert.equal(!!packet, true);
Assert.equal(packet.why.type, "exception");
Assert.equal(packet.why.exception, "44");
}, {
// Bug 1508289, exception tests fails in worker scope
doNotRunWorker: true,
}));

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

@ -195,7 +195,6 @@ skip-if = true # breakpoint sliding is not supported bug 1525685
[test_pause_exceptions-01.js]
[test_pause_exceptions-02.js]
[test_pause_exceptions-03.js]
[test_pause_exceptions-04.js]
[test_longstringactor.js]
[test_longstringgrips-01.js]
[test_longstringgrips-02.js]