mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE
This commit is contained in:
parent
ae7d4aec00
commit
cd93f441eb
@ -1,26 +1,26 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Constants
|
// Constants
|
||||||
|
|
||||||
var RELATION_CONTROLLED_BY = nsIAccessibleRelation.RELATION_CONTROLLED_BY;
|
const RELATION_CONTROLLED_BY = nsIAccessibleRelation.RELATION_CONTROLLED_BY;
|
||||||
var RELATION_CONTROLLER_FOR = nsIAccessibleRelation.RELATION_CONTROLLER_FOR;
|
const RELATION_CONTROLLER_FOR = nsIAccessibleRelation.RELATION_CONTROLLER_FOR;
|
||||||
var RELATION_DEFAULT_BUTTON = nsIAccessibleRelation.RELATION_DEFAULT_BUTTON;
|
const RELATION_DEFAULT_BUTTON = nsIAccessibleRelation.RELATION_DEFAULT_BUTTON;
|
||||||
var RELATION_DESCRIBED_BY = nsIAccessibleRelation.RELATION_DESCRIBED_BY;
|
const RELATION_DESCRIBED_BY = nsIAccessibleRelation.RELATION_DESCRIBED_BY;
|
||||||
var RELATION_DESCRIPTION_FOR = nsIAccessibleRelation.RELATION_DESCRIPTION_FOR;
|
const RELATION_DESCRIPTION_FOR = nsIAccessibleRelation.RELATION_DESCRIPTION_FOR;
|
||||||
var RELATION_EMBEDDED_BY = nsIAccessibleRelation.RELATION_EMBEDDED_BY;
|
const RELATION_EMBEDDED_BY = nsIAccessibleRelation.RELATION_EMBEDDED_BY;
|
||||||
var RELATION_EMBEDS = nsIAccessibleRelation.RELATION_EMBEDS;
|
const RELATION_EMBEDS = nsIAccessibleRelation.RELATION_EMBEDS;
|
||||||
var RELATION_FLOWS_FROM = nsIAccessibleRelation.RELATION_FLOWS_FROM;
|
const RELATION_FLOWS_FROM = nsIAccessibleRelation.RELATION_FLOWS_FROM;
|
||||||
var RELATION_FLOWS_TO = nsIAccessibleRelation.RELATION_FLOWS_TO;
|
const RELATION_FLOWS_TO = nsIAccessibleRelation.RELATION_FLOWS_TO;
|
||||||
var RELATION_LABEL_FOR = nsIAccessibleRelation.RELATION_LABEL_FOR;
|
const RELATION_LABEL_FOR = nsIAccessibleRelation.RELATION_LABEL_FOR;
|
||||||
var RELATION_LABELLED_BY = nsIAccessibleRelation.RELATION_LABELLED_BY;
|
const RELATION_LABELLED_BY = nsIAccessibleRelation.RELATION_LABELLED_BY;
|
||||||
var RELATION_MEMBER_OF = nsIAccessibleRelation.RELATION_MEMBER_OF;
|
const RELATION_MEMBER_OF = nsIAccessibleRelation.RELATION_MEMBER_OF;
|
||||||
var RELATION_NODE_CHILD_OF = nsIAccessibleRelation.RELATION_NODE_CHILD_OF;
|
const RELATION_NODE_CHILD_OF = nsIAccessibleRelation.RELATION_NODE_CHILD_OF;
|
||||||
var RELATION_NODE_PARENT_OF = nsIAccessibleRelation.RELATION_NODE_PARENT_OF;
|
const RELATION_NODE_PARENT_OF = nsIAccessibleRelation.RELATION_NODE_PARENT_OF;
|
||||||
var RELATION_PARENT_WINDOW_OF = nsIAccessibleRelation.RELATION_PARENT_WINDOW_OF;
|
const RELATION_PARENT_WINDOW_OF = nsIAccessibleRelation.RELATION_PARENT_WINDOW_OF;
|
||||||
var RELATION_POPUP_FOR = nsIAccessibleRelation.RELATION_POPUP_FOR;
|
const RELATION_POPUP_FOR = nsIAccessibleRelation.RELATION_POPUP_FOR;
|
||||||
var RELATION_SUBWINDOW_OF = nsIAccessibleRelation.RELATION_SUBWINDOW_OF;
|
const RELATION_SUBWINDOW_OF = nsIAccessibleRelation.RELATION_SUBWINDOW_OF;
|
||||||
var RELATION_CONTAINING_DOCUMENT = nsIAccessibleRelation.RELATION_CONTAINING_DOCUMENT;
|
const RELATION_CONTAINING_DOCUMENT = nsIAccessibleRelation.RELATION_CONTAINING_DOCUMENT;
|
||||||
var RELATION_CONTAINING_TAB_PANE = nsIAccessibleRelation.RELATION_CONTAINING_TAB_PANE;
|
const RELATION_CONTAINING_TAB_PANE = nsIAccessibleRelation.RELATION_CONTAINING_TAB_PANE;
|
||||||
var RELATION_CONTAINING_APPLICATION = nsIAccessibleRelation.RELATION_CONTAINING_APPLICATION;
|
const RELATION_CONTAINING_APPLICATION = nsIAccessibleRelation.RELATION_CONTAINING_APPLICATION;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// General
|
// General
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
const { utils: Cu } = Components;
|
const { utils: Cu } = Components;
|
||||||
const {require} = Cu.import(`${ROOT}/toolkit/require.js`, {});
|
const {require} = Cu.import(`${ROOT}/toolkit/require.js`, {});
|
||||||
const {Bootstrap} = require(`${ROOT}/sdk/addon/bootstrap.js`);
|
const {Bootstrap} = require(`${ROOT}/sdk/addon/bootstrap.js`);
|
||||||
var {startup, shutdown, install, uninstall} = new Bootstrap();
|
const {startup, shutdown, install, uninstall} = new Bootstrap();
|
||||||
|
@ -727,7 +727,7 @@ exports["test requestAnimationFrame"] = createProxyTest("", function (helper) {
|
|||||||
exports["testGlobalScope"] = createProxyTest("", function (helper) {
|
exports["testGlobalScope"] = createProxyTest("", function (helper) {
|
||||||
|
|
||||||
helper.createWorker(
|
helper.createWorker(
|
||||||
'var toplevelScope = true;' +
|
'let toplevelScope = true;' +
|
||||||
'assert(window.toplevelScope, "variables in toplevel scope are set to `window` object");' +
|
'assert(window.toplevelScope, "variables in toplevel scope are set to `window` object");' +
|
||||||
'assert(this.toplevelScope, "variables in toplevel scope are set to `this` object");' +
|
'assert(this.toplevelScope, "variables in toplevel scope are set to `this` object");' +
|
||||||
'done();'
|
'done();'
|
||||||
|
@ -3722,8 +3722,6 @@ const BrowserSearch = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "BrowserSearch", BrowserSearch);
|
|
||||||
|
|
||||||
function FillHistoryMenu(aParent) {
|
function FillHistoryMenu(aParent) {
|
||||||
// Lazily add the hover listeners on first showing and never remove them
|
// Lazily add the hover listeners on first showing and never remove them
|
||||||
if (!aParent.hasStatusListener) {
|
if (!aParent.hasStatusListener) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var TEST_PINGS = [
|
const TEST_PINGS = [
|
||||||
{
|
{
|
||||||
type: "test-telemetryArchive-1",
|
type: "test-telemetryArchive-1",
|
||||||
payload: { foo: "bar" },
|
payload: { foo: "bar" },
|
||||||
|
@ -1594,11 +1594,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||||||
document.getElementById("addon-progress-notification-progresstext");
|
document.getElementById("addon-progress-notification-progresstext");
|
||||||
</field>
|
</field>
|
||||||
<field name="DownloadUtils" readonly="true">
|
<field name="DownloadUtils" readonly="true">
|
||||||
{
|
let utils = {};
|
||||||
let utils = {};
|
Components.utils.import("resource://gre/modules/DownloadUtils.jsm", utils);
|
||||||
Components.utils.import("resource://gre/modules/DownloadUtils.jsm", utils);
|
utils.DownloadUtils;
|
||||||
utils.DownloadUtils;
|
|
||||||
}
|
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<method name="destroy">
|
<method name="destroy">
|
||||||
@ -2678,13 +2676,11 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||||||
]]></destructor>
|
]]></destructor>
|
||||||
|
|
||||||
<field name="_panel" readonly="true"><![CDATA[
|
<field name="_panel" readonly="true"><![CDATA[
|
||||||
{
|
let node = this.parentNode;
|
||||||
let node = this.parentNode;
|
while(node && node.localName != "panel") {
|
||||||
while(node && node.localName != "panel") {
|
node = node.parentNode;
|
||||||
node = node.parentNode;
|
|
||||||
}
|
|
||||||
node;
|
|
||||||
}
|
}
|
||||||
|
node;
|
||||||
]]></field>
|
]]></field>
|
||||||
<field name="_promomessage" readonly="true">
|
<field name="_promomessage" readonly="true">
|
||||||
document.getAnonymousElementByAttribute(this, "anonid", "promo-message");
|
document.getAnonymousElementByAttribute(this, "anonid", "promo-message");
|
||||||
|
@ -510,8 +510,6 @@ const PanelUI = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "PanelUI", PanelUI);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the currently selected locale for display.
|
* Gets the currently selected locale for display.
|
||||||
* @return the selected locale or "en-US" if none is selected
|
* @return the selected locale or "en-US" if none is selected
|
||||||
|
@ -9,18 +9,17 @@ add_task(function*() {
|
|||||||
defaultArea: CustomizableUI.AREA_NAVBAR
|
defaultArea: CustomizableUI.AREA_NAVBAR
|
||||||
});
|
});
|
||||||
|
|
||||||
const kPrefCustomizationState = "browser.uiCustomization.state";
|
|
||||||
let bsPass = Cu.import("resource:///modules/CustomizableUI.jsm", {});
|
let bsPass = Cu.import("resource:///modules/CustomizableUI.jsm", {});
|
||||||
ok(bsPass.gSeenWidgets.has(BUTTONID), "Widget should be seen after createWidget is called.");
|
ok(bsPass.gSeenWidgets.has(BUTTONID), "Widget should be seen after createWidget is called.");
|
||||||
CustomizableUI.reset();
|
CustomizableUI.reset();
|
||||||
ok(bsPass.gSeenWidgets.has(BUTTONID), "Widget should still be seen after reset.");
|
ok(bsPass.gSeenWidgets.has(BUTTONID), "Widget should still be seen after reset.");
|
||||||
ok(!Services.prefs.prefHasUserValue(kPrefCustomizationState), "Pref shouldn't be set right now, because that'd break undo.");
|
ok(!Services.prefs.prefHasUserValue(bsPass.kPrefCustomizationState), "Pref shouldn't be set right now, because that'd break undo.");
|
||||||
CustomizableUI.addWidgetToArea(BUTTONID, CustomizableUI.AREA_NAVBAR);
|
CustomizableUI.addWidgetToArea(BUTTONID, CustomizableUI.AREA_NAVBAR);
|
||||||
gCustomizeMode.removeFromArea(document.getElementById(BUTTONID));
|
gCustomizeMode.removeFromArea(document.getElementById(BUTTONID));
|
||||||
let hasUserValue = Services.prefs.prefHasUserValue(kPrefCustomizationState);
|
let hasUserValue = Services.prefs.prefHasUserValue(bsPass.kPrefCustomizationState);
|
||||||
ok(hasUserValue, "Pref should be set right now.");
|
ok(hasUserValue, "Pref should be set right now.");
|
||||||
if (hasUserValue) {
|
if (hasUserValue) {
|
||||||
let seenArray = JSON.parse(Services.prefs.getCharPref(kPrefCustomizationState)).seen;
|
let seenArray = JSON.parse(Services.prefs.getCharPref(bsPass.kPrefCustomizationState)).seen;
|
||||||
isnot(seenArray.indexOf(BUTTONID), -1, "Widget should be in saved 'seen' list.");
|
isnot(seenArray.indexOf(BUTTONID), -1, "Widget should be in saved 'seen' list.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -580,8 +580,6 @@ const DownloadsPanel = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "DownloadsPanel", DownloadsPanel);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
//// DownloadsOverlayLoader
|
//// DownloadsOverlayLoader
|
||||||
|
|
||||||
@ -660,8 +658,6 @@ const DownloadsOverlayLoader = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "DownloadsOverlayLoader", DownloadsOverlayLoader);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
//// DownloadsView
|
//// DownloadsView
|
||||||
|
|
||||||
@ -1008,8 +1004,6 @@ const DownloadsView = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "DownloadsView", DownloadsView);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
//// DownloadsViewItem
|
//// DownloadsViewItem
|
||||||
|
|
||||||
@ -1148,8 +1142,6 @@ const DownloadsViewController = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "DownloadsViewController", DownloadsViewController);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
//// DownloadsViewItemController
|
//// DownloadsViewItemController
|
||||||
|
|
||||||
@ -1496,9 +1488,7 @@ const DownloadsSummary = {
|
|||||||
delete this._detailsNode;
|
delete this._detailsNode;
|
||||||
return this._detailsNode = node;
|
return this._detailsNode = node;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "DownloadsSummary", DownloadsSummary);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
//// DownloadsFooter
|
//// DownloadsFooter
|
||||||
@ -1552,5 +1542,3 @@ const DownloadsFooter = {
|
|||||||
return this._footerNode = node;
|
return this._footerNode = node;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "DownloadsFooter", DownloadsFooter);
|
|
||||||
|
@ -577,8 +577,3 @@ const DownloadsIndicatorView = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
Object.defineProperty(this, "DownloadsIndicatorView", {
|
|
||||||
value: DownloadsIndicatorView,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
|
@ -17,7 +17,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "OS", "resource://gre/modules/osfile.jsm
|
|||||||
this.EXPORTED_SYMBOLS = ["LoopRoomsCache"];
|
this.EXPORTED_SYMBOLS = ["LoopRoomsCache"];
|
||||||
|
|
||||||
const LOOP_ROOMS_CACHE_FILENAME = "loopRoomsCache.json";
|
const LOOP_ROOMS_CACHE_FILENAME = "loopRoomsCache.json";
|
||||||
XPCOMUtils.defineConstant(this, "LOOP_ROOMS_CACHE_FILENAME", LOOP_ROOMS_CACHE_FILENAME);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RoomsCache is a cache for saving simple rooms data to the disk in case we
|
* RoomsCache is a cache for saving simple rooms data to the disk in case we
|
||||||
|
@ -112,14 +112,6 @@ this.EXPORTED_SYMBOLS = ["MozLoopService", "LOOP_SESSION_TYPE",
|
|||||||
"TWO_WAY_MEDIA_CONN_LENGTH", "SHARING_STATE_CHANGE", "SHARING_ROOM_URL",
|
"TWO_WAY_MEDIA_CONN_LENGTH", "SHARING_STATE_CHANGE", "SHARING_ROOM_URL",
|
||||||
"ROOM_CREATE", "ROOM_DELETE", "ROOM_CONTEXT_ADD"];
|
"ROOM_CREATE", "ROOM_DELETE", "ROOM_CONTEXT_ADD"];
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "LOOP_SESSION_TYPE", LOOP_SESSION_TYPE);
|
|
||||||
XPCOMUtils.defineConstant(this, "TWO_WAY_MEDIA_CONN_LENGTH", TWO_WAY_MEDIA_CONN_LENGTH);
|
|
||||||
XPCOMUtils.defineConstant(this, "SHARING_STATE_CHANGE", SHARING_STATE_CHANGE);
|
|
||||||
XPCOMUtils.defineConstant(this, "SHARING_ROOM_URL", SHARING_ROOM_URL);
|
|
||||||
XPCOMUtils.defineConstant(this, "ROOM_CREATE", ROOM_CREATE);
|
|
||||||
XPCOMUtils.defineConstant(this, "ROOM_DELETE", ROOM_DELETE);
|
|
||||||
XPCOMUtils.defineConstant(this, "ROOM_CONTEXT_ADD", ROOM_CONTEXT_ADD);
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "injectLoopAPI",
|
XPCOMUtils.defineLazyModuleGetter(this, "injectLoopAPI",
|
||||||
"resource:///modules/loop/MozLoopAPI.jsm");
|
"resource:///modules/loop/MozLoopAPI.jsm");
|
||||||
|
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
|
var Imports = {};
|
||||||
|
Cu.import("resource:///modules/sessionstore/SessionSaver.jsm", Imports);
|
||||||
|
var {SessionSaver} = Imports;
|
||||||
|
|
||||||
add_task(function cleanup() {
|
add_task(function cleanup() {
|
||||||
info("Forgetting closed tabs");
|
info("Forgetting closed tabs");
|
||||||
while (ss.getClosedTabCount(window)) {
|
while (ss.getClosedTabCount(window)) {
|
||||||
|
@ -94,7 +94,6 @@ const TELEMETRY_LOG = {
|
|||||||
RECHECK: "RECHECK",
|
RECHECK: "RECHECK",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
XPCOMUtils.defineConstant(this, "TELEMETRY_LOG", TELEMETRY_LOG);
|
|
||||||
|
|
||||||
const gPrefs = new Preferences(PREF_BRANCH);
|
const gPrefs = new Preferences(PREF_BRANCH);
|
||||||
const gPrefsTelemetry = new Preferences(PREF_BRANCH_TELEMETRY);
|
const gPrefsTelemetry = new Preferences(PREF_BRANCH_TELEMETRY);
|
||||||
|
@ -11,7 +11,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
var Registry = Cu.import("resource://gre/modules/WindowsRegistry.jsm").WindowsRegistry;
|
var Registry = Cu.import("resource://gre/modules/WindowsRegistry.jsm").WindowsRegistry;
|
||||||
|
|
||||||
var Windows8WindowFrameColor = {
|
const Windows8WindowFrameColor = {
|
||||||
_windowFrameColor: null,
|
_windowFrameColor: null,
|
||||||
|
|
||||||
get: function() {
|
get: function() {
|
||||||
|
@ -77,7 +77,6 @@ const EVENTS = {
|
|||||||
SOURCE_SHOWN_IN_JS_DEBUGGER: "CanvasDebugger:SourceShownInJsDebugger",
|
SOURCE_SHOWN_IN_JS_DEBUGGER: "CanvasDebugger:SourceShownInJsDebugger",
|
||||||
SOURCE_NOT_FOUND_IN_JS_DEBUGGER: "CanvasDebugger:SourceNotFoundInJsDebugger"
|
SOURCE_NOT_FOUND_IN_JS_DEBUGGER: "CanvasDebugger:SourceNotFoundInJsDebugger"
|
||||||
};
|
};
|
||||||
XPCOMUtils.defineConstant(this, "EVENTS", EVENTS);
|
|
||||||
|
|
||||||
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
||||||
const STRINGS_URI = "chrome://browser/locale/devtools/canvasdebugger.properties";
|
const STRINGS_URI = "chrome://browser/locale/devtools/canvasdebugger.properties";
|
||||||
|
@ -104,7 +104,6 @@ Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
|||||||
|
|
||||||
Cu.import("resource:///modules/devtools/client/shared/browser-loader.js");
|
Cu.import("resource:///modules/devtools/client/shared/browser-loader.js");
|
||||||
const require = BrowserLoader("resource:///modules/devtools/client/debugger/", this).require;
|
const require = BrowserLoader("resource:///modules/devtools/client/debugger/", this).require;
|
||||||
XPCOMUtils.defineConstant(this, "require", require);
|
|
||||||
|
|
||||||
const {TargetFactory} = require("devtools/client/framework/target");
|
const {TargetFactory} = require("devtools/client/framework/target");
|
||||||
const {Toolbox} = require("devtools/client/framework/toolbox");
|
const {Toolbox} = require("devtools/client/framework/toolbox");
|
||||||
@ -115,8 +114,6 @@ const DebuggerEditor = require("devtools/client/sourceeditor/debugger");
|
|||||||
const {Tooltip} = require("devtools/client/shared/widgets/Tooltip");
|
const {Tooltip} = require("devtools/client/shared/widgets/Tooltip");
|
||||||
const FastListWidget = require("devtools/client/shared/widgets/FastListWidget");
|
const FastListWidget = require("devtools/client/shared/widgets/FastListWidget");
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "EVENTS", EVENTS);
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
XPCOMUtils.defineLazyModuleGetter(this, "Task",
|
||||||
"resource://gre/modules/Task.jsm");
|
"resource://gre/modules/Task.jsm");
|
||||||
|
|
||||||
|
@ -49,19 +49,6 @@ const services = {
|
|||||||
const EventListenersView = require('./content/views/event-listeners-view');
|
const EventListenersView = require('./content/views/event-listeners-view');
|
||||||
const actions = require('./content/actions/event-listeners');
|
const actions = require('./content/actions/event-listeners');
|
||||||
|
|
||||||
Object.defineProperties(this, {
|
|
||||||
"store": {
|
|
||||||
value: store,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
},
|
|
||||||
"services": {
|
|
||||||
value: services,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Object defining the debugger view components.
|
* Object defining the debugger view components.
|
||||||
*/
|
*/
|
||||||
|
@ -40,13 +40,11 @@ function test() {
|
|||||||
let updatedFrame = yield waitForDebuggerEvents(gPanel, gDebugger.EVENTS.FETCHED_SCOPES);
|
let updatedFrame = yield waitForDebuggerEvents(gPanel, gDebugger.EVENTS.FETCHED_SCOPES);
|
||||||
let variables = gDebugger.DebuggerView.Variables;
|
let variables = gDebugger.DebuggerView.Variables;
|
||||||
|
|
||||||
is(variables._store.length, 3, "Correct number of scopes available");
|
is(variables._store.length, 2, "Correct number of scopes available");
|
||||||
is(variables.getScopeAtIndex(0).name, "With scope [Object]",
|
is(variables.getScopeAtIndex(0).name, "With scope [Object]",
|
||||||
"Paused with correct scope (0)");
|
"Paused with correct scope (0)");
|
||||||
is(variables.getScopeAtIndex(1).name, "Block scope",
|
is(variables.getScopeAtIndex(1).name, "Global scope [Window]",
|
||||||
"Paused with correct scope (1)");
|
"Paused with correct scope (1)");
|
||||||
is(variables.getScopeAtIndex(2).name, "Global scope [Window]",
|
|
||||||
"Paused with correct scope (2)");
|
|
||||||
|
|
||||||
let onceResumed = gTarget.once("thread-resumed");
|
let onceResumed = gTarget.once("thread-resumed");
|
||||||
EventUtils.sendMouseEvent({ type: "mousedown" }, gResumeButton, gDebugger);
|
EventUtils.sendMouseEvent({ type: "mousedown" }, gResumeButton, gDebugger);
|
||||||
|
@ -49,15 +49,13 @@ function test() {
|
|||||||
let updatedFrame = yield waitForDebuggerEvents(gPanel, gDebugger.EVENTS.FETCHED_SCOPES);
|
let updatedFrame = yield waitForDebuggerEvents(gPanel, gDebugger.EVENTS.FETCHED_SCOPES);
|
||||||
let variables = gDebugger.DebuggerView.Variables;
|
let variables = gDebugger.DebuggerView.Variables;
|
||||||
|
|
||||||
is(variables._store.length, 4, "Correct number of scopes available");
|
is(variables._store.length, 3, "Correct number of scopes available");
|
||||||
is(variables.getScopeAtIndex(0).name, "Function scope [interval<]",
|
is(variables.getScopeAtIndex(0).name, "Function scope [interval<]",
|
||||||
"Paused with correct scope (0)");
|
"Paused with correct scope (0)");
|
||||||
is(variables.getScopeAtIndex(1).name, "Block scope",
|
is(variables.getScopeAtIndex(1).name, "Block scope",
|
||||||
"Paused with correct scope (1)");
|
"Paused with correct scope (1)");
|
||||||
is(variables.getScopeAtIndex(2).name, "Block scope",
|
is(variables.getScopeAtIndex(2).name, "Global scope [Window]",
|
||||||
"Paused with correct scope (2)");
|
"Paused with correct scope (2)");
|
||||||
is(variables.getScopeAtIndex(3).name, "Global scope [Window]",
|
|
||||||
"Paused with correct scope (3)");
|
|
||||||
|
|
||||||
yield evalInTab(gTab, "clearInterval(interval)");
|
yield evalInTab(gTab, "clearInterval(interval)");
|
||||||
let onceResumed = gTarget.once("thread-resumed");
|
let onceResumed = gTarget.once("thread-resumed");
|
||||||
@ -78,21 +76,15 @@ function test() {
|
|||||||
let updatedFrame = yield waitForDebuggerEvents(gPanel, gDebugger.EVENTS.FETCHED_SCOPES);
|
let updatedFrame = yield waitForDebuggerEvents(gPanel, gDebugger.EVENTS.FETCHED_SCOPES);
|
||||||
let variables = gDebugger.DebuggerView.Variables;
|
let variables = gDebugger.DebuggerView.Variables;
|
||||||
|
|
||||||
is(variables._store.length, 6, "Correct number of scopes available");
|
is(variables._store.length, 4, "Correct number of scopes available");
|
||||||
is(variables.getScopeAtIndex(0).name, "Function scope [onclick]",
|
is(variables.getScopeAtIndex(0).name, "Function scope [onclick]",
|
||||||
"Paused with correct scope (0)");
|
"Paused with correct scope (0)");
|
||||||
// Non-syntactic lexical scope introduced by non-syntactic scope chain.
|
is(variables.getScopeAtIndex(1).name, "With scope [HTMLButtonElement]",
|
||||||
is(variables.getScopeAtIndex(1).name, "Block scope",
|
|
||||||
"Paused with correct scope (1)");
|
"Paused with correct scope (1)");
|
||||||
is(variables.getScopeAtIndex(2).name, "With scope [HTMLButtonElement]",
|
is(variables.getScopeAtIndex(2).name, "With scope [HTMLDocument]",
|
||||||
"Paused with correct scope (2)");
|
"Paused with correct scope (2)");
|
||||||
is(variables.getScopeAtIndex(3).name, "With scope [HTMLDocument]",
|
is(variables.getScopeAtIndex(3).name, "Global scope [Window]",
|
||||||
"Paused with correct scope (3)");
|
"Paused with correct scope (3)");
|
||||||
// Global lexical scope.
|
|
||||||
is(variables.getScopeAtIndex(4).name, "Block scope",
|
|
||||||
"Paused with correct scope (4)");
|
|
||||||
is(variables.getScopeAtIndex(5).name, "Global scope [Window]",
|
|
||||||
"Paused with correct scope (5)");
|
|
||||||
|
|
||||||
let onceResumed = gTarget.once("thread-resumed");
|
let onceResumed = gTarget.once("thread-resumed");
|
||||||
EventUtils.sendMouseEvent({ type: "mousedown" }, gResumeButton, gDebugger);
|
EventUtils.sendMouseEvent({ type: "mousedown" }, gResumeButton, gDebugger);
|
||||||
|
@ -53,8 +53,8 @@ function testPauseOnExceptionsDisabled() {
|
|||||||
|
|
||||||
is(gFrames.itemCount, 1,
|
is(gFrames.itemCount, 1,
|
||||||
"Should have one frame.");
|
"Should have one frame.");
|
||||||
is(gVariables._store.length, 4,
|
is(gVariables._store.length, 3,
|
||||||
"Should have four scopes.");
|
"Should have three scopes.");
|
||||||
|
|
||||||
is(innerNodes[0].querySelector(".name").getAttribute("value"), "this",
|
is(innerNodes[0].querySelector(".name").getAttribute("value"), "this",
|
||||||
"Should have the right property name for 'this'.");
|
"Should have the right property name for 'this'.");
|
||||||
@ -96,8 +96,8 @@ function testPauseOnExceptionsEnabled() {
|
|||||||
|
|
||||||
is(gFrames.itemCount, 1,
|
is(gFrames.itemCount, 1,
|
||||||
"Should have one frame.");
|
"Should have one frame.");
|
||||||
is(gVariables._store.length, 4,
|
is(gVariables._store.length, 3,
|
||||||
"Should have four scopes.");
|
"Should have three scopes.");
|
||||||
|
|
||||||
is(innerNodes[0].querySelector(".name").getAttribute("value"), "<exception>",
|
is(innerNodes[0].querySelector(".name").getAttribute("value"), "<exception>",
|
||||||
"Should have the right property name for <exception>.");
|
"Should have the right property name for <exception>.");
|
||||||
@ -117,8 +117,8 @@ function testPauseOnExceptionsEnabled() {
|
|||||||
|
|
||||||
is(gFrames.itemCount, 1,
|
is(gFrames.itemCount, 1,
|
||||||
"Should have one frame.");
|
"Should have one frame.");
|
||||||
is(gVariables._store.length, 4,
|
is(gVariables._store.length, 3,
|
||||||
"Should have four scopes.");
|
"Should have three scopes.");
|
||||||
|
|
||||||
is(innerNodes[0].querySelector(".name").getAttribute("value"), "this",
|
is(innerNodes[0].querySelector(".name").getAttribute("value"), "this",
|
||||||
"Should have the right property name for 'this'.");
|
"Should have the right property name for 'this'.");
|
||||||
|
@ -52,8 +52,8 @@ function testPauseOnExceptionsAfterReload() {
|
|||||||
|
|
||||||
is(gFrames.itemCount, 1,
|
is(gFrames.itemCount, 1,
|
||||||
"Should have one frame.");
|
"Should have one frame.");
|
||||||
is(gVariables._store.length, 4,
|
is(gVariables._store.length, 3,
|
||||||
"Should have four scopes.");
|
"Should have three scopes.");
|
||||||
|
|
||||||
is(innerNodes[0].querySelector(".name").getAttribute("value"), "<exception>",
|
is(innerNodes[0].querySelector(".name").getAttribute("value"), "<exception>",
|
||||||
"Should have the right property name for <exception>.");
|
"Should have the right property name for <exception>.");
|
||||||
@ -73,8 +73,8 @@ function testPauseOnExceptionsAfterReload() {
|
|||||||
|
|
||||||
is(gFrames.itemCount, 1,
|
is(gFrames.itemCount, 1,
|
||||||
"Should have one frame.");
|
"Should have one frame.");
|
||||||
is(gVariables._store.length, 4,
|
is(gVariables._store.length, 3,
|
||||||
"Should have four scopes.");
|
"Should have three scopes.");
|
||||||
|
|
||||||
is(innerNodes[0].querySelector(".name").getAttribute("value"), "this",
|
is(innerNodes[0].querySelector(".name").getAttribute("value"), "this",
|
||||||
"Should have the right property name for 'this'.");
|
"Should have the right property name for 'this'.");
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
const TAB_URL = EXAMPLE_URL + "doc_promise.html";
|
const TAB_URL = EXAMPLE_URL + "doc_promise.html";
|
||||||
|
|
||||||
var test = Task.async(function* () {
|
const test = Task.async(function* () {
|
||||||
const [tab,, panel] = yield initDebugger(TAB_URL);
|
const [tab,, panel] = yield initDebugger(TAB_URL);
|
||||||
yield ensureSourceIs(panel, "doc_promise.html", true);
|
yield ensureSourceIs(panel, "doc_promise.html", true);
|
||||||
|
|
||||||
|
@ -44,8 +44,7 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
let protoVar = localScope.get("__proto__");
|
let protoVar = localScope.get("__proto__");
|
||||||
let constrVar = protoVar.get("constructor");
|
let constrVar = protoVar.get("constructor");
|
||||||
let proto2Var = constrVar.get("__proto__");
|
let proto2Var = constrVar.get("__proto__");
|
||||||
@ -58,8 +57,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The withScope should be expanded.");
|
"The withScope should be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should be expanded.");
|
"The functionScope should be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalLexicalScope should be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should be expanded.");
|
"The globalScope should be expanded.");
|
||||||
|
|
||||||
@ -78,8 +75,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"There should be 0 variables displayed in the with scope.");
|
"There should be 0 variables displayed in the with scope.");
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
||||||
"There should be 0 variables displayed in the function scope.");
|
"There should be 0 variables displayed in the function scope.");
|
||||||
is(globalLexicalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
|
||||||
"There should be 0 variables displayed in the global lexical scope.");
|
|
||||||
is(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
is(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
||||||
"There should be 0 variables displayed in the global scope.");
|
"There should be 0 variables displayed in the global scope.");
|
||||||
|
|
||||||
@ -87,8 +82,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"There should be 0 properties displayed in the with scope.");
|
"There should be 0 properties displayed in the with scope.");
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
is(functionScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
||||||
"There should be 0 properties displayed in the function scope.");
|
"There should be 0 properties displayed in the function scope.");
|
||||||
is(globalLexicalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
|
||||||
"There should be 0 properties displayed in the global lexical scope.");
|
|
||||||
is(globalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
is(globalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
||||||
"There should be 0 properties displayed in the global scope.");
|
"There should be 0 properties displayed in the global scope.");
|
||||||
|
|
||||||
@ -113,7 +106,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
localScope.collapse();
|
localScope.collapse();
|
||||||
withScope.collapse();
|
withScope.collapse();
|
||||||
functionScope.collapse();
|
functionScope.collapse();
|
||||||
globalLexicalScope.collapse();
|
|
||||||
globalScope.collapse();
|
globalScope.collapse();
|
||||||
protoVar.collapse();
|
protoVar.collapse();
|
||||||
constrVar.collapse();
|
constrVar.collapse();
|
||||||
@ -126,8 +118,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The withScope should not be expanded.");
|
"The withScope should not be expanded.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded.");
|
"The functionScope should not be expanded.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalLexicalScope should not be expanded.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded.");
|
"The globalScope should not be expanded.");
|
||||||
|
|
||||||
@ -155,17 +145,14 @@ function prepareVariablesAndProperties() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
"The localScope should be expanded.");
|
"The localScope should be expanded.");
|
||||||
is(withScope.expanded, false,
|
is(withScope.expanded, false,
|
||||||
"The withScope should not be expanded yet.");
|
"The withScope should not be expanded yet.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded yet.");
|
"The functionScope should not be expanded yet.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalLexicalScope should not be expanded yet.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
@ -177,9 +164,7 @@ function prepareVariablesAndProperties() {
|
|||||||
is(withScope.expanded, true,
|
is(withScope.expanded, true,
|
||||||
"The withScope should now be expanded.");
|
"The withScope should now be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should now be expanded.");
|
"The functionScope should now be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalLexicalScope should be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should now be expanded.");
|
"The globalScope should now be expanded.");
|
||||||
|
|
||||||
@ -221,7 +206,6 @@ function prepareVariablesAndProperties() {
|
|||||||
|
|
||||||
withScope.expand();
|
withScope.expand();
|
||||||
functionScope.expand();
|
functionScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
@ -44,8 +44,7 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
let protoVar = localScope.get("__proto__");
|
let protoVar = localScope.get("__proto__");
|
||||||
let constrVar = protoVar.get("constructor");
|
let constrVar = protoVar.get("constructor");
|
||||||
let proto2Var = constrVar.get("__proto__");
|
let proto2Var = constrVar.get("__proto__");
|
||||||
@ -58,8 +57,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The withScope should be expanded.");
|
"The withScope should be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should be expanded.");
|
"The functionScope should be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalScope should be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should be expanded.");
|
"The globalScope should be expanded.");
|
||||||
|
|
||||||
@ -78,8 +75,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"There should be 0 variables displayed in the with scope.");
|
"There should be 0 variables displayed in the with scope.");
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
||||||
"There should be 0 variables displayed in the function scope.");
|
"There should be 0 variables displayed in the function scope.");
|
||||||
is(globalLexicalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
|
||||||
"There should be no variables displayed in the global lexical scope.");
|
|
||||||
is(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
is(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
||||||
"There should be no variables displayed in the global scope.");
|
"There should be no variables displayed in the global scope.");
|
||||||
|
|
||||||
@ -89,8 +84,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"There should be 0 properties displayed in the with scope.");
|
"There should be 0 properties displayed in the with scope.");
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
is(functionScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
||||||
"There should be 0 properties displayed in the function scope.");
|
"There should be 0 properties displayed in the function scope.");
|
||||||
is(globalLexicalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
|
||||||
"There should be 0 properties displayed in the global lexical scope.");
|
|
||||||
is(globalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
is(globalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
||||||
"There should be 0 properties displayed in the global scope.");
|
"There should be 0 properties displayed in the global scope.");
|
||||||
|
|
||||||
@ -120,7 +113,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
localScope.collapse();
|
localScope.collapse();
|
||||||
withScope.collapse();
|
withScope.collapse();
|
||||||
functionScope.collapse();
|
functionScope.collapse();
|
||||||
globalLexicalScope.collapse();
|
|
||||||
globalScope.collapse();
|
globalScope.collapse();
|
||||||
protoVar.collapse();
|
protoVar.collapse();
|
||||||
constrVar.collapse();
|
constrVar.collapse();
|
||||||
@ -133,8 +125,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The withScope should not be expanded.");
|
"The withScope should not be expanded.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded.");
|
"The functionScope should not be expanded.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalScope should not be expanded.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded.");
|
"The globalScope should not be expanded.");
|
||||||
|
|
||||||
@ -163,8 +153,7 @@ function prepareVariablesAndProperties() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
"The localScope should be expanded.");
|
"The localScope should be expanded.");
|
||||||
@ -172,8 +161,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should not be expanded yet.");
|
"The withScope should not be expanded yet.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded yet.");
|
"The functionScope should not be expanded yet.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalScope should not be expanded yet.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
@ -186,8 +173,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should now be expanded.");
|
"The withScope should now be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should now be expanded.");
|
"The functionScope should now be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalScope should now be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should now be expanded.");
|
"The globalScope should now be expanded.");
|
||||||
|
|
||||||
@ -229,7 +214,6 @@ function prepareVariablesAndProperties() {
|
|||||||
|
|
||||||
withScope.expand();
|
withScope.expand();
|
||||||
functionScope.expand();
|
functionScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
@ -43,8 +43,7 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
function testFiltered() {
|
function testFiltered() {
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
@ -53,8 +52,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The withScope should be expanded.");
|
"The withScope should be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should be expanded.");
|
"The functionScope should be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalScope should be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should be expanded.");
|
"The globalScope should be expanded.");
|
||||||
|
|
||||||
@ -64,8 +61,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"There should be 0 variables displayed in the with scope.");
|
"There should be 0 variables displayed in the with scope.");
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
||||||
"There should be 0 variables displayed in the function scope.");
|
"There should be 0 variables displayed in the function scope.");
|
||||||
is(globalLexicalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
|
||||||
"There should be 0 variables displayed in the global scope.");
|
|
||||||
is(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
is(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length, 0,
|
||||||
"There should be 0 variables displayed in the global scope.");
|
"There should be 0 variables displayed in the global scope.");
|
||||||
|
|
||||||
@ -75,8 +70,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"There should be 0 properties displayed in the with scope.");
|
"There should be 0 properties displayed in the with scope.");
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
is(functionScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
||||||
"There should be 0 properties displayed in the function scope.");
|
"There should be 0 properties displayed in the function scope.");
|
||||||
is(globalLexicalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
|
||||||
"There should be 0 properties displayed in the global scope.");
|
|
||||||
is(globalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
is(globalScope.target.querySelectorAll(".variables-view-property:not([unmatched])").length, 0,
|
||||||
"There should be 0 properties displayed in the global scope.");
|
"There should be 0 properties displayed in the global scope.");
|
||||||
}
|
}
|
||||||
@ -93,7 +86,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
localScope.collapse();
|
localScope.collapse();
|
||||||
withScope.collapse();
|
withScope.collapse();
|
||||||
functionScope.collapse();
|
functionScope.collapse();
|
||||||
globalLexicalScope.collapse();
|
|
||||||
globalScope.collapse();
|
globalScope.collapse();
|
||||||
|
|
||||||
is(localScope.expanded, false,
|
is(localScope.expanded, false,
|
||||||
@ -102,8 +94,6 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The withScope should not be expanded.");
|
"The withScope should not be expanded.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded.");
|
"The functionScope should not be expanded.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalScope should not be expanded.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded.");
|
"The globalScope should not be expanded.");
|
||||||
|
|
||||||
@ -125,8 +115,7 @@ function prepareVariablesAndProperties() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
"The localScope should be expanded.");
|
"The localScope should be expanded.");
|
||||||
@ -134,8 +123,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should not be expanded yet.");
|
"The withScope should not be expanded yet.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded yet.");
|
"The functionScope should not be expanded yet.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalScope should not be expanded yet.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
@ -148,8 +135,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should now be expanded.");
|
"The withScope should now be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should now be expanded.");
|
"The functionScope should now be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalScope should now be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should now be expanded.");
|
"The globalScope should now be expanded.");
|
||||||
|
|
||||||
@ -158,7 +143,6 @@ function prepareVariablesAndProperties() {
|
|||||||
|
|
||||||
withScope.expand();
|
withScope.expand();
|
||||||
functionScope.expand();
|
functionScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
@ -44,110 +44,108 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
let step = 0;
|
let step = 0;
|
||||||
|
|
||||||
let tests = [
|
let tests = [
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, false, false, false, false]);
|
assertExpansion([true, false, false, false]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, false, false, false, false]);
|
assertExpansion([true, false, false, false]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, false, false, false, false]);
|
assertExpansion([true, false, false, false]);
|
||||||
gEditor.focus();
|
gEditor.focus();
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, false, false, false, false]);
|
assertExpansion([true, false, false, false]);
|
||||||
typeText(gSearchBox, "*");
|
typeText(gSearchBox, "*");
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
gEditor.focus();
|
gEditor.focus();
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
backspaceText(gSearchBox, 1);
|
backspaceText(gSearchBox, 1);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
gEditor.focus();
|
gEditor.focus();
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
localScope.collapse();
|
localScope.collapse();
|
||||||
withScope.collapse();
|
withScope.collapse();
|
||||||
functionScope.collapse();
|
functionScope.collapse();
|
||||||
globalLexicalScope.collapse();
|
|
||||||
globalScope.collapse();
|
globalScope.collapse();
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([false, false, false, false, false]);
|
assertExpansion([false, false, false, false]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([false, false, false, false, false]);
|
assertExpansion([false, false, false, false]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([false, false, false, false, false]);
|
assertExpansion([false, false, false, false]);
|
||||||
gEditor.focus();
|
gEditor.focus();
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([false, false, false, false, false]);
|
assertExpansion([false, false, false, false]);
|
||||||
clearText(gSearchBox);
|
clearText(gSearchBox);
|
||||||
typeText(gSearchBox, "*");
|
typeText(gSearchBox, "*");
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
gEditor.focus();
|
gEditor.focus();
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
backspaceText(gSearchBox, 1);
|
backspaceText(gSearchBox, 1);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
EventUtils.sendKey("RETURN", gDebugger);
|
EventUtils.sendKey("RETURN", gDebugger);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
gEditor.focus();
|
gEditor.focus();
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertExpansion([true, true, true, true, true]);
|
assertExpansion([true, true, true, true]);
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -164,12 +162,8 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The functionScope should " + (aFlags[2] ? "" : "not ") +
|
"The functionScope should " + (aFlags[2] ? "" : "not ") +
|
||||||
"be expanded at this point (" + step + ").");
|
"be expanded at this point (" + step + ").");
|
||||||
|
|
||||||
is(globalLexicalScope.expanded, aFlags[3],
|
is(globalScope.expanded, aFlags[3],
|
||||||
"The globalLexicalScope should " + (aFlags[3] ? "" : "not ") +
|
"The globalScope should " + (aFlags[3] ? "" : "not ") +
|
||||||
"be expanded at this point (" + step + ").");
|
|
||||||
|
|
||||||
is(globalScope.expanded, aFlags[4],
|
|
||||||
"The globalScope should " + (aFlags[4] ? "" : "not ") +
|
|
||||||
"be expanded at this point (" + step + ").");
|
"be expanded at this point (" + step + ").");
|
||||||
|
|
||||||
step++;
|
step++;
|
||||||
@ -184,8 +178,7 @@ function prepareVariablesAndProperties() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
"The localScope should be expanded.");
|
"The localScope should be expanded.");
|
||||||
@ -193,8 +186,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should not be expanded yet.");
|
"The withScope should not be expanded yet.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded yet.");
|
"The functionScope should not be expanded yet.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalLexicalScope should not be expanded yet.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
@ -207,14 +198,11 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should now be expanded.");
|
"The withScope should now be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should now be expanded.");
|
"The functionScope should now be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalLexicalScope should now be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should now be expanded.");
|
"The globalScope should now be expanded.");
|
||||||
|
|
||||||
withScope.collapse();
|
withScope.collapse();
|
||||||
functionScope.collapse();
|
functionScope.collapse();
|
||||||
globalLexicalScope.collapse();
|
|
||||||
globalScope.collapse();
|
globalScope.collapse();
|
||||||
|
|
||||||
deferred.resolve();
|
deferred.resolve();
|
||||||
@ -222,7 +210,6 @@ function prepareVariablesAndProperties() {
|
|||||||
|
|
||||||
withScope.expand();
|
withScope.expand();
|
||||||
functionScope.expand();
|
functionScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
@ -43,18 +43,17 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
let step = 0;
|
let step = 0;
|
||||||
|
|
||||||
let tests = [
|
let tests = [
|
||||||
function() {
|
function() {
|
||||||
assertScopeExpansion([true, false, false, false, false]);
|
assertScopeExpansion([true, false, false, false]);
|
||||||
typeText(gSearchBox, "*arguments");
|
typeText(gSearchBox, "*arguments");
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertScopeExpansion([true, true, true, true, true]);
|
assertScopeExpansion([true, true, true, true]);
|
||||||
assertVariablesCountAtLeast([0, 0, 1, 0, 0]);
|
assertVariablesCountAtLeast([0, 0, 1, 0]);
|
||||||
|
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
||||||
"arguments", "The arguments pseudoarray should be visible.");
|
"arguments", "The arguments pseudoarray should be visible.");
|
||||||
@ -64,8 +63,8 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
backspaceText(gSearchBox, 6);
|
backspaceText(gSearchBox, 6);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertScopeExpansion([true, true, true, true, true]);
|
assertScopeExpansion([true, true, true, true]);
|
||||||
assertVariablesCountAtLeast([0, 0, 1, 0, 1]);
|
assertVariablesCountAtLeast([0, 0, 1, 1]);
|
||||||
|
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
||||||
"arguments", "The arguments pseudoarray should be visible.");
|
"arguments", "The arguments pseudoarray should be visible.");
|
||||||
@ -80,8 +79,8 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
backspaceText(gSearchBox, 2);
|
backspaceText(gSearchBox, 2);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertScopeExpansion([true, true, true, true, true]);
|
assertScopeExpansion([true, true, true, true]);
|
||||||
assertVariablesCountAtLeast([0, 1, 3, 0, 1]);
|
assertVariablesCountAtLeast([0, 1, 3, 1]);
|
||||||
|
|
||||||
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
is(functionScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
||||||
"aNumber", "The aNumber param should be visible.");
|
"aNumber", "The aNumber param should be visible.");
|
||||||
@ -101,8 +100,8 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
backspaceText(gSearchBox, 1);
|
backspaceText(gSearchBox, 1);
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
assertScopeExpansion([true, true, true, true, true]);
|
assertScopeExpansion([true, true, true, true]);
|
||||||
assertVariablesCountAtLeast([4, 1, 3, 0, 1]);
|
assertVariablesCountAtLeast([4, 1, 3, 1]);
|
||||||
|
|
||||||
is(localScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
is(localScope.target.querySelectorAll(".variables-view-variable:not([unmatched]) > .title > .name")[0].getAttribute("value"),
|
||||||
"this", "The this reference should be visible.");
|
"this", "The this reference should be visible.");
|
||||||
@ -154,12 +153,8 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"The functionScope should " + (aFlags[2] ? "" : "not ") +
|
"The functionScope should " + (aFlags[2] ? "" : "not ") +
|
||||||
"be expanded at this point (" + step + ").");
|
"be expanded at this point (" + step + ").");
|
||||||
|
|
||||||
is(globalLexicalScope.expanded, aFlags[3],
|
is(globalScope.expanded, aFlags[3],
|
||||||
"The globalLexicalScope should " + (aFlags[3] ? "" : "not ") +
|
"The globalScope should " + (aFlags[3] ? "" : "not ") +
|
||||||
"be expanded at this point (" + step + ").");
|
|
||||||
|
|
||||||
is(globalScope.expanded, aFlags[4],
|
|
||||||
"The globalScope should " + (aFlags[4] ? "" : "not ") +
|
|
||||||
"be expanded at this point (" + step + ").");
|
"be expanded at this point (" + step + ").");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,12 +171,8 @@ function testVariablesAndPropertiesFiltering() {
|
|||||||
"There should be " + aCounts[2] +
|
"There should be " + aCounts[2] +
|
||||||
" variable displayed in the function scope (" + step + ").");
|
" variable displayed in the function scope (" + step + ").");
|
||||||
|
|
||||||
ok(globalLexicalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length >= aCounts[3],
|
ok(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length >= aCounts[3],
|
||||||
"There should be " + aCounts[3] +
|
"There should be " + aCounts[3] +
|
||||||
" variable displayed in the global scope (" + step + ").");
|
|
||||||
|
|
||||||
ok(globalScope.target.querySelectorAll(".variables-view-variable:not([unmatched])").length >= aCounts[4],
|
|
||||||
"There should be " + aCounts[4] +
|
|
||||||
" variable displayed in the global scope (" + step + ").");
|
" variable displayed in the global scope (" + step + ").");
|
||||||
|
|
||||||
step++;
|
step++;
|
||||||
@ -196,8 +187,7 @@ function prepareVariablesAndProperties() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
"The localScope should be expanded.");
|
"The localScope should be expanded.");
|
||||||
@ -205,8 +195,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should not be expanded yet.");
|
"The withScope should not be expanded yet.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded yet.");
|
"The functionScope should not be expanded yet.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalScope should not be expanded yet.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
@ -219,14 +207,11 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should now be expanded.");
|
"The withScope should now be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should now be expanded.");
|
"The functionScope should now be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalScope should now be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should now be expanded.");
|
"The globalScope should now be expanded.");
|
||||||
|
|
||||||
withScope.collapse();
|
withScope.collapse();
|
||||||
functionScope.collapse();
|
functionScope.collapse();
|
||||||
globalLexicalScope.collapse();
|
|
||||||
globalScope.collapse();
|
globalScope.collapse();
|
||||||
|
|
||||||
deferred.resolve();
|
deferred.resolve();
|
||||||
@ -234,7 +219,6 @@ function prepareVariablesAndProperties() {
|
|||||||
|
|
||||||
withScope.expand();
|
withScope.expand();
|
||||||
functionScope.expand();
|
functionScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
@ -35,35 +35,27 @@ function test() {
|
|||||||
|
|
||||||
function initialChecks() {
|
function initialChecks() {
|
||||||
let scopeNodes = gDebugger.document.querySelectorAll(".variables-view-scope");
|
let scopeNodes = gDebugger.document.querySelectorAll(".variables-view-scope");
|
||||||
is(scopeNodes.length, 3,
|
is(scopeNodes.length, 2,
|
||||||
"There should be 3 scopes available.");
|
"There should be 2 scopes available.");
|
||||||
|
|
||||||
ok(scopeNodes[0].querySelector(".name").getAttribute("value").includes("[test]"),
|
ok(scopeNodes[0].querySelector(".name").getAttribute("value").includes("[test]"),
|
||||||
"The local scope should be properly identified.");
|
"The local scope should be properly identified.");
|
||||||
ok(scopeNodes[1].querySelector(".name").getAttribute("value").includes("Block"),
|
ok(scopeNodes[1].querySelector(".name").getAttribute("value").includes("[Window]"),
|
||||||
"The global lexical scope should be properly identified.");
|
|
||||||
ok(scopeNodes[2].querySelector(".name").getAttribute("value").includes("[Window]"),
|
|
||||||
"The global scope should be properly identified.");
|
"The global scope should be properly identified.");
|
||||||
|
|
||||||
is(gVariables.getScopeAtIndex(0).target, scopeNodes[0],
|
is(gVariables.getScopeAtIndex(0).target, scopeNodes[0],
|
||||||
"getScopeAtIndex(0) didn't return the expected scope.");
|
"getScopeAtIndex(0) didn't return the expected scope.");
|
||||||
is(gVariables.getScopeAtIndex(1).target, scopeNodes[1],
|
is(gVariables.getScopeAtIndex(1).target, scopeNodes[1],
|
||||||
"getScopeAtIndex(1) didn't return the expected scope.");
|
"getScopeAtIndex(1) didn't return the expected scope.");
|
||||||
is(gVariables.getScopeAtIndex(2).target, scopeNodes[2],
|
|
||||||
"getScopeAtIndex(2) didn't return the expected scope.");
|
|
||||||
|
|
||||||
is(gVariables.getItemForNode(scopeNodes[0]).target, scopeNodes[0],
|
is(gVariables.getItemForNode(scopeNodes[0]).target, scopeNodes[0],
|
||||||
"getItemForNode([0]) didn't return the expected scope.");
|
"getItemForNode([0]) didn't return the expected scope.");
|
||||||
is(gVariables.getItemForNode(scopeNodes[1]).target, scopeNodes[1],
|
is(gVariables.getItemForNode(scopeNodes[1]).target, scopeNodes[1],
|
||||||
"getItemForNode([1]) didn't return the expected scope.");
|
"getItemForNode([1]) didn't return the expected scope.");
|
||||||
is(gVariables.getItemForNode(scopeNodes[2]).target, scopeNodes[2],
|
|
||||||
"getItemForNode([2]) didn't return the expected scope.");
|
|
||||||
|
|
||||||
is(gVariables.getItemForNode(scopeNodes[0]).expanded, true,
|
is(gVariables.getItemForNode(scopeNodes[0]).expanded, true,
|
||||||
"The local scope should be expanded by default.");
|
"The local scope should be expanded by default.");
|
||||||
is(gVariables.getItemForNode(scopeNodes[1]).expanded, false,
|
is(gVariables.getItemForNode(scopeNodes[1]).expanded, false,
|
||||||
"The global lexical scope should not be collapsed by default.");
|
|
||||||
is(gVariables.getItemForNode(scopeNodes[2]).expanded, false,
|
|
||||||
"The global scope should not be collapsed by default.");
|
"The global scope should not be collapsed by default.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ function test() {
|
|||||||
function expandGlobalScope() {
|
function expandGlobalScope() {
|
||||||
let deferred = promise.defer();
|
let deferred = promise.defer();
|
||||||
|
|
||||||
let globalScope = gVariables.getScopeAtIndex(2);
|
let globalScope = gVariables.getScopeAtIndex(1);
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The global scope should not be expanded by default.");
|
"The global scope should not be expanded by default.");
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ function expandGlobalScope() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testGlobalScope() {
|
function testGlobalScope() {
|
||||||
let globalScope = gVariables.getScopeAtIndex(2);
|
let globalScope = gVariables.getScopeAtIndex(1);
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The global scope should now be expanded.");
|
"The global scope should now be expanded.");
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ function testGlobalScope() {
|
|||||||
function expandWindowVariable() {
|
function expandWindowVariable() {
|
||||||
let deferred = promise.defer();
|
let deferred = promise.defer();
|
||||||
|
|
||||||
let windowVar = gVariables.getScopeAtIndex(2).get("window");
|
let windowVar = gVariables.getScopeAtIndex(1).get("window");
|
||||||
is(windowVar.expanded, false,
|
is(windowVar.expanded, false,
|
||||||
"The window variable should not be expanded by default.");
|
"The window variable should not be expanded by default.");
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ function expandWindowVariable() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testWindowVariable() {
|
function testWindowVariable() {
|
||||||
let windowVar = gVariables.getScopeAtIndex(2).get("window");
|
let windowVar = gVariables.getScopeAtIndex(1).get("window");
|
||||||
is(windowVar.expanded, true,
|
is(windowVar.expanded, true,
|
||||||
"The window variable should now be expanded.");
|
"The window variable should now be expanded.");
|
||||||
|
|
||||||
|
@ -21,13 +21,11 @@ function test() {
|
|||||||
let firstScope = variables.getScopeAtIndex(0);
|
let firstScope = variables.getScopeAtIndex(0);
|
||||||
let secondScope = variables.getScopeAtIndex(1);
|
let secondScope = variables.getScopeAtIndex(1);
|
||||||
let thirdScope = variables.getScopeAtIndex(2);
|
let thirdScope = variables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = variables.getScopeAtIndex(3);
|
let globalScope = variables.getScopeAtIndex(3);
|
||||||
let globalScope = variables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
ok(firstScope, "The first scope is available.");
|
ok(firstScope, "The first scope is available.");
|
||||||
ok(secondScope, "The second scope is available.");
|
ok(secondScope, "The second scope is available.");
|
||||||
ok(thirdScope, "The third scope is available.");
|
ok(thirdScope, "The third scope is available.");
|
||||||
ok(globalLexicalScope, "The global lexical scope is available.");
|
|
||||||
ok(globalScope, "The global scope is available.");
|
ok(globalScope, "The global scope is available.");
|
||||||
|
|
||||||
is(firstScope.name, "Function scope [secondNest]",
|
is(firstScope.name, "Function scope [secondNest]",
|
||||||
@ -36,8 +34,6 @@ function test() {
|
|||||||
"The second scope's name is correct.");
|
"The second scope's name is correct.");
|
||||||
is(thirdScope.name, "Function scope [test]",
|
is(thirdScope.name, "Function scope [test]",
|
||||||
"The third scope's name is correct.");
|
"The third scope's name is correct.");
|
||||||
is(globalLexicalScope.name, "Block scope",
|
|
||||||
"The global lexical scope's name is correct.");
|
|
||||||
is(globalScope.name, "Global scope [Window]",
|
is(globalScope.name, "Global scope [Window]",
|
||||||
"The global scope's name is correct.");
|
"The global scope's name is correct.");
|
||||||
|
|
||||||
@ -47,8 +43,6 @@ function test() {
|
|||||||
"The second scope's expansion state is correct.");
|
"The second scope's expansion state is correct.");
|
||||||
is(thirdScope.expanded, false,
|
is(thirdScope.expanded, false,
|
||||||
"The third scope's expansion state is correct.");
|
"The third scope's expansion state is correct.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The global lexical scope's expansion state is correct.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The global scope's expansion state is correct.");
|
"The global scope's expansion state is correct.");
|
||||||
|
|
||||||
@ -58,8 +52,6 @@ function test() {
|
|||||||
"The second scope should have no variables available yet.");
|
"The second scope should have no variables available yet.");
|
||||||
is(thirdScope._store.size, 0,
|
is(thirdScope._store.size, 0,
|
||||||
"The third scope should have no variables available yet.");
|
"The third scope should have no variables available yet.");
|
||||||
is(globalLexicalScope._store.size, 0,
|
|
||||||
"The global scope should have no variables available yet.");
|
|
||||||
is(globalScope._store.size, 0,
|
is(globalScope._store.size, 0,
|
||||||
"The global scope should have no variables available yet.");
|
"The global scope should have no variables available yet.");
|
||||||
|
|
||||||
@ -108,7 +100,6 @@ function test() {
|
|||||||
fetched = waitForDebuggerEvents(panel, events.FETCHED_VARIABLES);
|
fetched = waitForDebuggerEvents(panel, events.FETCHED_VARIABLES);
|
||||||
secondScope.expand();
|
secondScope.expand();
|
||||||
thirdScope.expand();
|
thirdScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
yield fetched;
|
yield fetched;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ function test() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function expandGlobalScope() {
|
function expandGlobalScope() {
|
||||||
let globalScope = variables.getScopeAtIndex(2);
|
let globalScope = variables.getScopeAtIndex(1);
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
|
@ -74,8 +74,7 @@ function testVariablesExpand() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
let thisVar = localScope.get("this");
|
let thisVar = localScope.get("this");
|
||||||
let windowVar = thisVar.get("window");
|
let windowVar = thisVar.get("window");
|
||||||
@ -86,8 +85,6 @@ function testVariablesExpand() {
|
|||||||
"The withScope arrow should still be expanded.");
|
"The withScope arrow should still be expanded.");
|
||||||
is(functionScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
is(functionScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
||||||
"The functionScope arrow should still be expanded.");
|
"The functionScope arrow should still be expanded.");
|
||||||
is(globalLexicalScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
|
||||||
"The globalLexicalScope arrow should still be expanded.");
|
|
||||||
is(globalScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
is(globalScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
||||||
"The globalScope arrow should still be expanded.");
|
"The globalScope arrow should still be expanded.");
|
||||||
is(thisVar.target.querySelector(".arrow").hasAttribute("open"), true,
|
is(thisVar.target.querySelector(".arrow").hasAttribute("open"), true,
|
||||||
@ -101,8 +98,6 @@ function testVariablesExpand() {
|
|||||||
"The withScope enumerables should still be expanded.");
|
"The withScope enumerables should still be expanded.");
|
||||||
is(functionScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
is(functionScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
||||||
"The functionScope enumerables should still be expanded.");
|
"The functionScope enumerables should still be expanded.");
|
||||||
is(globalLexicalScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
|
||||||
"The globalLexicalScope enumerables should still be expanded.");
|
|
||||||
is(globalScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
is(globalScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
||||||
"The globalScope enumerables should still be expanded.");
|
"The globalScope enumerables should still be expanded.");
|
||||||
is(thisVar.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
is(thisVar.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
||||||
@ -116,8 +111,6 @@ function testVariablesExpand() {
|
|||||||
"The withScope expanded getter should return true.");
|
"The withScope expanded getter should return true.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope expanded getter should return true.");
|
"The functionScope expanded getter should return true.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalScope expanded getter should return true.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope expanded getter should return true.");
|
"The globalScope expanded getter should return true.");
|
||||||
is(thisVar.expanded, true,
|
is(thisVar.expanded, true,
|
||||||
@ -132,8 +125,7 @@ function prepareVariablesAndProperties() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
"The localScope should be expanded.");
|
"The localScope should be expanded.");
|
||||||
@ -141,8 +133,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should not be expanded yet.");
|
"The withScope should not be expanded yet.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded yet.");
|
"The functionScope should not be expanded yet.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalLexicalScope should not be expanded yet.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
@ -155,8 +145,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should now be expanded.");
|
"The withScope should now be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should now be expanded.");
|
"The functionScope should now be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalLexicalScope should now be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should now be expanded.");
|
"The globalScope should now be expanded.");
|
||||||
|
|
||||||
@ -198,7 +186,6 @@ function prepareVariablesAndProperties() {
|
|||||||
|
|
||||||
withScope.expand();
|
withScope.expand();
|
||||||
functionScope.expand();
|
functionScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
@ -75,8 +75,7 @@ function testVariablesExpand() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
let thisVar = localScope.get("this");
|
let thisVar = localScope.get("this");
|
||||||
let windowVar = thisVar.get("window");
|
let windowVar = thisVar.get("window");
|
||||||
@ -89,8 +88,6 @@ function testVariablesExpand() {
|
|||||||
"The withScope arrow should still be expanded.");
|
"The withScope arrow should still be expanded.");
|
||||||
is(functionScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
is(functionScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
||||||
"The functionScope arrow should still be expanded.");
|
"The functionScope arrow should still be expanded.");
|
||||||
is(globalLexicalScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
|
||||||
"The globalLexicalScope arrow should still be expanded.");
|
|
||||||
is(globalScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
is(globalScope.target.querySelector(".arrow").hasAttribute("open"), true,
|
||||||
"The globalScope arrow should still be expanded.");
|
"The globalScope arrow should still be expanded.");
|
||||||
is(thisVar.target.querySelector(".arrow").hasAttribute("open"), true,
|
is(thisVar.target.querySelector(".arrow").hasAttribute("open"), true,
|
||||||
@ -108,8 +105,6 @@ function testVariablesExpand() {
|
|||||||
"The withScope enumerables should still be expanded.");
|
"The withScope enumerables should still be expanded.");
|
||||||
is(functionScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
is(functionScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
||||||
"The functionScope enumerables should still be expanded.");
|
"The functionScope enumerables should still be expanded.");
|
||||||
is(globalLexicalScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
|
||||||
"The globalLexicalScope enumerables should still be expanded.");
|
|
||||||
is(globalScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
is(globalScope.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
||||||
"The globalScope enumerables should still be expanded.");
|
"The globalScope enumerables should still be expanded.");
|
||||||
is(thisVar.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
is(thisVar.target.querySelector(".variables-view-element-details").hasAttribute("open"), true,
|
||||||
@ -127,8 +122,6 @@ function testVariablesExpand() {
|
|||||||
"The withScope expanded getter should return true.");
|
"The withScope expanded getter should return true.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope expanded getter should return true.");
|
"The functionScope expanded getter should return true.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalLexicalScope expanded getter should return true.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope expanded getter should return true.");
|
"The globalScope expanded getter should return true.");
|
||||||
is(thisVar.expanded, true,
|
is(thisVar.expanded, true,
|
||||||
@ -147,8 +140,7 @@ function prepareVariablesAndProperties() {
|
|||||||
let localScope = gVariables.getScopeAtIndex(0);
|
let localScope = gVariables.getScopeAtIndex(0);
|
||||||
let withScope = gVariables.getScopeAtIndex(1);
|
let withScope = gVariables.getScopeAtIndex(1);
|
||||||
let functionScope = gVariables.getScopeAtIndex(2);
|
let functionScope = gVariables.getScopeAtIndex(2);
|
||||||
let globalLexicalScope = gVariables.getScopeAtIndex(3);
|
let globalScope = gVariables.getScopeAtIndex(3);
|
||||||
let globalScope = gVariables.getScopeAtIndex(4);
|
|
||||||
|
|
||||||
is(localScope.expanded, true,
|
is(localScope.expanded, true,
|
||||||
"The localScope should be expanded.");
|
"The localScope should be expanded.");
|
||||||
@ -156,8 +148,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should not be expanded yet.");
|
"The withScope should not be expanded yet.");
|
||||||
is(functionScope.expanded, false,
|
is(functionScope.expanded, false,
|
||||||
"The functionScope should not be expanded yet.");
|
"The functionScope should not be expanded yet.");
|
||||||
is(globalLexicalScope.expanded, false,
|
|
||||||
"The globalLexicalScope should not be expanded yet.");
|
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The globalScope should not be expanded yet.");
|
"The globalScope should not be expanded yet.");
|
||||||
|
|
||||||
@ -170,8 +160,6 @@ function prepareVariablesAndProperties() {
|
|||||||
"The withScope should now be expanded.");
|
"The withScope should now be expanded.");
|
||||||
is(functionScope.expanded, true,
|
is(functionScope.expanded, true,
|
||||||
"The functionScope should now be expanded.");
|
"The functionScope should now be expanded.");
|
||||||
is(globalLexicalScope.expanded, true,
|
|
||||||
"The globalLexicalScope should now be expanded.");
|
|
||||||
is(globalScope.expanded, true,
|
is(globalScope.expanded, true,
|
||||||
"The globalScope should now be expanded.");
|
"The globalScope should now be expanded.");
|
||||||
|
|
||||||
@ -213,7 +201,6 @@ function prepareVariablesAndProperties() {
|
|||||||
|
|
||||||
withScope.expand();
|
withScope.expand();
|
||||||
functionScope.expand();
|
functionScope.expand();
|
||||||
globalLexicalScope.expand();
|
|
||||||
globalScope.expand();
|
globalScope.expand();
|
||||||
|
|
||||||
return deferred.promise;
|
return deferred.promise;
|
||||||
|
@ -36,7 +36,7 @@ function test() {
|
|||||||
function expandGlobalScope() {
|
function expandGlobalScope() {
|
||||||
let deferred = promise.defer();
|
let deferred = promise.defer();
|
||||||
|
|
||||||
let globalScope = gVariables.getScopeAtIndex(2);
|
let globalScope = gVariables.getScopeAtIndex(1);
|
||||||
is(globalScope.expanded, false,
|
is(globalScope.expanded, false,
|
||||||
"The global scope should not be expanded by default.");
|
"The global scope should not be expanded by default.");
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ function expandGlobalScope() {
|
|||||||
|
|
||||||
function performTest() {
|
function performTest() {
|
||||||
let deferred = promise.defer();
|
let deferred = promise.defer();
|
||||||
let globalScope = gVariables.getScopeAtIndex(2);
|
let globalScope = gVariables.getScopeAtIndex(1);
|
||||||
|
|
||||||
let buttonVar = globalScope.get("button");
|
let buttonVar = globalScope.get("button");
|
||||||
let buttonAsProtoVar = globalScope.get("buttonAsProto");
|
let buttonAsProtoVar = globalScope.get("buttonAsProto");
|
||||||
|
@ -17,10 +17,10 @@
|
|||||||
|
|
||||||
<script type="text/javascript;version=1.8">
|
<script type="text/javascript;version=1.8">
|
||||||
function inline() {}
|
function inline() {}
|
||||||
var arrow = () => {}
|
let arrow = () => {}
|
||||||
|
|
||||||
var foo = bar => {}
|
let foo = bar => {}
|
||||||
var foo2 = bar2 = baz2 => 42;
|
let foo2 = bar2 = baz2 => 42;
|
||||||
|
|
||||||
setTimeout((foo, bar, baz) => {});
|
setTimeout((foo, bar, baz) => {});
|
||||||
setTimeout((foo, bar, baz) => 42);
|
setTimeout((foo, bar, baz) => 42);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var XULUtils = {
|
const XULUtils = {
|
||||||
/**
|
/**
|
||||||
* Create <command> elements within `commandset` with event handlers
|
* Create <command> elements within `commandset` with event handlers
|
||||||
* bound to the `command` event
|
* bound to the `command` event
|
||||||
@ -35,7 +35,7 @@ const CHARACTER_LIMIT = 250; // line character limit
|
|||||||
/**
|
/**
|
||||||
* Utility functions for handling sources.
|
* Utility functions for handling sources.
|
||||||
*/
|
*/
|
||||||
var SourceUtils = {
|
const SourceUtils = {
|
||||||
_labelsCache: new Map(), // Can't use WeakMaps because keys are strings.
|
_labelsCache: new Map(), // Can't use WeakMaps because keys are strings.
|
||||||
_groupsCache: new Map(),
|
_groupsCache: new Map(),
|
||||||
_minifiedCache: new WeakMap(),
|
_minifiedCache: new WeakMap(),
|
||||||
|
@ -988,13 +988,13 @@ InspectorPanel.prototype = {
|
|||||||
let panel = this._toolbox.getPanel("webconsole");
|
let panel = this._toolbox.getPanel("webconsole");
|
||||||
let jsterm = panel.hud.jsterm;
|
let jsterm = panel.hud.jsterm;
|
||||||
|
|
||||||
let evalString = `{ let i = 0;
|
let evalString = `let i = 0;
|
||||||
while (window.hasOwnProperty("temp" + i) && i < 1000) {
|
while (window.hasOwnProperty("temp" + i) && i < 1000) {
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
window["temp" + i] = $0;
|
window["temp" + i] = $0;
|
||||||
"temp" + i;
|
"temp" + i;
|
||||||
}`;
|
`;
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
selectedNodeActor: this.selection.nodeFront.actorID,
|
selectedNodeActor: this.selection.nodeFront.actorID,
|
||||||
|
@ -14,7 +14,7 @@ const {ActorClass, Actor, FrontClass, Front, method} =
|
|||||||
const {Cu} = require("chrome");
|
const {Cu} = require("chrome");
|
||||||
const {NodeActor} = require("devtools/server/actors/inspector");
|
const {NodeActor} = require("devtools/server/actors/inspector");
|
||||||
|
|
||||||
var EventsFormActor = ActorClass({
|
const EventsFormActor = ActorClass({
|
||||||
typeName: "eventsFormActor",
|
typeName: "eventsFormActor",
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
@ -44,7 +44,7 @@ var EventsFormActor = ActorClass({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var EventsFormFront = FrontClass(EventsFormActor, {
|
const EventsFormFront = FrontClass(EventsFormActor, {
|
||||||
initialize: function(client, form) {
|
initialize: function(client, form) {
|
||||||
Front.prototype.initialize.apply(this, arguments);
|
Front.prototype.initialize.apply(this, arguments);
|
||||||
|
|
||||||
|
@ -125,10 +125,6 @@ const {Tooltip} = require("devtools/client/shared/widgets/Tooltip");
|
|||||||
const {ToolSidebar} = require("devtools/client/framework/sidebar");
|
const {ToolSidebar} = require("devtools/client/framework/sidebar");
|
||||||
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "EVENTS", EVENTS);
|
|
||||||
XPCOMUtils.defineConstant(this, "ACTIVITY_TYPE", ACTIVITY_TYPE);
|
|
||||||
XPCOMUtils.defineConstant(this, "Editor", Editor);
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "Chart",
|
XPCOMUtils.defineLazyModuleGetter(this, "Chart",
|
||||||
"resource:///modules/devtools/client/shared/widgets/Chart.jsm");
|
"resource:///modules/devtools/client/shared/widgets/Chart.jsm");
|
||||||
|
|
||||||
|
@ -11,11 +11,6 @@ const { Heritage, ViewHelpers, WidgetMethods } = require("resource:///modules/de
|
|||||||
|
|
||||||
// Events emitted by various objects in the panel.
|
// Events emitted by various objects in the panel.
|
||||||
const EVENTS = require("devtools/client/performance/events");
|
const EVENTS = require("devtools/client/performance/events");
|
||||||
Object.defineProperty(this, "EVENTS", {
|
|
||||||
value: EVENTS,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
|
|
||||||
loader.lazyRequireGetter(this, "Services");
|
loader.lazyRequireGetter(this, "Services");
|
||||||
loader.lazyRequireGetter(this, "promise");
|
loader.lazyRequireGetter(this, "promise");
|
||||||
|
@ -47,9 +47,6 @@ const FLATTEN_PREF = "devtools.performance.ui.flatten-tree-recursion";
|
|||||||
const JIT_PREF = "devtools.performance.ui.enable-jit-optimizations";
|
const JIT_PREF = "devtools.performance.ui.enable-jit-optimizations";
|
||||||
const EXPERIMENTAL_PREF = "devtools.performance.ui.experimental";
|
const EXPERIMENTAL_PREF = "devtools.performance.ui.experimental";
|
||||||
|
|
||||||
// Keep in sync with FRAMERATE_GRAPH_HIGH_RES_INTERVAL in views/overview.js
|
|
||||||
const FRAMERATE_GRAPH_HIGH_RES_INTERVAL = 16; // ms
|
|
||||||
|
|
||||||
// All tests are asynchronous.
|
// All tests are asynchronous.
|
||||||
waitForExplicitFinish();
|
waitForExplicitFinish();
|
||||||
|
|
||||||
@ -426,7 +423,7 @@ function* stopRecording(panel, options = {
|
|||||||
// incremental rendering and less likely to be from another rendering that was selected
|
// incremental rendering and less likely to be from another rendering that was selected
|
||||||
while (!overviewRendered && options.waitForOverview) {
|
while (!overviewRendered && options.waitForOverview) {
|
||||||
let [_, res] = yield onceSpread(win.OverviewView, win.EVENTS.OVERVIEW_RENDERED);
|
let [_, res] = yield onceSpread(win.OverviewView, win.EVENTS.OVERVIEW_RENDERED);
|
||||||
if (res === FRAMERATE_GRAPH_HIGH_RES_INTERVAL) {
|
if (res === win.FRAMERATE_GRAPH_HIGH_RES_INTERVAL) {
|
||||||
overviewRendered = true;
|
overviewRendered = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ const GRAPH_REQUIREMENTS = {
|
|||||||
memory: {
|
memory: {
|
||||||
features: ["withMemory"]
|
features: ["withMemory"]
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* View handler for the overview panel's time view, displaying
|
* View handler for the overview panel's time view, displaying
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
var {require} = Cu.import("resource:///modules/devtools/client/framework/gDevTools.jsm", {});
|
||||||
var {TargetFactory} = require("devtools/client/framework/target");
|
var {TargetFactory} = require("devtools/client/framework/target");
|
||||||
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
var DevToolsUtils = require("devtools/shared/DevToolsUtils");
|
||||||
var promise = require("promise");
|
var promise = require("promise");
|
||||||
|
@ -63,13 +63,6 @@ Cu.import("resource://gre/modules/osfile.jsm");
|
|||||||
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
Cu.import("resource:///modules/devtools/client/shared/widgets/ViewHelpers.jsm");
|
||||||
Cu.import("resource://gre/modules/reflect.jsm");
|
Cu.import("resource://gre/modules/reflect.jsm");
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "SCRATCHPAD_CONTEXT_CONTENT", SCRATCHPAD_CONTEXT_CONTENT);
|
|
||||||
XPCOMUtils.defineConstant(this, "SCRATCHPAD_CONTEXT_BROWSER", SCRATCHPAD_CONTEXT_BROWSER);
|
|
||||||
XPCOMUtils.defineConstant(this, "BUTTON_POSITION_SAVE", BUTTON_POSITION_SAVE);
|
|
||||||
XPCOMUtils.defineConstant(this, "BUTTON_POSITION_CANCEL", BUTTON_POSITION_CANCEL);
|
|
||||||
XPCOMUtils.defineConstant(this, "BUTTON_POSITION_DONT_SAVE", BUTTON_POSITION_DONT_SAVE);
|
|
||||||
XPCOMUtils.defineConstant(this, "BUTTON_POSITION_REVERT", BUTTON_POSITION_REVERT);
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyModuleGetter(this, "VariablesView",
|
XPCOMUtils.defineLazyModuleGetter(this, "VariablesView",
|
||||||
"resource:///modules/devtools/client/shared/widgets/VariablesView.jsm");
|
"resource:///modules/devtools/client/shared/widgets/VariablesView.jsm");
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
/* Any copyright is dedicated to the Public Domain.
|
/* Any copyright is dedicated to the Public Domain.
|
||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
|
|
||||||
|
var tempScope = {};
|
||||||
|
Cu.import("resource://gre/modules/NetUtil.jsm", tempScope);
|
||||||
|
var NetUtil = tempScope.NetUtil;
|
||||||
|
|
||||||
// Reference to the Scratchpad object.
|
// Reference to the Scratchpad object.
|
||||||
var gScratchpad;
|
var gScratchpad;
|
||||||
|
|
||||||
|
@ -3,6 +3,13 @@
|
|||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
/* Bug 644413 */
|
/* Bug 644413 */
|
||||||
|
|
||||||
|
var tempScope = {};
|
||||||
|
Cu.import("resource://gre/modules/NetUtil.jsm", tempScope);
|
||||||
|
Cu.import("resource://gre/modules/FileUtils.jsm", tempScope);
|
||||||
|
var NetUtil = tempScope.NetUtil;
|
||||||
|
var FileUtils = tempScope.FileUtils;
|
||||||
|
|
||||||
|
|
||||||
var gScratchpad; // Reference to the Scratchpad object.
|
var gScratchpad; // Reference to the Scratchpad object.
|
||||||
var gFile; // Reference to the temporary nsIFile we will work with.
|
var gFile; // Reference to the temporary nsIFile we will work with.
|
||||||
var DEVTOOLS_CHROME_ENABLED = "devtools.chrome.enabled";
|
var DEVTOOLS_CHROME_ENABLED = "devtools.chrome.enabled";
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
/* Bug 651942 */
|
/* Bug 651942 */
|
||||||
|
|
||||||
|
var tempScope = {};
|
||||||
|
Cu.import("resource://gre/modules/NetUtil.jsm", tempScope);
|
||||||
|
Cu.import("resource://gre/modules/FileUtils.jsm", tempScope);
|
||||||
|
var NetUtil = tempScope.NetUtil;
|
||||||
|
var FileUtils = tempScope.FileUtils;
|
||||||
|
|
||||||
// Reference to the Scratchpad object.
|
// Reference to the Scratchpad object.
|
||||||
var gScratchpad;
|
var gScratchpad;
|
||||||
|
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
/* Bug 684546 */
|
/* Bug 684546 */
|
||||||
|
|
||||||
|
var tempScope = {};
|
||||||
|
Cu.import("resource://gre/modules/NetUtil.jsm", tempScope);
|
||||||
|
Cu.import("resource://gre/modules/FileUtils.jsm", tempScope);
|
||||||
|
var NetUtil = tempScope.NetUtil;
|
||||||
|
var FileUtils = tempScope.FileUtils;
|
||||||
|
|
||||||
// Reference to the Scratchpad chrome window object.
|
// Reference to the Scratchpad chrome window object.
|
||||||
var gScratchpadWindow;
|
var gScratchpadWindow;
|
||||||
|
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
/* Bug 751744 */
|
/* Bug 751744 */
|
||||||
|
|
||||||
|
var tempScope = {};
|
||||||
|
Cu.import("resource://gre/modules/NetUtil.jsm", tempScope);
|
||||||
|
Cu.import("resource://gre/modules/FileUtils.jsm", tempScope);
|
||||||
|
var NetUtil = tempScope.NetUtil;
|
||||||
|
var FileUtils = tempScope.FileUtils;
|
||||||
|
|
||||||
// Reference to the Scratchpad object.
|
// Reference to the Scratchpad object.
|
||||||
var gScratchpad;
|
var gScratchpad;
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ const EVENTS = {
|
|||||||
// When the editor's error markers are all removed
|
// When the editor's error markers are all removed
|
||||||
EDITOR_ERROR_MARKERS_REMOVED: "ShaderEditor:EditorCleaned"
|
EDITOR_ERROR_MARKERS_REMOVED: "ShaderEditor:EditorCleaned"
|
||||||
};
|
};
|
||||||
XPCOMUtils.defineConstant(this, "EVENTS", EVENTS);
|
|
||||||
|
|
||||||
const STRINGS_URI = "chrome://browser/locale/devtools/shadereditor.properties"
|
const STRINGS_URI = "chrome://browser/locale/devtools/shadereditor.properties"
|
||||||
const HIGHLIGHT_TINT = [1, 0, 0.25, 1]; // rgba
|
const HIGHLIGHT_TINT = [1, 0, 0.25, 1]; // rgba
|
||||||
|
@ -38,7 +38,7 @@ function getHighlighterCanvasFrameHelper(conn, actorID) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var TestActor = exports.TestActor = protocol.ActorClass({
|
const TestActor = exports.TestActor = protocol.ActorClass({
|
||||||
typeName: "testActor",
|
typeName: "testActor",
|
||||||
|
|
||||||
initialize: function(conn, tabActor, options) {
|
initialize: function(conn, tabActor, options) {
|
||||||
@ -525,7 +525,7 @@ var TestActor = exports.TestActor = protocol.ActorClass({
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
var TestActorFront = exports.TestActorFront = protocol.FrontClass(TestActor, {
|
const TestActorFront = exports.TestActorFront = protocol.FrontClass(TestActor, {
|
||||||
initialize: function(client, { testActor }, toolbox) {
|
initialize: function(client, { testActor }, toolbox) {
|
||||||
protocol.Front.prototype.initialize.call(this, client, { actor: testActor });
|
protocol.Front.prototype.initialize.call(this, client, { actor: testActor });
|
||||||
this.manage(this);
|
this.manage(this);
|
||||||
|
@ -20,11 +20,6 @@ const EVENTS = {
|
|||||||
HEADER_CONTEXT_MENU: "header-context-menu",
|
HEADER_CONTEXT_MENU: "header-context-menu",
|
||||||
ROW_CONTEXT_MENU: "row-context-menu"
|
ROW_CONTEXT_MENU: "row-context-menu"
|
||||||
};
|
};
|
||||||
Object.defineProperty(this, "EVENTS", {
|
|
||||||
value: EVENTS,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
|
|
||||||
// Maximum number of character visible in any cell in the table. This is to avoid
|
// Maximum number of character visible in any cell in the table. This is to avoid
|
||||||
// making the cell take up all the space in a row.
|
// making the cell take up all the space in a row.
|
||||||
|
@ -74,7 +74,6 @@ const EVENTS = {
|
|||||||
// Called when the inspector splitter is moved and resized.
|
// Called when the inspector splitter is moved and resized.
|
||||||
UI_INSPECTOR_RESIZE: "WebAudioEditor:UIInspectorResize"
|
UI_INSPECTOR_RESIZE: "WebAudioEditor:UIInspectorResize"
|
||||||
};
|
};
|
||||||
XPCOMUtils.defineConstant(this, "EVENTS", EVENTS);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current target and the Web Audio Editor front, set by this tool's host.
|
* The current target and the Web Audio Editor front, set by this tool's host.
|
||||||
|
@ -21,11 +21,6 @@ const MARKER_STYLING = {
|
|||||||
light: "#AAA",
|
light: "#AAA",
|
||||||
dark: "#CED3D9"
|
dark: "#CED3D9"
|
||||||
};
|
};
|
||||||
Object.defineProperty(this, "MARKER_STYLING", {
|
|
||||||
value: MARKER_STYLING,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
|
|
||||||
const GRAPH_DEBOUNCE_TIMER = 100;
|
const GRAPH_DEBOUNCE_TIMER = 100;
|
||||||
|
|
||||||
|
@ -28,11 +28,7 @@ var test = asyncTest(function*() {
|
|||||||
let { jsterm } = yield openConsole();
|
let { jsterm } = yield openConsole();
|
||||||
let popup = jsterm.autocompletePopup;
|
let popup = jsterm.autocompletePopup;
|
||||||
|
|
||||||
yield jsterm.execute("var testObject = {$$aaab: '', $$aaac: ''}");
|
yield jsterm.execute("let testObject = {$$aaab: '', $$aaac: ''}");
|
||||||
|
|
||||||
// FIXMEshu: global lexicals can't be autocompleted without extra platform
|
|
||||||
// support. See bug 1207868.
|
|
||||||
//yield jsterm.execute("let testObject = {$$aaab: '', $$aaac: ''}");
|
|
||||||
|
|
||||||
// Should work with bug 967468.
|
// Should work with bug 967468.
|
||||||
yield autocomplete("Object.__d");
|
yield autocomplete("Object.__d");
|
||||||
|
@ -38,16 +38,6 @@ const MIN_ZOOM = 0.6;
|
|||||||
|
|
||||||
const MS_PER_DAY = 86400000;
|
const MS_PER_DAY = 86400000;
|
||||||
|
|
||||||
[["AppManager", AppManager],
|
|
||||||
["AppProjects", AppProjects],
|
|
||||||
["Connection", Connection]].forEach(([key, value]) => {
|
|
||||||
Object.defineProperty(this, key, {
|
|
||||||
value: value,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// Download remote resources early
|
// Download remote resources early
|
||||||
getJSON("devtools.webide.addonsURL", true);
|
getJSON("devtools.webide.addonsURL", true);
|
||||||
getJSON("devtools.webide.templatesURL", true);
|
getJSON("devtools.webide.templatesURL", true);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
const protocol = require("devtools/server/protocol");
|
const protocol = require("devtools/server/protocol");
|
||||||
|
|
||||||
var HelloActor = protocol.ActorClass({
|
const HelloActor = protocol.ActorClass({
|
||||||
typeName: "helloActor",
|
typeName: "helloActor",
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
@ -67,7 +67,7 @@ window.onload = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkActorState(helloActor, callback) {
|
function checkActorState(helloActor, callback) {
|
||||||
getCount(helloActor, response => {
|
getCount(helloActor, response => {
|
||||||
ok(!response.error, "No error");
|
ok(!response.error, "No error");
|
||||||
is(response.count, 1, "The counter must be valid");
|
is(response.count, 1, "The counter must be valid");
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
const protocol = require("devtools/server/protocol");
|
const protocol = require("devtools/server/protocol");
|
||||||
|
|
||||||
var HelloActor = protocol.ActorClass({
|
const HelloActor = protocol.ActorClass({
|
||||||
typeName: "helloActor",
|
typeName: "helloActor",
|
||||||
|
|
||||||
hello: protocol.method(function () {
|
hello: protocol.method(function () {
|
||||||
|
@ -36,8 +36,7 @@ function test_pause_frame()
|
|||||||
do_check_eq(vars.stopMe.value.class, "Function");
|
do_check_eq(vars.stopMe.value.class, "Function");
|
||||||
do_check_true(!!vars.stopMe.value.actor);
|
do_check_true(!!vars.stopMe.value.actor);
|
||||||
|
|
||||||
// Skip both the eval lexical scope and the global lexical scope.
|
parentEnv = parentEnv.parent.parent;
|
||||||
parentEnv = parentEnv.parent.parent.parent;
|
|
||||||
do_check_neq(parentEnv, undefined);
|
do_check_neq(parentEnv, undefined);
|
||||||
let objClient = gThreadClient.pauseGrip(parentEnv.object);
|
let objClient = gThreadClient.pauseGrip(parentEnv.object);
|
||||||
objClient.getPrototypeAndProperties(function(aResponse) {
|
objClient.getPrototypeAndProperties(function(aResponse) {
|
||||||
|
@ -36,8 +36,7 @@ function test_pause_frame()
|
|||||||
do_check_eq(aResponse.ownProperties.cos.value.class, "Function");
|
do_check_eq(aResponse.ownProperties.cos.value.class, "Function");
|
||||||
do_check_true(!!aResponse.ownProperties.cos.value.actor);
|
do_check_true(!!aResponse.ownProperties.cos.value.actor);
|
||||||
|
|
||||||
// Skip both the eval lexical scope and the global lexical scope.
|
let parentEnv = env.parent.parent;
|
||||||
let parentEnv = env.parent.parent.parent;
|
|
||||||
do_check_neq(parentEnv, undefined);
|
do_check_neq(parentEnv, undefined);
|
||||||
|
|
||||||
let parentClient = gThreadClient.pauseGrip(parentEnv.object);
|
let parentClient = gThreadClient.pauseGrip(parentEnv.object);
|
||||||
|
@ -44,10 +44,5 @@ const Devices = {
|
|||||||
return this._devices[name];
|
return this._devices[name];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Object.defineProperty(this, "Devices", {
|
|
||||||
value: Devices,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
|
|
||||||
EventEmitter.decorate(Devices);
|
EventEmitter.decorate(Devices);
|
||||||
|
@ -18,6 +18,7 @@ SimpleTest.waitForExplicitFinish();
|
|||||||
let gState;
|
let gState;
|
||||||
let tests;
|
let tests;
|
||||||
|
|
||||||
|
let {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
let {WebConsoleCommands} = require("devtools/shared/webconsole/utils");
|
let {WebConsoleCommands} = require("devtools/shared/webconsole/utils");
|
||||||
|
|
||||||
function evaluateJS(input) {
|
function evaluateJS(input) {
|
||||||
|
@ -16,6 +16,7 @@ SimpleTest.waitForExplicitFinish();
|
|||||||
|
|
||||||
let gState;
|
let gState;
|
||||||
|
|
||||||
|
let {require} = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
|
||||||
let {MAX_AUTOCOMPLETE_ATTEMPTS,MAX_AUTOCOMPLETIONS} = require("devtools/shared/webconsole/utils");
|
let {MAX_AUTOCOMPLETE_ATTEMPTS,MAX_AUTOCOMPLETIONS} = require("devtools/shared/webconsole/utils");
|
||||||
|
|
||||||
// This test runs all of its assertions twice - once with
|
// This test runs all of its assertions twice - once with
|
||||||
|
@ -429,7 +429,7 @@ var {
|
|||||||
return {
|
return {
|
||||||
Debugger,
|
Debugger,
|
||||||
createSandbox,
|
createSandbox,
|
||||||
dump: this.dump,
|
dump,
|
||||||
rpc,
|
rpc,
|
||||||
loadSubScript,
|
loadSubScript,
|
||||||
reportError,
|
reportError,
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
forceFlush = document.documentElement.offsetHeight;
|
forceFlush = document.documentElement.offsetHeight;
|
||||||
|
|
||||||
info("Checking that the anonymous content can be retrieved still");
|
info("Checking that the anonymous content can be retrieved still");
|
||||||
style = anonymousContent.getAttributeForElement("test-element", "style");
|
let style = anonymousContent.getAttributeForElement("test-element", "style");
|
||||||
is(style, "color:green;", "The anonymous content still exists after reflow");
|
is(style, "color:green;", "The anonymous content still exists after reflow");
|
||||||
|
|
||||||
info("Removing the anonymous content");
|
info("Removing the anonymous content");
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
let style = anonymousContent.setAttributeForElement("test-element",
|
let style = anonymousContent.setAttributeForElement("test-element",
|
||||||
"style", "color:green;");
|
"style", "color:green;");
|
||||||
|
|
||||||
style = anonymousContent.getAttributeForElement("test-element", "style");
|
let style = anonymousContent.getAttributeForElement("test-element", "style");
|
||||||
is(style, "color:green;", "The anonymous content exists with CSP");
|
is(style, "color:green;", "The anonymous content exists with CSP");
|
||||||
|
|
||||||
chromeDocument.removeAnonymousContent(anonymousContent);
|
chromeDocument.removeAnonymousContent(anonymousContent);
|
||||||
|
@ -161,7 +161,7 @@ function testNextRemove() {
|
|||||||
|
|
||||||
ok(navigator.getDeviceStorage, "Should have getDeviceStorage.");
|
ok(navigator.getDeviceStorage, "Should have getDeviceStorage.");
|
||||||
|
|
||||||
gStorage = navigator.getDeviceStorage("pictures");
|
let gStorage = navigator.getDeviceStorage("pictures");
|
||||||
ok(gStorage, "Should have gotten a storage.");
|
ok(gStorage, "Should have gotten a storage.");
|
||||||
|
|
||||||
// Test "removeDeep" first.
|
// Test "removeDeep" first.
|
||||||
|
@ -29,11 +29,11 @@ and
|
|||||||
<script class="testbody" type="text/javascript; version=1.7">
|
<script class="testbody" type="text/javascript; version=1.7">
|
||||||
|
|
||||||
/** Test for Bug 418756 and 617528 **/
|
/** Test for Bug 418756 and 617528 **/
|
||||||
var group1;
|
let group1;
|
||||||
var group2;
|
let group2;
|
||||||
var group3;
|
let group3;
|
||||||
|
|
||||||
var tags = ["input", "menuitem"];
|
let tags = ["input", "menuitem"];
|
||||||
for each (let tag in tags) {
|
for each (let tag in tags) {
|
||||||
|
|
||||||
function bounce(node) {
|
function bounce(node) {
|
||||||
@ -43,7 +43,7 @@ function bounce(node) {
|
|||||||
p.insertBefore(node, n);
|
p.insertBefore(node, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
var createdNodes = [];
|
let createdNodes = [];
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
for each (let node in createdNodes) {
|
for each (let node in createdNodes) {
|
||||||
@ -55,12 +55,12 @@ function cleanup() {
|
|||||||
createdNodes = [];
|
createdNodes = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
var typeMapper = {
|
let typeMapper = {
|
||||||
'c': 'checkbox',
|
'c': 'checkbox',
|
||||||
'r': 'radio'
|
'r': 'radio'
|
||||||
};
|
};
|
||||||
|
|
||||||
var id = 0;
|
let id = 0;
|
||||||
|
|
||||||
// type can be 'c' for 'checkbox' and 'r' for 'radio'
|
// type can be 'c' for 'checkbox' and 'r' for 'radio'
|
||||||
function createNode(type, name, checked) {
|
function createNode(type, name, checked) {
|
||||||
@ -75,7 +75,7 @@ function createNode(type, name, checked) {
|
|||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
var types = ['c', 'r'];
|
let types = ['c', 'r'];
|
||||||
|
|
||||||
// First make sure that setting .checked makes .defaultChecked changes no
|
// First make sure that setting .checked makes .defaultChecked changes no
|
||||||
// longer affect .checked.
|
// longer affect .checked.
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
// This script is run when the preallocated process starts. It is injected as
|
// This script is run when the preallocated process starts. It is injected as
|
||||||
// a frame script.
|
// a frame script.
|
||||||
|
|
||||||
var BrowserElementIsPreloaded = true;
|
const BrowserElementIsPreloaded = true;
|
||||||
|
|
||||||
var DoPreloadPostfork = function(aCallback) {
|
const DoPreloadPostfork = function(aCallback) {
|
||||||
Services.obs.addObserver({
|
Services.obs.addObserver({
|
||||||
_callback: aCallback,
|
_callback: aCallback,
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
|
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
|
||||||
|
|
||||||
Cu.importGlobalProperties(['Blob']);
|
Cu.importGlobalProperties(['Blob']);
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
||||||
Cu.import("resource://gre/modules/wap_consts.js", this);
|
Cu.import("resource://gre/modules/wap_consts.js", this);
|
||||||
|
|
||||||
var DEBUG; // set to true to see debug messages
|
var DEBUG; // set to true to see debug messages
|
||||||
@ -21,21 +20,10 @@ const HT = 9;
|
|||||||
const DQUOTE = 34;
|
const DQUOTE = 34;
|
||||||
const DEL = 127;
|
const DEL = 127;
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "NUL", NUL);
|
|
||||||
XPCOMUtils.defineConstant(this, "CR", CR);
|
|
||||||
XPCOMUtils.defineConstant(this, "LF", LF);
|
|
||||||
XPCOMUtils.defineConstant(this, "SP", SP);
|
|
||||||
XPCOMUtils.defineConstant(this, "HT", HT);
|
|
||||||
XPCOMUtils.defineConstant(this, "DQUOTE", DQUOTE);
|
|
||||||
XPCOMUtils.defineConstant(this, "DEL", DEL);
|
|
||||||
|
|
||||||
// Special ASCII character ranges
|
// Special ASCII character ranges
|
||||||
const CTLS = 32;
|
const CTLS = 32;
|
||||||
const ASCIIS = 128;
|
const ASCIIS = 128;
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "CTLS", CTLS);
|
|
||||||
XPCOMUtils.defineConstant(this, "ASCIIS", ASCIIS);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error class for generic encoding/decoding failures.
|
* Error class for generic encoding/decoding failures.
|
||||||
*/
|
*/
|
||||||
|
@ -11,6 +11,8 @@ if ("@mozilla.org/windows-registry-key;1" in Components.classes)
|
|||||||
DELIM = "|";
|
DELIM = "|";
|
||||||
|
|
||||||
var gProfD = do_get_profile_startup();
|
var gProfD = do_get_profile_startup();
|
||||||
|
var gDirSvc = Cc["@mozilla.org/file/directory_service;1"].
|
||||||
|
getService(Ci.nsIProperties);
|
||||||
|
|
||||||
// Writes out some plugin registry to the profile
|
// Writes out some plugin registry to the profile
|
||||||
function write_registry(version, info) {
|
function write_registry(version, info) {
|
||||||
|
@ -11,6 +11,8 @@ if ("@mozilla.org/windows-registry-key;1" in Components.classes)
|
|||||||
DELIM = "|";
|
DELIM = "|";
|
||||||
|
|
||||||
var gProfD = do_get_profile_startup();
|
var gProfD = do_get_profile_startup();
|
||||||
|
var gDirSvc = Cc["@mozilla.org/file/directory_service;1"].
|
||||||
|
getService(Ci.nsIProperties);
|
||||||
|
|
||||||
// Writes out some plugin registry to the profile
|
// Writes out some plugin registry to the profile
|
||||||
function write_registry(version, info) {
|
function write_registry(version, info) {
|
||||||
|
@ -56,6 +56,9 @@ function createAppInfo(id, name, version, platformVersion) {
|
|||||||
XULAPPINFO_CONTRACTID, XULAppInfoFactory);
|
XULAPPINFO_CONTRACTID, XULAppInfoFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var gDirSvc = Cc["@mozilla.org/file/directory_service;1"]
|
||||||
|
.getService(Ci.nsIProperties);
|
||||||
|
|
||||||
var gPluginHost = null;
|
var gPluginHost = null;
|
||||||
|
|
||||||
function test_expected_permission_string(aPermString) {
|
function test_expected_permission_string(aPermString) {
|
||||||
|
@ -11,6 +11,8 @@ if ("@mozilla.org/windows-registry-key;1" in Components.classes)
|
|||||||
DELIM = "|";
|
DELIM = "|";
|
||||||
|
|
||||||
var gProfD = do_get_profile_startup();
|
var gProfD = do_get_profile_startup();
|
||||||
|
var gDirSvc = Cc["@mozilla.org/file/directory_service;1"].
|
||||||
|
getService(Ci.nsIProperties);
|
||||||
|
|
||||||
// Writes out some plugin registry to the profile
|
// Writes out some plugin registry to the profile
|
||||||
function write_registry(version, info) {
|
function write_registry(version, info) {
|
||||||
|
@ -60,12 +60,6 @@ const MMI_PROCEDURE_INTERROGATION = "*#";
|
|||||||
const MMI_PROCEDURE_REGISTRATION = "**";
|
const MMI_PROCEDURE_REGISTRATION = "**";
|
||||||
const MMI_PROCEDURE_ERASURE = "##";
|
const MMI_PROCEDURE_ERASURE = "##";
|
||||||
|
|
||||||
XPCOMUtils.defineConstant(this, "MMI_PROCEDURE_ACTIVATION", MMI_PROCEDURE_ACTIVATION);
|
|
||||||
XPCOMUtils.defineConstant(this, "MMI_PROCEDURE_DEACTIVATION", MMI_PROCEDURE_DEACTIVATION);
|
|
||||||
XPCOMUtils.defineConstant(this, "MMI_PROCEDURE_INTERROGATION", MMI_PROCEDURE_INTERROGATION);
|
|
||||||
XPCOMUtils.defineConstant(this, "MMI_PROCEDURE_REGISTRATION", MMI_PROCEDURE_REGISTRATION);
|
|
||||||
XPCOMUtils.defineConstant(this, "MMI_PROCEDURE_ERASURE", MMI_PROCEDURE_ERASURE);
|
|
||||||
|
|
||||||
// MMI call forwarding service codes as defined in TS.22.030 Annex B
|
// MMI call forwarding service codes as defined in TS.22.030 Annex B
|
||||||
const MMI_SC_CFU = "21";
|
const MMI_SC_CFU = "21";
|
||||||
const MMI_SC_CF_BUSY = "67";
|
const MMI_SC_CF_BUSY = "67";
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
|
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
|
||||||
<script type="application/javascript;version=1.8">
|
<script type="application/javascript;version=1.8">
|
||||||
|
|
||||||
var SimpleTest = window.opener.SimpleTest;
|
let SimpleTest = window.opener.SimpleTest;
|
||||||
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
||||||
function done() { window.opener.done.apply(window.opener, arguments); }
|
function done() { window.opener.done.apply(window.opener, arguments); }
|
||||||
let e = {};
|
let e = {};
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script type="application/javascript;version=1.8">
|
<script type="application/javascript;version=1.8">
|
||||||
var SimpleTest = window.opener.SimpleTest;
|
let SimpleTest = window.opener.SimpleTest;
|
||||||
var Ci = Components.interfaces;
|
let Ci = Components.interfaces;
|
||||||
|
|
||||||
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
||||||
function done() { window.opener.done.apply(window.opener, arguments); }
|
function done() { window.opener.done.apply(window.opener, arguments); }
|
||||||
|
@ -45,8 +45,8 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script type="application/javascript;version=1.8">
|
<script type="application/javascript;version=1.8">
|
||||||
var SimpleTest = window.opener.SimpleTest;
|
let SimpleTest = window.opener.SimpleTest;
|
||||||
var Ci = Components.interfaces;
|
let Ci = Components.interfaces;
|
||||||
|
|
||||||
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
||||||
function done() { window.opener.done.apply(window.opener, arguments); }
|
function done() { window.opener.done.apply(window.opener, arguments); }
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
|
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css">
|
||||||
|
|
||||||
<script type="application/javascript;version=1.8">
|
<script type="application/javascript;version=1.8">
|
||||||
var SimpleTest = window.opener.SimpleTest;
|
let SimpleTest = window.opener.SimpleTest;
|
||||||
var Ci = Components.interfaces;
|
let Ci = Components.interfaces;
|
||||||
|
|
||||||
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
function ok() { window.opener.ok.apply(window.opener, arguments); }
|
||||||
function done() { window.opener.done.apply(window.opener, arguments); }
|
function done() { window.opener.done.apply(window.opener, arguments); }
|
||||||
|
@ -367,17 +367,6 @@ this.XPCOMUtils = {
|
|||||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIFactory])
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsIFactory])
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* Defines a non-writable property on an object.
|
|
||||||
*/
|
|
||||||
defineConstant: function XPCOMUtils__defineConstant(aObj, aName, aValue) {
|
|
||||||
Object.defineProperty(aObj, aName, {
|
|
||||||
value: aValue,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,7 +20,7 @@ function run_test()
|
|||||||
|
|
||||||
do_check_eq(a, 3);
|
do_check_eq(a, 3);
|
||||||
do_check_eq(b, 3);
|
do_check_eq(b, 3);
|
||||||
// c is a lexical binding and does not write to the global prototype
|
do_check_eq(c, 3);
|
||||||
do_check_eq(d, 3);
|
do_check_eq(d, 3);
|
||||||
do_check_eq(e(), 3);
|
do_check_eq(e(), 3);
|
||||||
|
|
||||||
|
@ -22,9 +22,6 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
Cu.import("resource://gre/modules/Task.jsm");
|
Cu.import("resource://gre/modules/Task.jsm");
|
||||||
|
|
||||||
let gChromeWin;
|
|
||||||
let gBrowserApp;
|
|
||||||
|
|
||||||
setup_browser();
|
setup_browser();
|
||||||
|
|
||||||
// Make the timer global so it doesn't get GC'd
|
// Make the timer global so it doesn't get GC'd
|
||||||
@ -85,6 +82,9 @@ function getInputValue(browser, data) {
|
|||||||
|
|
||||||
let ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
|
let ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
|
||||||
|
|
||||||
|
let gChromeWin;
|
||||||
|
let gBrowserApp;
|
||||||
|
|
||||||
// Wait 2 seconds for the async Java/JS messsaging dance to settle down. We don't have
|
// Wait 2 seconds for the async Java/JS messsaging dance to settle down. We don't have
|
||||||
// enough pre/post events, messages or notifications to handle this without a delay.
|
// enough pre/post events, messages or notifications to handle this without a delay.
|
||||||
const CLOSE_TAB_WAIT = 2000;
|
const CLOSE_TAB_WAIT = 2000;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
|
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
|
||||||
|
|
||||||
var loader = Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
const loader = Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||||
.getService(Ci.mozIJSSubScriptLoader);
|
.getService(Ci.mozIJSSubScriptLoader);
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/FileUtils.jsm");
|
Cu.import("resource://gre/modules/FileUtils.jsm");
|
||||||
@ -42,7 +42,7 @@ loader.loadSubScript("chrome://marionette/content/frame-manager.js");
|
|||||||
|
|
||||||
this.EXPORTED_SYMBOLS = ["GeckoDriver", "Context"];
|
this.EXPORTED_SYMBOLS = ["GeckoDriver", "Context"];
|
||||||
|
|
||||||
var FRAME_SCRIPT = "chrome://marionette/content/listener.js";
|
const FRAME_SCRIPT = "chrome://marionette/content/listener.js";
|
||||||
const BROWSER_STARTUP_FINISHED = "browser-delayed-startup-finished";
|
const BROWSER_STARTUP_FINISHED = "browser-delayed-startup-finished";
|
||||||
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||||
const CLICK_TO_START_PREF = "marionette.debugging.clicktostart";
|
const CLICK_TO_START_PREF = "marionette.debugging.clicktostart";
|
||||||
@ -941,7 +941,7 @@ GeckoDriver.prototype.execute = function(cmd, resp, directInject) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (!directInject) {
|
if (!directInject) {
|
||||||
script = "var func = function() { " + script + " }; func.apply(null, __marionetteParams);";
|
script = "let func = function() { " + script + " }; func.apply(null, __marionetteParams);";
|
||||||
}
|
}
|
||||||
this.executeScriptInSandbox(
|
this.executeScriptInSandbox(
|
||||||
resp,
|
resp,
|
||||||
@ -1174,8 +1174,8 @@ GeckoDriver.prototype.executeWithCallback = function(cmd, resp, directInject) {
|
|||||||
|
|
||||||
if (!directInject) {
|
if (!directInject) {
|
||||||
script = "__marionetteParams.push(returnFunc);" +
|
script = "__marionetteParams.push(returnFunc);" +
|
||||||
"var marionetteScriptFinished = returnFunc;" +
|
"let marionetteScriptFinished = returnFunc;" +
|
||||||
"var __marionetteFunc = function() {" + script + "};" +
|
"let __marionetteFunc = function() {" + script + "};" +
|
||||||
"__marionetteFunc.apply(null, __marionetteParams);";
|
"__marionetteFunc.apply(null, __marionetteParams);";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -624,7 +624,7 @@ function executeScript(msg, directInject) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
script = "var __marionetteFunc = function(){" + script + "};" +
|
script = "let __marionetteFunc = function(){" + script + "};" +
|
||||||
"__marionetteFunc.apply(null, __marionetteParams);";
|
"__marionetteFunc.apply(null, __marionetteParams);";
|
||||||
if (importedScripts.exists()) {
|
if (importedScripts.exists()) {
|
||||||
let stream = Components.classes["@mozilla.org/network/file-input-stream;1"].
|
let stream = Components.classes["@mozilla.org/network/file-input-stream;1"].
|
||||||
@ -776,7 +776,7 @@ function executeWithCallback(msg, useFinish) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scriptSrc = "__marionetteParams.push(marionetteScriptFinished);" +
|
scriptSrc = "__marionetteParams.push(marionetteScriptFinished);" +
|
||||||
"var __marionetteFunc = function() { " + script + "};" +
|
"let __marionetteFunc = function() { " + script + "};" +
|
||||||
"__marionetteFunc.apply(null, __marionetteParams); ";
|
"__marionetteFunc.apply(null, __marionetteParams); ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
const {Constructor: CC, classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
const {Constructor: CC, classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||||
|
|
||||||
var loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
const loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
||||||
const ServerSocket = CC("@mozilla.org/network/server-socket;1", "nsIServerSocket", "initSpecialConnection");
|
const ServerSocket = CC("@mozilla.org/network/server-socket;1", "nsIServerSocket", "initSpecialConnection");
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/Log.jsm");
|
Cu.import("resource://gre/modules/Log.jsm");
|
||||||
|
@ -84,7 +84,7 @@ container.addEventListener('mozbrowsershowmodalprompt', function (e) {
|
|||||||
|
|
||||||
if (outOfProcess) {
|
if (outOfProcess) {
|
||||||
let specialpowers = {};
|
let specialpowers = {};
|
||||||
let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
||||||
loader.loadSubScript("chrome://specialpowers/content/SpecialPowersObserver.js", specialpowers);
|
loader.loadSubScript("chrome://specialpowers/content/SpecialPowersObserver.js", specialpowers);
|
||||||
let specialPowersObserver = new specialpowers.SpecialPowersObserver();
|
let specialPowersObserver = new specialpowers.SpecialPowersObserver();
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ if (outOfProcess) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (chrome) {
|
if (chrome) {
|
||||||
let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
|
||||||
if (typeof(SpecialPowers) == 'undefined') {
|
if (typeof(SpecialPowers) == 'undefined') {
|
||||||
loader.loadSubScript("chrome://specialpowers/content/specialpowersAPI.js");
|
loader.loadSubScript("chrome://specialpowers/content/specialpowersAPI.js");
|
||||||
loader.loadSubScript("chrome://specialpowers/content/SpecialPowersObserverAPI.js");
|
loader.loadSubScript("chrome://specialpowers/content/SpecialPowersObserverAPI.js");
|
||||||
@ -114,7 +114,7 @@ if (chrome) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (onDevice) {
|
if (onDevice) {
|
||||||
var cpuLock = Components.classes["@mozilla.org/power/powermanagerservice;1"]
|
var cpuLock = Cc["@mozilla.org/power/powermanagerservice;1"]
|
||||||
.getService(Ci.nsIPowerManagerService)
|
.getService(Ci.nsIPowerManagerService)
|
||||||
.newWakeLock("cpu");
|
.newWakeLock("cpu");
|
||||||
|
|
||||||
|
@ -958,26 +958,14 @@ function _getDOMWindowUtils(aWindow)
|
|||||||
getInterface(_EU_Ci.nsIDOMWindowUtils);
|
getInterface(_EU_Ci.nsIDOMWindowUtils);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _defineConstant(name, value) {
|
|
||||||
Object.defineProperty(this, name, {
|
|
||||||
value: value,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const COMPOSITION_ATTR_RAW_CLAUSE =
|
const COMPOSITION_ATTR_RAW_CLAUSE =
|
||||||
_EU_Ci.nsITextInputProcessor.ATTR_RAW_CLAUSE;
|
_EU_Ci.nsITextInputProcessor.ATTR_RAW_CLAUSE;
|
||||||
_defineConstant("COMPOSITION_ATTR_RAW_CLAUSE", COMPOSITION_ATTR_RAW_CLAUSE);
|
|
||||||
const COMPOSITION_ATTR_SELECTED_RAW_CLAUSE =
|
const COMPOSITION_ATTR_SELECTED_RAW_CLAUSE =
|
||||||
_EU_Ci.nsITextInputProcessor.ATTR_SELECTED_RAW_CLAUSE;
|
_EU_Ci.nsITextInputProcessor.ATTR_SELECTED_RAW_CLAUSE;
|
||||||
_defineConstant("COMPOSITION_ATTR_SELECTED_RAW_CLAUSE", COMPOSITION_ATTR_SELECTED_RAW_CLAUSE);
|
|
||||||
const COMPOSITION_ATTR_CONVERTED_CLAUSE =
|
const COMPOSITION_ATTR_CONVERTED_CLAUSE =
|
||||||
_EU_Ci.nsITextInputProcessor.ATTR_CONVERTED_CLAUSE;
|
_EU_Ci.nsITextInputProcessor.ATTR_CONVERTED_CLAUSE;
|
||||||
_defineConstant("COMPOSITION_ATTR_CONVERTED_CLAUSE", COMPOSITION_ATTR_CONVERTED_CLAUSE);
|
|
||||||
const COMPOSITION_ATTR_SELECTED_CLAUSE =
|
const COMPOSITION_ATTR_SELECTED_CLAUSE =
|
||||||
_EU_Ci.nsITextInputProcessor.ATTR_SELECTED_CLAUSE;
|
_EU_Ci.nsITextInputProcessor.ATTR_SELECTED_CLAUSE;
|
||||||
_defineConstant("COMPOSITION_ATTR_SELECTED_CLAUSE", COMPOSITION_ATTR_SELECTED_CLAUSE);
|
|
||||||
|
|
||||||
var TIPMap = new WeakMap();
|
var TIPMap = new WeakMap();
|
||||||
|
|
||||||
|
@ -72,4 +72,4 @@ TalosPowersService.prototype = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([TalosPowersService]);
|
const NSGetFactory = XPCOMUtils.generateNSGetFactory([TalosPowersService]);
|
||||||
|
@ -11,14 +11,6 @@
|
|||||||
|
|
||||||
const { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
|
const { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
|
||||||
|
|
||||||
// Match type constants.
|
|
||||||
// These indicate what type of search function we should be using.
|
|
||||||
const MATCH_ANYWHERE = Ci.mozIPlacesAutoComplete.MATCH_ANYWHERE;
|
|
||||||
const MATCH_BOUNDARY_ANYWHERE = Ci.mozIPlacesAutoComplete.MATCH_BOUNDARY_ANYWHERE;
|
|
||||||
const MATCH_BOUNDARY = Ci.mozIPlacesAutoComplete.MATCH_BOUNDARY;
|
|
||||||
const MATCH_BEGINNING = Ci.mozIPlacesAutoComplete.MATCH_BEGINNING;
|
|
||||||
const MATCH_BEGINNING_CASE_SENSITIVE = Ci.mozIPlacesAutoComplete.MATCH_BEGINNING_CASE_SENSITIVE;
|
|
||||||
|
|
||||||
const PREF_BRANCH = "browser.urlbar.";
|
const PREF_BRANCH = "browser.urlbar.";
|
||||||
|
|
||||||
// Prefs are defined as [pref name, default value].
|
// Prefs are defined as [pref name, default value].
|
||||||
@ -48,6 +40,14 @@ const PREF_SUGGEST_SEARCHES = [ "suggest.searches", false ];
|
|||||||
|
|
||||||
const PREF_MAX_CHARS_FOR_SUGGEST = [ "maxCharsForSearchSuggestions", 20];
|
const PREF_MAX_CHARS_FOR_SUGGEST = [ "maxCharsForSearchSuggestions", 20];
|
||||||
|
|
||||||
|
// Match type constants.
|
||||||
|
// These indicate what type of search function we should be using.
|
||||||
|
const MATCH_ANYWHERE = Ci.mozIPlacesAutoComplete.MATCH_ANYWHERE;
|
||||||
|
const MATCH_BOUNDARY_ANYWHERE = Ci.mozIPlacesAutoComplete.MATCH_BOUNDARY_ANYWHERE;
|
||||||
|
const MATCH_BOUNDARY = Ci.mozIPlacesAutoComplete.MATCH_BOUNDARY;
|
||||||
|
const MATCH_BEGINNING = Ci.mozIPlacesAutoComplete.MATCH_BEGINNING;
|
||||||
|
const MATCH_BEGINNING_CASE_SENSITIVE = Ci.mozIPlacesAutoComplete.MATCH_BEGINNING_CASE_SENSITIVE;
|
||||||
|
|
||||||
// AutoComplete query type constants.
|
// AutoComplete query type constants.
|
||||||
// Describes the various types of queries that we can process rows for.
|
// Describes the various types of queries that we can process rows for.
|
||||||
const QUERYTYPE_FILTERED = 0;
|
const QUERYTYPE_FILTERED = 0;
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
* Test bug 489872 to make sure passing nulls to nsNavHistory doesn't crash.
|
* Test bug 489872 to make sure passing nulls to nsNavHistory doesn't crash.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var Cr = Components.results;
|
||||||
|
|
||||||
// Make an array of services to test, each specifying a class id, interface
|
// Make an array of services to test, each specifying a class id, interface
|
||||||
// and an array of function names that don't throw when passed nulls
|
// and an array of function names that don't throw when passed nulls
|
||||||
var testServices = [
|
var testServices = [
|
||||||
|
@ -12,15 +12,6 @@ const FRAME_SCRIPT_URL = "chrome://global/content/backgroundPageThumbsContent.js
|
|||||||
|
|
||||||
const TELEMETRY_HISTOGRAM_ID_PREFIX = "FX_THUMBNAILS_BG_";
|
const TELEMETRY_HISTOGRAM_ID_PREFIX = "FX_THUMBNAILS_BG_";
|
||||||
|
|
||||||
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
|
||||||
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
||||||
|
|
||||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
|
|
||||||
Cu.import("resource://gre/modules/PageThumbs.jsm");
|
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
|
||||||
|
|
||||||
// possible FX_THUMBNAILS_BG_CAPTURE_DONE_REASON_2 telemetry values
|
// possible FX_THUMBNAILS_BG_CAPTURE_DONE_REASON_2 telemetry values
|
||||||
const TEL_CAPTURE_DONE_OK = 0;
|
const TEL_CAPTURE_DONE_OK = 0;
|
||||||
const TEL_CAPTURE_DONE_TIMEOUT = 1;
|
const TEL_CAPTURE_DONE_TIMEOUT = 1;
|
||||||
@ -28,11 +19,13 @@ const TEL_CAPTURE_DONE_TIMEOUT = 1;
|
|||||||
const TEL_CAPTURE_DONE_CRASHED = 4;
|
const TEL_CAPTURE_DONE_CRASHED = 4;
|
||||||
const TEL_CAPTURE_DONE_BAD_URI = 5;
|
const TEL_CAPTURE_DONE_BAD_URI = 5;
|
||||||
|
|
||||||
// These are looked up on the global as properties below.
|
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||||
XPCOMUtils.defineConstant(this, "TEL_CAPTURE_DONE_OK", TEL_CAPTURE_DONE_OK);
|
const HTML_NS = "http://www.w3.org/1999/xhtml";
|
||||||
XPCOMUtils.defineConstant(this, "TEL_CAPTURE_DONE_TIMEOUT", TEL_CAPTURE_DONE_TIMEOUT);
|
|
||||||
XPCOMUtils.defineConstant(this, "TEL_CAPTURE_DONE_CRASHED", TEL_CAPTURE_DONE_CRASHED);
|
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||||
XPCOMUtils.defineConstant(this, "TEL_CAPTURE_DONE_BAD_URI", TEL_CAPTURE_DONE_BAD_URI);
|
|
||||||
|
Cu.import("resource://gre/modules/PageThumbs.jsm");
|
||||||
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
const global = this;
|
const global = this;
|
||||||
|
|
||||||
@ -258,12 +251,6 @@ const BackgroundPageThumbs = {
|
|||||||
_destroyBrowserTimeout: DESTROY_BROWSER_TIMEOUT,
|
_destroyBrowserTimeout: DESTROY_BROWSER_TIMEOUT,
|
||||||
};
|
};
|
||||||
|
|
||||||
Object.defineProperty(this, "BackgroundPageThumbs", {
|
|
||||||
value: BackgroundPageThumbs,
|
|
||||||
enumerable: true,
|
|
||||||
writable: false
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a single capture request in the capture queue.
|
* Represents a single capture request in the capture queue.
|
||||||
*
|
*
|
||||||
@ -366,9 +353,8 @@ Capture.prototype = {
|
|||||||
let { captureCallback, doneCallbacks, options } = this;
|
let { captureCallback, doneCallbacks, options } = this;
|
||||||
this.destroy();
|
this.destroy();
|
||||||
|
|
||||||
if (typeof(reason) != "number") {
|
if (typeof(reason) != "number")
|
||||||
throw new Error("A done reason must be given.");
|
throw new Error("A done reason must be given.");
|
||||||
}
|
|
||||||
tel("CAPTURE_DONE_REASON_2", reason);
|
tel("CAPTURE_DONE_REASON_2", reason);
|
||||||
if (data && data.telemetry) {
|
if (data && data.telemetry) {
|
||||||
// Telemetry is currently disabled in the content process (bug 680508).
|
// Telemetry is currently disabled in the content process (bug 680508).
|
||||||
|
@ -11,8 +11,7 @@ Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
|||||||
.getService(Ci.mozIJSSubScriptLoader)
|
.getService(Ci.mozIJSSubScriptLoader)
|
||||||
.loadSubScript("resource://gre/modules/PageThumbs.jsm", tmp);
|
.loadSubScript("resource://gre/modules/PageThumbs.jsm", tmp);
|
||||||
|
|
||||||
const EXPIRATION_MIN_CHUNK_SIZE = 50;
|
const {EXPIRATION_MIN_CHUNK_SIZE, PageThumbsExpiration} = tmp;
|
||||||
const {PageThumbsExpiration} = tmp;
|
|
||||||
|
|
||||||
function runTests() {
|
function runTests() {
|
||||||
// Create dummy URLs.
|
// Create dummy URLs.
|
||||||
|
@ -260,10 +260,8 @@ DownloadListener.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const kSaveAsType_Complete = 0; // Save document with attached objects.
|
const kSaveAsType_Complete = 0; // Save document with attached objects.
|
||||||
XPCOMUtils.defineConstant(this, "kSaveAsType_Complete", 0);
|
|
||||||
// const kSaveAsType_URL = 1; // Save document or URL by itself.
|
// const kSaveAsType_URL = 1; // Save document or URL by itself.
|
||||||
const kSaveAsType_Text = 2; // Save document, converting to plain text.
|
const kSaveAsType_Text = 2; // Save document, converting to plain text.
|
||||||
XPCOMUtils.defineConstant(this, "kSaveAsType_Text", kSaveAsType_Text);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* internalSave: Used when saving a document or URL.
|
* internalSave: Used when saving a document or URL.
|
||||||
@ -789,13 +787,10 @@ function DownloadURL(aURL, aFileName, aInitiatingDocument) {
|
|||||||
|
|
||||||
// We have no DOM, and can only save the URL as is.
|
// We have no DOM, and can only save the URL as is.
|
||||||
const SAVEMODE_FILEONLY = 0x00;
|
const SAVEMODE_FILEONLY = 0x00;
|
||||||
XPCOMUtils.defineConstant(this, "SAVEMODE_FILEONLY", SAVEMODE_FILEONLY);
|
|
||||||
// We have a DOM and can save as complete.
|
// We have a DOM and can save as complete.
|
||||||
const SAVEMODE_COMPLETE_DOM = 0x01;
|
const SAVEMODE_COMPLETE_DOM = 0x01;
|
||||||
XPCOMUtils.defineConstant(this, "SAVEMODE_COMPLETE_DOM", SAVEMODE_COMPLETE_DOM);
|
|
||||||
// We have a DOM which we can serialize as text.
|
// We have a DOM which we can serialize as text.
|
||||||
const SAVEMODE_COMPLETE_TEXT = 0x02;
|
const SAVEMODE_COMPLETE_TEXT = 0x02;
|
||||||
XPCOMUtils.defineConstant(this, "SAVEMODE_COMPLETE_TEXT", SAVEMODE_COMPLETE_TEXT);
|
|
||||||
|
|
||||||
// If we are able to save a complete DOM, the 'save as complete' filter
|
// If we are able to save a complete DOM, the 'save as complete' filter
|
||||||
// must be the first filter appended. The 'save page only' counterpart
|
// must be the first filter appended. The 'save page only' counterpart
|
||||||
|
@ -153,11 +153,9 @@
|
|||||||
</field>
|
</field>
|
||||||
|
|
||||||
<field name="PrivateBrowsingUtils" readonly="true">
|
<field name="PrivateBrowsingUtils" readonly="true">
|
||||||
{
|
let utils = {};
|
||||||
let utils = {};
|
Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm", utils);
|
||||||
Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm", utils);
|
utils.PrivateBrowsingUtils
|
||||||
utils.PrivateBrowsingUtils
|
|
||||||
}
|
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
<property name="inPrivateContext" readonly="true"
|
<property name="inPrivateContext" readonly="true"
|
||||||
|
@ -779,11 +779,9 @@
|
|||||||
#endif
|
#endif
|
||||||
</field>
|
</field>
|
||||||
<field name="TelemetryStopwatch" readonly="true">
|
<field name="TelemetryStopwatch" readonly="true">
|
||||||
{
|
let tmp = {};
|
||||||
let tmp = {};
|
Cu.import("resource://gre/modules/TelemetryStopwatch.jsm", tmp);
|
||||||
Cu.import("resource://gre/modules/TelemetryStopwatch.jsm", tmp);
|
tmp.TelemetryStopwatch;
|
||||||
tmp.TelemetryStopwatch;
|
|
||||||
}
|
|
||||||
</field>
|
</field>
|
||||||
</implementation>
|
</implementation>
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
|
|||||||
|
|
||||||
this.EXPORTED_SYMBOLS = ["WindowsRegistry"];
|
this.EXPORTED_SYMBOLS = ["WindowsRegistry"];
|
||||||
|
|
||||||
var WindowsRegistry = {
|
const WindowsRegistry = {
|
||||||
/**
|
/**
|
||||||
* Safely reads a value from the registry.
|
* Safely reads a value from the registry.
|
||||||
*
|
*
|
||||||
|
@ -70,7 +70,6 @@ const GMP_PLUGINS = [
|
|||||||
missingKey: "VIDEO_ADOBE_GMP_DISAPPEARED",
|
missingKey: "VIDEO_ADOBE_GMP_DISAPPEARED",
|
||||||
missingFilesKey: "VIDEO_ADOBE_GMP_MISSING_FILES",
|
missingFilesKey: "VIDEO_ADOBE_GMP_MISSING_FILES",
|
||||||
}];
|
}];
|
||||||
XPCOMUtils.defineConstant(this, "GMP_PLUGINS", GMP_PLUGINS);
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(this, "pluginsBundle",
|
XPCOMUtils.defineLazyGetter(this, "pluginsBundle",
|
||||||
() => Services.strings.createBundle("chrome://global/locale/plugins.properties"));
|
() => Services.strings.createBundle("chrome://global/locale/plugins.properties"));
|
||||||
|
@ -157,7 +157,6 @@ const XPI_SIGNATURE_CHECK_PERIOD = 24 * 60 * 60;
|
|||||||
|
|
||||||
// The value for this is in Makefile.in
|
// The value for this is in Makefile.in
|
||||||
#expand const DB_SCHEMA = __MOZ_EXTENSIONS_DB_SCHEMA__;
|
#expand const DB_SCHEMA = __MOZ_EXTENSIONS_DB_SCHEMA__;
|
||||||
XPCOMUtils.defineConstant(this, "DB_SCHEMA", DB_SCHEMA);
|
|
||||||
const NOTIFICATION_TOOLBOXPROCESS_LOADED = "ToolboxProcessLoaded";
|
const NOTIFICATION_TOOLBOXPROCESS_LOADED = "ToolboxProcessLoaded";
|
||||||
|
|
||||||
// Properties that exist in the install manifest
|
// Properties that exist in the install manifest
|
||||||
|
Loading…
Reference in New Issue
Block a user