1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 09:07:58 +01:00

Delete horrible trailing whitespace.

This commit is contained in:
Kris Maglione
2011-01-29 17:19:37 -05:00
parent 313d2b223c
commit 6852407a16
7 changed files with 35 additions and 35 deletions

View File

@@ -353,7 +353,7 @@ Controller.prototype = {
this.setExMode(); this.setExMode();
utils.assertEqual("dactyl.runExCompletion", utils.assertEqual("dactyl.runExCompletion",
this.elements.commandInput, this.elements.commandInput,
this.elements.focused, this.elements.focused,
"Running Ex Completion: The command line is not focused"); "Running Ex Completion: The command line is not focused");

View File

@@ -121,7 +121,7 @@ addonsManager.prototype = {
* [optional - default: menu] * [optional - default: menu]
* waitFor - Wait until the Add-ons Manager has been opened * waitFor - Wait until the Add-ons Manager has been opened
* [optional - default: true] * [optional - default: true]
* *
* *
* @returns Reference the tab with the Add-ons Manager open * @returns Reference the tab with the Add-ons Manager open
* @type {object} * @type {object}
@@ -181,7 +181,7 @@ addonsManager.prototype = {
// mozmill.utils.waitFor(function() { // mozmill.utils.waitFor(function() {
// return self.isOpen; // return self.isOpen;
// }, timeout, 100, "Add-ons Manager has been opened"); // }, timeout, 100, "Add-ons Manager has been opened");
mozmill.utils.waitForEval("subject.isOpen", timeout, 100, this); mozmill.utils.waitForEval("subject.isOpen", timeout, 100, this);
// The first tab found will be the selected one // The first tab found will be the selected one
@@ -238,16 +238,16 @@ addonsManager.prototype = {
this._controller.click(button); this._controller.click(button);
// Click the button and wait until menu has been opened // Click the button and wait until menu has been opened
// TODO: restore after 1.5.1 has landed // TODO: restore after 1.5.1 has landed
// mozmill.utils.waitFor(function() { // mozmill.utils.waitFor(function() {
// return menu.getNode() && menu.getNode().state == "open"; // return menu.getNode() && menu.getNode().state == "open";
// }, TIMEOUT, 100, "Menu of utils button has been opened."); // }, TIMEOUT, 100, "Menu of utils button has been opened.");
mozmill.utils.waitForEval("subject && subject.state == 'open'", mozmill.utils.waitForEval("subject && subject.state == 'open'",
TIMEOUT, 100, menu.getNode()); TIMEOUT, 100, menu.getNode());
// Click the given menu entry and make sure the // Click the given menu entry and make sure the
var menuItem = this.getElement({ var menuItem = this.getElement({
type: "utilsButton_menuItem", type: "utilsButton_menuItem",
value: "#utils-" + item value: "#utils-" + item
@@ -257,12 +257,12 @@ addonsManager.prototype = {
} finally { } finally {
// Make sure the menu has been closed // Make sure the menu has been closed
this._controller.keypress(menu, "VK_ESCAPE", {}); this._controller.keypress(menu, "VK_ESCAPE", {});
// TODO: restore after 1.5.1 has landed // TODO: restore after 1.5.1 has landed
// mozmill.utils.waitFor(function() { // mozmill.utils.waitFor(function() {
// return menu.getNode() && menu.getNode().state == "closed"; // return menu.getNode() && menu.getNode().state == "closed";
// }, TIMEOUT, 100, "Menu of utils button has been closed."); // }, TIMEOUT, 100, "Menu of utils button has been closed.");
mozmill.utils.waitForEval("subject && subject.state == 'closed'", mozmill.utils.waitForEval("subject && subject.state == 'closed'",
TIMEOUT, 100, menu.getNode()); TIMEOUT, 100, menu.getNode());
} }
@@ -569,7 +569,7 @@ addonsManager.prototype = {
/** /**
* Wait until the specified add-on has been downloaded * Wait until the specified add-on has been downloaded
* *
* @param {object} aSpec * @param {object} aSpec
* Object with parameters for customization * Object with parameters for customization
* Elements: addon - Add-on element to wait for being downloaded * Elements: addon - Add-on element to wait for being downloaded
@@ -586,13 +586,13 @@ addonsManager.prototype = {
var self = this; var self = this;
var node = addon.getNode(); var node = addon.getNode();
// TODO: restore after 1.5.1 has landed // TODO: restore after 1.5.1 has landed
// mozmill.utils.waitFor(function () { // mozmill.utils.waitFor(function () {
// return node.getAttribute("pending") == "install" && // return node.getAttribute("pending") == "install" &&
// node.getAttribute("status") != "installing"; // node.getAttribute("status") != "installing";
// }, timeout, 100, "'" + node.getAttribute("name") + "' has been downloaded"); // }, timeout, 100, "'" + node.getAttribute("name") + "' has been downloaded");
mozmill.utils.waitForEval("subject.getAttribute('pending') == 'install' &&" + mozmill.utils.waitForEval("subject.getAttribute('pending') == 'install' &&" +
"subject.getAttribute('status') != 'installing'", "subject.getAttribute('status') != 'installing'",
timeout, 100, node); timeout, 100, node);
@@ -738,7 +738,7 @@ addonsManager.prototype = {
/** /**
* Wait until the specified category has been selected * Wait until the specified category has been selected
* *
* @param {object} aSpec * @param {object} aSpec
* Object with parameters for customization * Object with parameters for customization
* Elements: category - Category element to wait for * Elements: category - Category element to wait for
@@ -758,9 +758,9 @@ addonsManager.prototype = {
// mozmill.utils.waitFor(function () { // mozmill.utils.waitFor(function () {
// return self.selectedCategory.getNode() == category.getNode(); // return self.selectedCategory.getNode() == category.getNode();
// }, timeout, 100, "Category '" + category.getNode().id + "' has been set"); // }, timeout, 100, "Category '" + category.getNode().id + "' has been set");
mozmill.utils.waitForEval("subject.self.selectedCategory.getNode() == subject.aCategory.getNode()", mozmill.utils.waitForEval("subject.self.selectedCategory.getNode() == subject.aCategory.getNode()",
timeout, 100, timeout, 100,
{self: this, aCategory: category}); {self: this, aCategory: category});
}, },
@@ -916,7 +916,7 @@ addonsManager.prototype = {
/** /**
* Waits until the specified search filter has been selected * Waits until the specified search filter has been selected
* *
* @param {object} aSpec * @param {object} aSpec
* Object with parameters for customization * Object with parameters for customization
* Elements: filter - Filter element to wait for * Elements: filter - Filter element to wait for
@@ -933,11 +933,11 @@ addonsManager.prototype = {
// TODO: restore after 1.5.1 has landed // TODO: restore after 1.5.1 has landed
// var self = this; // var self = this;
// //
// mozmill.utils.waitFor(function () { // mozmill.utils.waitFor(function () {
// return self.selectedSearchFilter.getNode() == filter.getNode(); // return self.selectedSearchFilter.getNode() == filter.getNode();
// }, timeout, 100, "Search filter '" + filter.getNode().value + "' has been set"); // }, timeout, 100, "Search filter '" + filter.getNode().value + "' has been set");
mozmill.utils.waitForEval("subject.self.selectedSearchFilter.getNode() == subject.aFilter.getNode()", mozmill.utils.waitForEval("subject.self.selectedSearchFilter.getNode() == subject.aFilter.getNode()",
timeout, 100, timeout, 100,
{self: this, aFilter: filter}); {self: this, aFilter: filter});
@@ -967,7 +967,7 @@ addonsManager.prototype = {
/** /**
* Waits until the active search has been finished * Waits until the active search has been finished
* *
* @param {object} aSpec * @param {object} aSpec
* Object with parameters for customization * Object with parameters for customization
* Elements: timeout - Duration to wait for the target state * Elements: timeout - Duration to wait for the target state
@@ -978,12 +978,12 @@ addonsManager.prototype = {
// TODO: restore after 1.5.1 has landed // TODO: restore after 1.5.1 has landed
// var self = this; // var self = this;
// //
// mozmill.utils.waitFor(function () { // mozmill.utils.waitFor(function () {
// return self.isSearching == false; // return self.isSearching == false;
// }, timeout, 100, "Search has been finished"); // }, timeout, 100, "Search has been finished");
mozmill.utils.waitForEval("subject.isSearching == false", mozmill.utils.waitForEval("subject.isSearching == false",
timeout, 100, this); timeout, 100, this);
}, },
@@ -1231,7 +1231,7 @@ addonsManager.prototype = {
* @param {string} aDomain * @param {string} aDomain
* The domain to add the permission for * The domain to add the permission for
*/ */
function addToWhiteList(aDomain) { function addToWhiteList(aDomain) {
pm.add(utils.createURI(aDomain), pm.add(utils.createURI(aDomain),
"install", "install",
Ci.nsIPermissionManager.ALLOW_ACTION); Ci.nsIPermissionManager.ALLOW_ACTION);
@@ -1242,7 +1242,7 @@ function addToWhiteList(aDomain) {
* @param {string} aHost * @param {string} aHost
* The host whose permission will be removed * The host whose permission will be removed
*/ */
function removeFromWhiteList(aHost) { function removeFromWhiteList(aHost) {
pm.remove(aHost, "install"); pm.remove(aHost, "install");
} }

View File

@@ -219,7 +219,7 @@ DOMWalker.prototype = {
} }
collectedResults = collectedResults.concat(nodeTestResults); collectedResults = collectedResults.concat(nodeTestResults);
return collectedResults; return collectedResults;
}, },

View File

@@ -136,7 +136,7 @@ PerfTracer.prototype = {
* *
* @param {string} path * @param {string} path
* Path of memory reporter (e.g. PATH_MAPPED) * Path of memory reporter (e.g. PATH_MAPPED)
* @returns Memory value from requested reporter, MEMORY_UNAVAILABLE if * @returns Memory value from requested reporter, MEMORY_UNAVAILABLE if
* not found * not found
* @type {number} * @type {number}
*/ */
@@ -181,7 +181,7 @@ PerfTracer.prototype = {
finish : function PerfTracer_finish() { finish : function PerfTracer_finish() {
// Title // Title
var title = "Performance Trace (" + this._name + ")"; var title = "Performance Trace (" + this._name + ")";
// Separator // Separator
var sep = ""; var sep = "";
for(var i = 0; i < title.length; i++) { for(var i = 0; i < title.length; i++) {

View File

@@ -169,7 +169,7 @@ function removeAllHistory() {
// Set up an observer so we get notified when remove completes // Set up an observer so we get notified when remove completes
let observer = { let observer = {
observe: function(aSubject, aTopic, aData) { observe: function(aSubject, aTopic, aData) {
observerService.removeObserver(this, TOPIC_EXPIRATION_FINISHED); observerService.removeObserver(this, TOPIC_EXPIRATION_FINISHED);
finishedFlag.state = true; finishedFlag.state = true;
} }
} }

View File

@@ -58,7 +58,7 @@ const gTimeout = 5000;
/** /**
* Constructor * Constructor
* *
* @param {MozMillController} controller * @param {MozMillController} controller
* MozMill controller of the browser window to operate on. * MozMill controller of the browser window to operate on.
*/ */
@@ -111,7 +111,7 @@ aboutSessionRestore.prototype = {
* type: General type information * type: General type information
* subtype: Specific element or property * subtype: Specific element or property
* value: Value of the element or property * value: Value of the element or property
* @returns Element which has been created * @returns Element which has been created
* @type {ElemBase} * @type {ElemBase}
*/ */
getElement : function aboutSessionRestore_getElement(spec) { getElement : function aboutSessionRestore_getElement(spec) {
@@ -160,7 +160,7 @@ aboutSessionRestore.prototype = {
/** /**
* Get restorable tabs under the given window * Get restorable tabs under the given window
* *
* @param {object} window * @param {object} window
* Window inside the tree * Window inside the tree
* @returns List of tabs * @returns List of tabs
@@ -187,7 +187,7 @@ aboutSessionRestore.prototype = {
/** /**
* Get restorable windows * Get restorable windows
* *
* @returns List of windows * @returns List of windows
* @type {array of object} * @type {array of object}
*/ */
@@ -238,7 +238,7 @@ function resetRecentlyClosedTabs()
/** /**
* Returns the number of restorable tabs for a given window * Returns the number of restorable tabs for a given window
* *
* @param {MozMillController} controller * @param {MozMillController} controller
* MozMillController of the window to operate on * MozMillController of the window to operate on
* @returns The number of restorable tabs in the window * @returns The number of restorable tabs in the window
@@ -250,7 +250,7 @@ function getClosedTabCount(controller)
/** /**
* Restores the tab which has been recently closed * Restores the tab which has been recently closed
* *
* @param {MozMillController} controller * @param {MozMillController} controller
* MozMillController of the window to operate on * MozMillController of the window to operate on
* @param {object} event * @param {object} event
@@ -280,7 +280,7 @@ function undoClosedTab(controller, event)
/** /**
* Restores the window which has been recently closed * Restores the window which has been recently closed
* *
* @param {MozMillController} controller * @param {MozMillController} controller
* MozMillController of the window to operate on * MozMillController of the window to operate on
* @param {object} event * @param {object} event

View File

@@ -387,7 +387,7 @@ tabView.prototype = {
* Information about the element to operate on * Information about the element to operate on
* Elements: tab - Tab to close * Elements: tab - Tab to close
*/ */
closeTab : function tabView_closeTab(aSpec) { closeTab : function tabView_closeTab(aSpec) {
var spec = aSpec || {}; var spec = aSpec || {};
var tab = spec.tab; var tab = spec.tab;