summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-29 17:19:37 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-29 17:19:37 -0500
commit6852407a162132b8875e4d8773a886cc2d17be48 (patch)
tree420d04d0bf67a7b8479f6f5240cac4e9f7f9f2ba
parent313d2b223c64b2cef6bc28faafad1b7ac50fea00 (diff)
downloadpentadactyl-6852407a162132b8875e4d8773a886cc2d17be48.tar.gz
Delete horrible trailing whitespace.
-rw-r--r--common/tests/functional/dactyl.js2
-rw-r--r--common/tests/functional/shared-modules/addons.js44
-rw-r--r--common/tests/functional/shared-modules/dom-utils.js2
-rw-r--r--common/tests/functional/shared-modules/performance.js4
-rw-r--r--common/tests/functional/shared-modules/places.js2
-rw-r--r--common/tests/functional/shared-modules/sessionstore.js14
-rw-r--r--common/tests/functional/shared-modules/tabview.js2
7 files changed, 35 insertions, 35 deletions
diff --git a/common/tests/functional/dactyl.js b/common/tests/functional/dactyl.js
index ae5a6853..9bd4f1ed 100644
--- a/common/tests/functional/dactyl.js
+++ b/common/tests/functional/dactyl.js
@@ -353,7 +353,7 @@ Controller.prototype = {
this.setExMode();
utils.assertEqual("dactyl.runExCompletion",
- this.elements.commandInput,
+ this.elements.commandInput,
this.elements.focused,
"Running Ex Completion: The command line is not focused");
diff --git a/common/tests/functional/shared-modules/addons.js b/common/tests/functional/shared-modules/addons.js
index ef558377..92167087 100644
--- a/common/tests/functional/shared-modules/addons.js
+++ b/common/tests/functional/shared-modules/addons.js
@@ -121,7 +121,7 @@ addonsManager.prototype = {
* [optional - default: menu]
* waitFor - Wait until the Add-ons Manager has been opened
* [optional - default: true]
- *
+ *
*
* @returns Reference the tab with the Add-ons Manager open
* @type {object}
@@ -181,7 +181,7 @@ addonsManager.prototype = {
// mozmill.utils.waitFor(function() {
// return self.isOpen;
// }, timeout, 100, "Add-ons Manager has been opened");
-
+
mozmill.utils.waitForEval("subject.isOpen", timeout, 100, this);
// The first tab found will be the selected one
@@ -238,16 +238,16 @@ addonsManager.prototype = {
this._controller.click(button);
// Click the button and wait until menu has been opened
-
+
// TODO: restore after 1.5.1 has landed
// mozmill.utils.waitFor(function() {
// return menu.getNode() && menu.getNode().state == "open";
// }, TIMEOUT, 100, "Menu of utils button has been opened.");
-
+
mozmill.utils.waitForEval("subject && subject.state == 'open'",
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({
type: "utilsButton_menuItem",
value: "#utils-" + item
@@ -257,12 +257,12 @@ addonsManager.prototype = {
} finally {
// Make sure the menu has been closed
this._controller.keypress(menu, "VK_ESCAPE", {});
-
+
// TODO: restore after 1.5.1 has landed
// mozmill.utils.waitFor(function() {
// return menu.getNode() && menu.getNode().state == "closed";
// }, TIMEOUT, 100, "Menu of utils button has been closed.");
-
+
mozmill.utils.waitForEval("subject && subject.state == 'closed'",
TIMEOUT, 100, menu.getNode());
}
@@ -569,7 +569,7 @@ addonsManager.prototype = {
/**
* Wait until the specified add-on has been downloaded
- *
+ *
* @param {object} aSpec
* Object with parameters for customization
* Elements: addon - Add-on element to wait for being downloaded
@@ -586,13 +586,13 @@ addonsManager.prototype = {
var self = this;
var node = addon.getNode();
-
+
// TODO: restore after 1.5.1 has landed
// mozmill.utils.waitFor(function () {
// return node.getAttribute("pending") == "install" &&
// node.getAttribute("status") != "installing";
// }, timeout, 100, "'" + node.getAttribute("name") + "' has been downloaded");
-
+
mozmill.utils.waitForEval("subject.getAttribute('pending') == 'install' &&" +
"subject.getAttribute('status') != 'installing'",
timeout, 100, node);
@@ -738,7 +738,7 @@ addonsManager.prototype = {
/**
* Wait until the specified category has been selected
- *
+ *
* @param {object} aSpec
* Object with parameters for customization
* Elements: category - Category element to wait for
@@ -758,9 +758,9 @@ addonsManager.prototype = {
// mozmill.utils.waitFor(function () {
// return self.selectedCategory.getNode() == category.getNode();
// }, timeout, 100, "Category '" + category.getNode().id + "' has been set");
-
+
mozmill.utils.waitForEval("subject.self.selectedCategory.getNode() == subject.aCategory.getNode()",
- timeout, 100,
+ timeout, 100,
{self: this, aCategory: category});
},
@@ -916,7 +916,7 @@ addonsManager.prototype = {
/**
* Waits until the specified search filter has been selected
- *
+ *
* @param {object} aSpec
* Object with parameters for customization
* Elements: filter - Filter element to wait for
@@ -933,11 +933,11 @@ addonsManager.prototype = {
// TODO: restore after 1.5.1 has landed
// var self = this;
- //
+ //
// mozmill.utils.waitFor(function () {
// return self.selectedSearchFilter.getNode() == filter.getNode();
// }, timeout, 100, "Search filter '" + filter.getNode().value + "' has been set");
-
+
mozmill.utils.waitForEval("subject.self.selectedSearchFilter.getNode() == subject.aFilter.getNode()",
timeout, 100,
{self: this, aFilter: filter});
@@ -967,7 +967,7 @@ addonsManager.prototype = {
/**
* Waits until the active search has been finished
- *
+ *
* @param {object} aSpec
* Object with parameters for customization
* Elements: timeout - Duration to wait for the target state
@@ -978,12 +978,12 @@ addonsManager.prototype = {
// TODO: restore after 1.5.1 has landed
// var self = this;
- //
+ //
// mozmill.utils.waitFor(function () {
// return self.isSearching == false;
// }, timeout, 100, "Search has been finished");
-
- mozmill.utils.waitForEval("subject.isSearching == false",
+
+ mozmill.utils.waitForEval("subject.isSearching == false",
timeout, 100, this);
},
@@ -1231,7 +1231,7 @@ addonsManager.prototype = {
* @param {string} aDomain
* The domain to add the permission for
*/
-function addToWhiteList(aDomain) {
+function addToWhiteList(aDomain) {
pm.add(utils.createURI(aDomain),
"install",
Ci.nsIPermissionManager.ALLOW_ACTION);
@@ -1242,7 +1242,7 @@ function addToWhiteList(aDomain) {
* @param {string} aHost
* The host whose permission will be removed
*/
-function removeFromWhiteList(aHost) {
+function removeFromWhiteList(aHost) {
pm.remove(aHost, "install");
}
diff --git a/common/tests/functional/shared-modules/dom-utils.js b/common/tests/functional/shared-modules/dom-utils.js
index c24fe7fe..9e6b701f 100644
--- a/common/tests/functional/shared-modules/dom-utils.js
+++ b/common/tests/functional/shared-modules/dom-utils.js
@@ -219,7 +219,7 @@ DOMWalker.prototype = {
}
collectedResults = collectedResults.concat(nodeTestResults);
-
+
return collectedResults;
},
diff --git a/common/tests/functional/shared-modules/performance.js b/common/tests/functional/shared-modules/performance.js
index 14dd4a62..a1b08ed0 100644
--- a/common/tests/functional/shared-modules/performance.js
+++ b/common/tests/functional/shared-modules/performance.js
@@ -136,7 +136,7 @@ PerfTracer.prototype = {
*
* @param {string} path
* 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
* @type {number}
*/
@@ -181,7 +181,7 @@ PerfTracer.prototype = {
finish : function PerfTracer_finish() {
// Title
var title = "Performance Trace (" + this._name + ")";
-
+
// Separator
var sep = "";
for(var i = 0; i < title.length; i++) {
diff --git a/common/tests/functional/shared-modules/places.js b/common/tests/functional/shared-modules/places.js
index e0f1b795..fa5eda8b 100644
--- a/common/tests/functional/shared-modules/places.js
+++ b/common/tests/functional/shared-modules/places.js
@@ -169,7 +169,7 @@ function removeAllHistory() {
// Set up an observer so we get notified when remove completes
let observer = {
observe: function(aSubject, aTopic, aData) {
- observerService.removeObserver(this, TOPIC_EXPIRATION_FINISHED);
+ observerService.removeObserver(this, TOPIC_EXPIRATION_FINISHED);
finishedFlag.state = true;
}
}
diff --git a/common/tests/functional/shared-modules/sessionstore.js b/common/tests/functional/shared-modules/sessionstore.js
index 94ab9b1a..d54491c0 100644
--- a/common/tests/functional/shared-modules/sessionstore.js
+++ b/common/tests/functional/shared-modules/sessionstore.js
@@ -58,7 +58,7 @@ const gTimeout = 5000;
/**
* Constructor
- *
+ *
* @param {MozMillController} controller
* MozMill controller of the browser window to operate on.
*/
@@ -111,7 +111,7 @@ aboutSessionRestore.prototype = {
* type: General type information
* subtype: Specific element or property
* value: Value of the element or property
- * @returns Element which has been created
+ * @returns Element which has been created
* @type {ElemBase}
*/
getElement : function aboutSessionRestore_getElement(spec) {
@@ -160,7 +160,7 @@ aboutSessionRestore.prototype = {
/**
* Get restorable tabs under the given window
- *
+ *
* @param {object} window
* Window inside the tree
* @returns List of tabs
@@ -187,7 +187,7 @@ aboutSessionRestore.prototype = {
/**
* Get restorable windows
- *
+ *
* @returns List of windows
* @type {array of object}
*/
@@ -238,7 +238,7 @@ function resetRecentlyClosedTabs()
/**
* Returns the number of restorable tabs for a given window
- *
+ *
* @param {MozMillController} controller
* MozMillController of the window to operate on
* @returns The number of restorable tabs in the window
@@ -250,7 +250,7 @@ function getClosedTabCount(controller)
/**
* Restores the tab which has been recently closed
- *
+ *
* @param {MozMillController} controller
* MozMillController of the window to operate on
* @param {object} event
@@ -280,7 +280,7 @@ function undoClosedTab(controller, event)
/**
* Restores the window which has been recently closed
- *
+ *
* @param {MozMillController} controller
* MozMillController of the window to operate on
* @param {object} event
diff --git a/common/tests/functional/shared-modules/tabview.js b/common/tests/functional/shared-modules/tabview.js
index 8c873058..fbbf08a7 100644
--- a/common/tests/functional/shared-modules/tabview.js
+++ b/common/tests/functional/shared-modules/tabview.js
@@ -387,7 +387,7 @@ tabView.prototype = {
* Information about the element to operate on
* Elements: tab - Tab to close
*/
- closeTab : function tabView_closeTab(aSpec) {
+ closeTab : function tabView_closeTab(aSpec) {
var spec = aSpec || {};
var tab = spec.tab;