mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
a101af758e
- Bug 967319 - Sort object properties in natural order in the Variables View. r=jaws (e604fc318) - Bug 1023386 - Split and filter properties remotely for objects. r=past (b4889035f) - Bug 1149115 - Make sure source actors are created before breakpoints are reset;r=jlong (76561a3fd) - Bug 1154606 - improve error in debugger when loading source fails r=jsantell (3678eca90) - Bug 1159731 - Move all Addon actor subclasses to a dedicated file. r=ejpbruel (45e012a98) - Bug 1096294 - Display pseudo-arrays like arrays in the console; r=pbrosset (b4b129b3a) - Bug 1169064 - Part 1: Move ObjectActor to object.js r=fitzgen (579cb4f86) - Bug 1169064 - Part 2: Formatted object.js and removed unused protocol request arguments r=fitzgen (4f3178a6a) - Bug 792063 - Add status console shortcut to return the previous command result;r=past (fc1317f9b) - Bug 1169064 - Part 3: Refactor LongStringActor, createValueGrip, stringIsLong and longStripGrip from script.js to object.js r=fitzgen (ecdff41b7) - AltiVec/VMX is 32bit only, use double cast passing uintptr_t to int to fix compilation on PPC64 (93985b589) - Bug 1084525 - Part 7: Expose Promise life time in object grip r=fitzgen (db5000041) - Bug 1084525 - Part 8: Expose Promise time to settle in object grip r=fitzgen (65b7beb26) - Bug 1084525 - Part 9: Implement getDependentPromises method in ObjectClient r=fitzgen (8cc8be31d) - Bug 1148753 - Update browser content toolbox to create a TabSources instance. r=jryans (df6bf505f) - Bug 1050691 - Click on a function on the console should go to the debugger. r=jlongster (e0d225db1) - Bug 1084525 - Part 10: Implement getAllocationStack method in ObjectClient r=fitzgen (199ce4dd9) - Bug 1084525 - Part 12: Fix eslint complaints in promise.js r=fitzgen (7d0a38afe) - Bug 1084525 - Part 13: Add test for asserting the Promise allocation stack in chrome debugging r=fitzgen (60278cf1d) - Bug 1164564 - Refactor Promise-backend.js so it can be required as a CommonJS module on the main thread;r=paolo (7cfe3cdd9) - Bug 1181506 - Define Cc and Ci. r=Yoric (bc3968be3)
51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/**
|
|
* Make sure that the DebuggerView error loading source text is correct.
|
|
*/
|
|
|
|
const TAB_URL = EXAMPLE_URL + "doc_script-switching-01.html";
|
|
|
|
let gTab, gPanel, gDebugger;
|
|
let gView, gEditor, gL10N;
|
|
|
|
function test() {
|
|
initDebugger(TAB_URL).then(([aTab,, aPanel]) => {
|
|
gTab = aTab;
|
|
gPanel = aPanel;
|
|
gDebugger = gPanel.panelWin;
|
|
gView = gDebugger.DebuggerView;
|
|
gEditor = gDebugger.DebuggerView.editor;
|
|
gL10N = gDebugger.L10N;
|
|
|
|
waitForSourceShown(gPanel, "-01.js")
|
|
.then(showBogusSource)
|
|
.then(testDebuggerLoadingError)
|
|
.then(() => closeDebuggerAndFinish(gPanel))
|
|
.then(null, aError => {
|
|
ok(false, "Got an error: " + aError.message + "\n" + aError.stack);
|
|
});
|
|
});
|
|
}
|
|
|
|
function showBogusSource() {
|
|
let finished = waitForDebuggerEvents(gPanel, gDebugger.EVENTS.SOURCE_ERROR_SHOWN);
|
|
gView._setEditorSource({ url: "http://example.com/fake.js", actor: "fake.actor" });
|
|
return finished;
|
|
}
|
|
|
|
function testDebuggerLoadingError() {
|
|
ok(gEditor.getText().includes(gL10N.getFormatStr("errorLoadingText2", "noSuchActor")),
|
|
"The valid error loading message is displayed.");
|
|
}
|
|
|
|
registerCleanupFunction(function() {
|
|
gTab = null;
|
|
gPanel = null;
|
|
gDebugger = null;
|
|
gView = null;
|
|
gEditor = null;
|
|
gL10N = null;
|
|
});
|