Bug 1385817 - Enable space related ESLint rules for accessible/ r=yzen
authorDan Banner <dbugs@thebanners.uk>
Tue, 01 Aug 2017 17:15:51 +0100
changeset 372673 f3cdf0e12b8ae34333fb240a3acf37e42d893f79
parent 372672 2439d45c93be640c6cf4c1005a4302ee75aa3cee
child 372674 46fa29da7f94fb72a4afbfa39a0e811d19b224da
push id47935
push usermbanner@mozilla.com
push dateThu, 03 Aug 2017 15:33:37 +0000
treeherderautoland@46fa29da7f94 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzen
bugs1385817
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1385817 - Enable space related ESLint rules for accessible/ r=yzen MozReview-Commit-ID: BeIn3ThKQAx
accessible/.eslintrc.js
accessible/jsat/AccessFu.jsm
accessible/jsat/Constants.jsm
accessible/jsat/Gestures.jsm
accessible/jsat/OutputGenerator.jsm
accessible/jsat/Traversal.jsm
accessible/jsat/Utils.jsm
accessible/tests/browser/browser_shutdown_acc_reference.js
accessible/tests/browser/browser_shutdown_doc_acc_reference.js
accessible/tests/browser/browser_shutdown_multi_acc_reference_doc.js
accessible/tests/browser/browser_shutdown_multi_acc_reference_obj.js
accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_doc.js
accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_obj.js
accessible/tests/browser/browser_shutdown_multi_reference.js
accessible/tests/browser/browser_shutdown_parent_own_reference.js
accessible/tests/browser/browser_shutdown_proxy_acc_reference.js
accessible/tests/browser/browser_shutdown_proxy_doc_acc_reference.js
accessible/tests/browser/browser_shutdown_remote_no_reference.js
accessible/tests/browser/browser_shutdown_remote_only.js
accessible/tests/browser/browser_shutdown_remote_own_reference.js
accessible/tests/browser/browser_shutdown_scope_lifecycle.js
accessible/tests/browser/browser_shutdown_start_restart.js
accessible/tests/browser/e10s/browser_caching_attributes.js
accessible/tests/browser/e10s/browser_caching_relations.js
accessible/tests/browser/e10s/browser_caching_states.js
accessible/tests/browser/e10s/browser_caching_value.js
accessible/tests/browser/events/browser_test_docload.js
accessible/tests/browser/scroll/browser_test_zoom_text.js
accessible/tests/browser/shared-head.js
accessible/tests/mochitest/actions.js
accessible/tests/mochitest/actions/test_anchors.html
accessible/tests/mochitest/actions/test_link.html
accessible/tests/mochitest/actions/test_media.html
accessible/tests/mochitest/actions/test_select.html
accessible/tests/mochitest/attributes.js
accessible/tests/mochitest/attributes/test_obj_group.html
accessible/tests/mochitest/autocomplete.js
accessible/tests/mochitest/bounds/test_select.html
accessible/tests/mochitest/browser.js
accessible/tests/mochitest/common.js
accessible/tests/mochitest/editabletext/editabletext.js
accessible/tests/mochitest/editabletext/test_1.html
accessible/tests/mochitest/elm/test_HTMLSpec.html
accessible/tests/mochitest/elm/test_MathMLSpec.html
accessible/tests/mochitest/elm/test_plugin.html
accessible/tests/mochitest/events.js
accessible/tests/mochitest/events/test_aria_alert.html
accessible/tests/mochitest/events/test_aria_menu.html
accessible/tests/mochitest/events/test_aria_objattr.html
accessible/tests/mochitest/events/test_aria_owns.html
accessible/tests/mochitest/events/test_aria_statechange.html
accessible/tests/mochitest/events/test_attrs.html
accessible/tests/mochitest/events/test_bug1322593-2.html
accessible/tests/mochitest/events/test_bug1322593.html
accessible/tests/mochitest/events/test_caretmove.html
accessible/tests/mochitest/events/test_coalescence.html
accessible/tests/mochitest/events/test_contextmenu.html
accessible/tests/mochitest/events/test_descrchange.html
accessible/tests/mochitest/events/test_docload.html
accessible/tests/mochitest/events/test_docload_aria.html
accessible/tests/mochitest/events/test_dragndrop.html
accessible/tests/mochitest/events/test_focus_aria_activedescendant.html
accessible/tests/mochitest/events/test_focus_canvas.html
accessible/tests/mochitest/events/test_focus_controls.html
accessible/tests/mochitest/events/test_focus_doc.html
accessible/tests/mochitest/events/test_focus_general.html
accessible/tests/mochitest/events/test_focus_name.html
accessible/tests/mochitest/events/test_focus_selects.html
accessible/tests/mochitest/events/test_fromUserInput.html
accessible/tests/mochitest/events/test_mutation.html
accessible/tests/mochitest/events/test_mutation.xhtml
accessible/tests/mochitest/events/test_namechange.html
accessible/tests/mochitest/events/test_selection.html
accessible/tests/mochitest/events/test_selection_aria.html
accessible/tests/mochitest/events/test_statechange.html
accessible/tests/mochitest/events/test_text.html
accessible/tests/mochitest/events/test_text_alg.html
accessible/tests/mochitest/events/test_textattrchange.html
accessible/tests/mochitest/events/test_textselchange.html
accessible/tests/mochitest/events/test_valuechange.html
accessible/tests/mochitest/focus/test_takeFocus.html
accessible/tests/mochitest/hittest/test_canvas_hitregion.html
accessible/tests/mochitest/hyperlink/test_general.html
accessible/tests/mochitest/hypertext/test_general.html
accessible/tests/mochitest/hypertext/test_update.html
accessible/tests/mochitest/jsat/jsatcommon.js
accessible/tests/mochitest/jsat/output.js
accessible/tests/mochitest/jsat/test_alive.html
accessible/tests/mochitest/jsat/test_content_integration.html
accessible/tests/mochitest/jsat/test_content_text.html
accessible/tests/mochitest/jsat/test_live_regions.html
accessible/tests/mochitest/jsat/test_traversal.html
accessible/tests/mochitest/jsat/test_traversal_helper.html
accessible/tests/mochitest/layout.js
accessible/tests/mochitest/name/markup.js
accessible/tests/mochitest/name/test_general.html
accessible/tests/mochitest/name/test_markup.html
accessible/tests/mochitest/pivot.js
accessible/tests/mochitest/pivot/test_virtualcursor.html
accessible/tests/mochitest/pivot/test_virtualcursor_text.html
accessible/tests/mochitest/relations.js
accessible/tests/mochitest/relations/test_ui_modalprompt.html
accessible/tests/mochitest/relations/test_update.html
accessible/tests/mochitest/role.js
accessible/tests/mochitest/role/test_aria.html
accessible/tests/mochitest/selectable/test_aria.html
accessible/tests/mochitest/selectable/test_select.html
accessible/tests/mochitest/states.js
accessible/tests/mochitest/states/test_aria.html
accessible/tests/mochitest/states/test_aria_imgmap.html
accessible/tests/mochitest/states/test_aria_widgetitems.html
accessible/tests/mochitest/states/test_doc_busy.html
accessible/tests/mochitest/states/test_frames.html
accessible/tests/mochitest/states/test_inputs.html
accessible/tests/mochitest/states/test_selects.html
accessible/tests/mochitest/states/test_stale.html
accessible/tests/mochitest/table.js
accessible/tests/mochitest/table/test_css_tables.html
accessible/tests/mochitest/table/test_headers_ariagrid.html
accessible/tests/mochitest/table/test_headers_ariatable.html
accessible/tests/mochitest/table/test_headers_table.html
accessible/tests/mochitest/table/test_indexes_ariagrid.html
accessible/tests/mochitest/table/test_indexes_table.html
accessible/tests/mochitest/table/test_sels_ariagrid.html
accessible/tests/mochitest/table/test_sels_table.html
accessible/tests/mochitest/table/test_struct_ariagrid.html
accessible/tests/mochitest/table/test_struct_ariatreegrid.html
accessible/tests/mochitest/table/test_struct_table.html
accessible/tests/mochitest/test_bug420863.html
accessible/tests/mochitest/test_nsIAccessibleImage.html
accessible/tests/mochitest/text.js
accessible/tests/mochitest/text/test_atcaretoffset.html
accessible/tests/mochitest/text/test_charboundary.html
accessible/tests/mochitest/text/test_gettext.html
accessible/tests/mochitest/text/test_hypertext.html
accessible/tests/mochitest/text/test_lineboundary.html
accessible/tests/mochitest/text/test_passwords.html
accessible/tests/mochitest/textattrs/test_general.html
accessible/tests/mochitest/textcaret/test_general.html
accessible/tests/mochitest/textselection/test_general.html
accessible/tests/mochitest/textselection/test_userinput.html
accessible/tests/mochitest/tree/test_aria_grid.html
accessible/tests/mochitest/tree/test_aria_imgmap.html
accessible/tests/mochitest/tree/test_aria_list.html
accessible/tests/mochitest/tree/test_aria_owns.html
accessible/tests/mochitest/tree/test_aria_table.html
accessible/tests/mochitest/tree/test_brokencontext.html
accessible/tests/mochitest/tree/test_canvas.html
accessible/tests/mochitest/tree/test_cssoverflow.html
accessible/tests/mochitest/tree/test_dockids.html
accessible/tests/mochitest/tree/test_img.html
accessible/tests/mochitest/tree/test_media.html
accessible/tests/mochitest/tree/test_table.html
accessible/tests/mochitest/treeupdate/test_ariadialog.html
accessible/tests/mochitest/treeupdate/test_ariaowns.html
accessible/tests/mochitest/treeupdate/test_bug1189277.html
accessible/tests/mochitest/treeupdate/test_bug1276857.html
accessible/tests/mochitest/treeupdate/test_canvas.html
accessible/tests/mochitest/treeupdate/test_cssoverflow.html
accessible/tests/mochitest/treeupdate/test_doc.html
accessible/tests/mochitest/treeupdate/test_gencontent.html
accessible/tests/mochitest/treeupdate/test_general.html
accessible/tests/mochitest/treeupdate/test_hidden.html
accessible/tests/mochitest/treeupdate/test_imagemap.html
accessible/tests/mochitest/treeupdate/test_list.html
accessible/tests/mochitest/treeupdate/test_list_editabledoc.html
accessible/tests/mochitest/treeupdate/test_optgroup.html
accessible/tests/mochitest/treeupdate/test_recreation.html
accessible/tests/mochitest/treeupdate/test_textleaf.html
accessible/tests/mochitest/treeupdate/test_visibility.html
accessible/tests/mochitest/treeupdate/test_whitespace.html
accessible/tests/mochitest/treeview.js
accessible/tests/mochitest/value.js
accessible/tests/mochitest/value/test_general.html
--- a/accessible/.eslintrc.js
+++ b/accessible/.eslintrc.js
@@ -6,18 +6,14 @@ module.exports = {
     "complexity": ["error", 42],
 
     // XXX These are rules that are enabled in the recommended configuration, but
     // disabled here due to failures when initially implemented. They should be
     // removed (and hence enabled) at some stage.
     "brace-style": "off",
     "consistent-return": "off",
     "object-shorthand": "off",
-    "space-before-function-paren": "off",
-    "space-infix-ops": "off",
     "no-else-return": "off",
-    "no-multi-spaces": "off",
     "no-unexpected-multiline": "off",
     "no-unsafe-finally": "off",
     "no-useless-call": "off",
-    "spaced-comment": "off",
   }
 };
--- a/accessible/jsat/AccessFu.jsm
+++ b/accessible/jsat/AccessFu.jsm
@@ -293,17 +293,17 @@ this.AccessFu = { // jshint ignore:line
 
   _handleMessageManager: function _handleMessageManager(aMessageManager) {
     if (this._enabled) {
       this._addMessageListeners(aMessageManager);
     }
     this._loadFrameScript(aMessageManager);
   },
 
-  onEvent: function (event, data, callback) {
+  onEvent: function(event, data, callback) {
     switch (event) {
       case "Accessibility:Settings":
         this._systemPref = data.enabled;
         this._enableOrDisable();
         break;
       case "Accessibility:NextObject":
       case "Accessibility:PreviousObject": {
         let rule = data ?
@@ -561,18 +561,18 @@ var Output = {
 
         let padding = aDetail.padding;
         let r = AccessFu.adjustContentBounds(aDetail.bounds, aBrowser, true);
 
         // First hide it to avoid flickering when changing the style.
         highlightBox.classList.remove("show");
         highlightBox.style.top = (r.top - padding) + "px";
         highlightBox.style.left = (r.left - padding) + "px";
-        highlightBox.style.width = (r.width + padding*2) + "px";
-        highlightBox.style.height = (r.height + padding*2) + "px";
+        highlightBox.style.width = (r.width + padding * 2) + "px";
+        highlightBox.style.height = (r.height + padding * 2) + "px";
         highlightBox.classList.add("show");
 
         break;
       }
       case "tabstate-change":
       {
         let highlightBox = this.highlightBox ? this.highlightBox.get() : null;
         if (highlightBox) {
--- a/accessible/jsat/Constants.jsm
+++ b/accessible/jsat/Constants.jsm
@@ -1,17 +1,17 @@
 const Ci = Components.interfaces;
 const Cu = Components.utils;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 this.EXPORTED_SYMBOLS = ["Roles", "Events", "Relations",
                          "Filters", "States", "Prefilters"];
 
-function ConstantsMap (aObject, aPrefix, aMap = {}, aModifier = null) {
+function ConstantsMap(aObject, aPrefix, aMap = {}, aModifier = null) {
   let offset = aPrefix.length;
   for (var name in aObject) {
     if (name.indexOf(aPrefix) === 0) {
       aMap[name.slice(offset)] = aModifier ?
         aModifier(aObject[name]) : aObject[name];
     }
   }
 
--- a/accessible/jsat/Gestures.jsm
+++ b/accessible/jsat/Gestures.jsm
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /* exported GestureSettings, GestureTracker */
 
-/******************************************************************************
+/** ****************************************************************************
   All gestures have the following pathways when being resolved(v)/rejected(x):
                Tap -> DoubleTap        (x)
                    -> Dwell            (x)
                    -> Swipe            (x)
 
          DoubleTap -> TripleTap        (x)
                    -> TapHold          (x)
 
--- a/accessible/jsat/OutputGenerator.jsm
+++ b/accessible/jsat/OutputGenerator.jsm
@@ -597,17 +597,17 @@ this.UtteranceGenerator = {  // jshint i
     switch: "switchAction",
     click: "clickAction",
     collapse: "collapseAction",
     expand: "expandAction",
     activate: "activateAction",
     cycle: "cycleAction"
   },
 
-  //TODO: May become more verbose in the future.
+  // TODO: May become more verbose in the future.
   genForAction: function genForAction(aObject, aActionName) {
     return [{string: this.gActionMap[aActionName]}];
   },
 
   genForLiveRegion:
     function genForLiveRegion(aContext, aIsHide, aModifiedText) {
       let utterance = [];
       if (aIsHide) {
--- a/accessible/jsat/Traversal.jsm
+++ b/accessible/jsat/Traversal.jsm
@@ -47,17 +47,17 @@ BaseTraversalRule.prototype = {
       return aRoles.value.length;
     },
 
     match: function BaseTraversalRule_match(aAccessible)
     {
       let role = aAccessible.role;
       if (role == Roles.INTERNAL_FRAME) {
         return (Utils.getMessageManager(aAccessible.DOMNode)) ?
-          Filters.MATCH  | Filters.IGNORE_SUBTREE : Filters.IGNORE;
+          Filters.MATCH | Filters.IGNORE_SUBTREE : Filters.IGNORE;
       }
 
       let matchResult =
         (this._explicitMatchRoles.has(role) || !this._explicitMatchRoles.size) ?
         this._matchFunc(aAccessible) : Filters.IGNORE;
 
       // If we are on a label that nests a checkbox/radio we should land on it.
       // It is a bigger touch target, and it reduces clutter.
--- a/accessible/jsat/Utils.jsm
+++ b/accessible/jsat/Utils.jsm
@@ -385,17 +385,17 @@ this.Utils = { // jshint ignore:line
       if (!this.isHidden(child)) {
         ++count;
       }
     }
     return count;
   },
 
   inHiddenSubtree: function inHiddenSubtree(aAccessible) {
-    for (let acc=aAccessible; acc; acc=acc.parent) {
+    for (let acc = aAccessible; acc; acc = acc.parent) {
       if (this.isHidden(acc)) {
         return true;
       }
     }
     return false;
   },
 
   isAliveAndVisible: function isAliveAndVisible(aAccessible, aIsOnScreen) {
--- a/accessible/tests/browser/browser_shutdown_acc_reference.js
+++ b/accessible/tests/browser/browser_shutdown_acc_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Create a11y service.
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
 
   await a11yInit;
   ok(accService, "Service initialized");
 
--- a/accessible/tests/browser/browser_shutdown_doc_acc_reference.js
+++ b/accessible/tests/browser/browser_shutdown_doc_acc_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Create a11y service.
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
 
   await a11yInit;
   ok(accService, "Service initialized");
 
--- a/accessible/tests/browser/browser_shutdown_multi_acc_reference_doc.js
+++ b/accessible/tests/browser/browser_shutdown_multi_acc_reference_doc.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Create a11y service.
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
 
   await a11yInit;
   ok(accService, "Service initialized");
 
--- a/accessible/tests/browser/browser_shutdown_multi_acc_reference_obj.js
+++ b/accessible/tests/browser/browser_shutdown_multi_acc_reference_obj.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Create a11y service.
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
 
   await a11yInit;
   ok(accService, "Service initialized");
 
--- a/accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_doc.js
+++ b/accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_doc.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   let docLoaded = waitForEvent(
     Ci.nsIAccessibleEvent.EVENT_DOCUMENT_LOAD_COMPLETE, "body");
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
--- a/accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_obj.js
+++ b/accessible/tests/browser/browser_shutdown_multi_proxy_acc_reference_obj.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   let docLoaded = waitForEvent(
     Ci.nsIAccessibleEvent.EVENT_DOCUMENT_LOAD_COMPLETE, "body");
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
--- a/accessible/tests/browser/browser_shutdown_multi_reference.js
+++ b/accessible/tests/browser/browser_shutdown_multi_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   info("Creating a service");
   // Create a11y service.
   let a11yInit = initPromise();
   let accService1 = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
   await a11yInit;
   ok(accService1, "Service initialized");
 
--- a/accessible/tests/browser/browser_shutdown_parent_own_reference.js
+++ b/accessible/tests/browser/browser_shutdown_parent_own_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   await BrowserTestUtils.withNewTab({
     gBrowser,
     url: `data:text/html,
       <html>
         <head>
--- a/accessible/tests/browser/browser_shutdown_proxy_acc_reference.js
+++ b/accessible/tests/browser/browser_shutdown_proxy_acc_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
   ok(accService, "Service initialized");
   await a11yInit;
--- a/accessible/tests/browser/browser_shutdown_proxy_doc_acc_reference.js
+++ b/accessible/tests/browser/browser_shutdown_proxy_doc_acc_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   let docLoaded = waitForEvent(
     Ci.nsIAccessibleEvent.EVENT_DOCUMENT_LOAD_COMPLETE, "body");
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
--- a/accessible/tests/browser/browser_shutdown_remote_no_reference.js
+++ b/accessible/tests/browser/browser_shutdown_remote_no_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   await BrowserTestUtils.withNewTab({
     gBrowser,
     url: `data:text/html,
       <html>
         <head>
--- a/accessible/tests/browser/browser_shutdown_remote_only.js
+++ b/accessible/tests/browser/browser_shutdown_remote_only.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   await BrowserTestUtils.withNewTab({
     gBrowser,
     url: `data:text/html,
       <html>
         <head>
--- a/accessible/tests/browser/browser_shutdown_remote_own_reference.js
+++ b/accessible/tests/browser/browser_shutdown_remote_own_reference.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Making sure that the e10s is enabled on Windows for testing.
   await setE10sPrefs();
 
   await BrowserTestUtils.withNewTab({
     gBrowser,
     url: `data:text/html,
       <html>
         <head>
--- a/accessible/tests/browser/browser_shutdown_scope_lifecycle.js
+++ b/accessible/tests/browser/browser_shutdown_scope_lifecycle.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   // Create a11y service inside of the function scope. Its reference should be
   // released once the anonimous function is called.
   let a11yInitThenShutdown = initPromise().then(shutdownPromise);
 
   (function() {
     let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
       Ci.nsIAccessibilityService);
     ok(accService, "Service initialized");
--- a/accessible/tests/browser/browser_shutdown_start_restart.js
+++ b/accessible/tests/browser/browser_shutdown_start_restart.js
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
-add_task(async function () {
+add_task(async function() {
   info("Creating a service");
   // Create a11y service.
   let a11yInit = initPromise();
   let accService = Cc["@mozilla.org/accessibilityService;1"].getService(
     Ci.nsIAccessibilityService);
   await a11yInit;
   ok(accService, "Service initialized");
 
--- a/accessible/tests/browser/e10s/browser_caching_attributes.js
+++ b/accessible/tests/browser/e10s/browser_caching_attributes.js
@@ -85,17 +85,17 @@ const attributesTests = [{
   unexpected: {}
 }];
 
 /**
  * Test caching of accessible object attributes
  */
 addAccessibleTask(`
   <input id="textbox" value="hello">`,
-  async function (browser, accDoc) {
+  async function(browser, accDoc) {
     let textbox = findAccessibleChildByID(accDoc, "textbox");
     for (let { desc, action, attrs, expected, waitFor, unexpected } of attributesTests) {
       info(desc);
       let onUpdate;
 
       if (waitFor) {
         onUpdate = waitForEvent(waitFor, "textbox");
       }
--- a/accessible/tests/browser/e10s/browser_caching_relations.js
+++ b/accessible/tests/browser/e10s/browser_caching_relations.js
@@ -70,14 +70,14 @@ async function testRelated(browser, accD
 
 /**
  * Test caching of relations between accessible objects.
  */
 addAccessibleTask(`
   <div id="dependant1">label</div>
   <div id="dependant2">label2</div>
   <div role="checkbox" id="host"></div>`,
-  async function (browser, accDoc) {
+  async function(browser, accDoc) {
     for (let spec of attrRelationsSpec) {
       await testRelated(browser, accDoc, ...spec);
     }
   }
 );
--- a/accessible/tests/browser/e10s/browser_caching_states.js
+++ b/accessible/tests/browser/e10s/browser_caching_states.js
@@ -106,14 +106,14 @@ async function runStateTests(browser, ac
 
 /**
  * Test caching of accessible object states
  */
 addAccessibleTask(`
   <input id="checkbox" type="checkbox">
   <input id="file" type="file">
   <input id="text">`,
-  async function (browser, accDoc) {
+  async function(browser, accDoc) {
     await runStateTests(browser, accDoc, "checkbox", attributeTests);
     await runStateTests(browser, accDoc, "file", ariaTests);
     await runStateTests(browser, accDoc, "text", extraStateTests);
   }
 );
--- a/accessible/tests/browser/e10s/browser_caching_value.js
+++ b/accessible/tests/browser/e10s/browser_caching_value.js
@@ -119,17 +119,17 @@ addAccessibleTask(`
   <select id="select">
     <option>1st</option>
     <option>2nd</option>
     <option>3rd</option>
   </select>
   <input id="combobox" role="combobox" aria-autocomplete="inline">
   <progress id="progress" value="22" max="100"></progress>
   <input type="range" id="range" min="0" max="10" value="6">`,
-  async function (browser, accDoc) {
+  async function(browser, accDoc) {
     for (let { desc, id, action, attrs, expected, waitFor } of valueTests) {
       info(desc);
       let acc = findAccessibleChildByID(accDoc, id);
       let onUpdate;
 
       if (waitFor) {
         onUpdate = waitForEvent(waitFor, id);
       }
--- a/accessible/tests/browser/events/browser_test_docload.js
+++ b/accessible/tests/browser/events/browser_test_docload.js
@@ -1,35 +1,35 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 function busyChecker(isBusy) {
-  return function (event) {
+  return function(event) {
     let scEvent;
     try {
       scEvent = event.QueryInterface(nsIAccessibleStateChangeEvent);
     } catch (e) {
       return false;
     }
 
     return scEvent.state == STATE_BUSY && scEvent.isEnabled == isBusy;
   };
 }
 
 function inIframeChecker(iframeId) {
-  return function (event) {
+  return function(event) {
     return getAccessibleDOMNodeID(event.accessibleDocument.parent) == iframeId;
   };
 }
 
 function urlChecker(url) {
-  return function (event) {
+  return function(event) {
     info(`${event.accessibleDocument.URL} == ${url}`);
     return event.accessibleDocument.URL == url;
   };
 }
 
 async function runTests(browser, accDoc) {
   let onLoadEvents = waitForEvents([
     [EVENT_REORDER, getAccessible(browser)],
--- a/accessible/tests/browser/scroll/browser_test_zoom_text.js
+++ b/accessible/tests/browser/scroll/browser_test_zoom_text.js
@@ -8,30 +8,30 @@
 loadScripts({ name: "layout.js", dir: MOCHITESTS_DIR });
 
 async function runTests(browser, accDoc) {
   loadFrameScripts(browser, { name: "layout.js", dir: MOCHITESTS_DIR });
 
   let paragraph = findAccessibleChildByID(accDoc, "paragraph", [nsIAccessibleText]);
   let offset = 64; // beginning of 4th stanza
 
-  let [x /*,y*/] = getPos(paragraph);
+  let [x /* ,y*/] = getPos(paragraph);
   let [docX, docY] = getPos(accDoc);
 
   paragraph.scrollSubstringToPoint(offset, offset,
                                    COORDTYPE_SCREEN_RELATIVE, docX, docY);
   testTextPos(paragraph, offset, [x, docY], COORDTYPE_SCREEN_RELATIVE);
 
   await ContentTask.spawn(browser, {}, () => {
     zoomDocument(document, 2.0);
   });
 
   paragraph = findAccessibleChildByID(accDoc, "paragraph2", [nsIAccessibleText]);
   offset = 52; // // beginning of 4th stanza
-  [x /*,y*/] = getPos(paragraph);
+  [x /* ,y*/] = getPos(paragraph);
   paragraph.scrollSubstringToPoint(offset, offset,
                                    COORDTYPE_SCREEN_RELATIVE, docX, docY);
   testTextPos(paragraph, offset, [x, docY], COORDTYPE_SCREEN_RELATIVE);
 }
 
 /**
  * Test caching of accessible object states
  */
--- a/accessible/tests/browser/shared-head.js
+++ b/accessible/tests/browser/shared-head.js
@@ -209,17 +209,17 @@ function loadFrameScripts(browser, ...sc
  * Takes an HTML snippet and returns an encoded URI for a full document
  * with the snippet.
  * @param {String} snippet   a markup snippet.
  * @param {Object} bodyAttrs extra attributes to use in the body tag. Default is
  *                           { id: "body "}.
  * @return {String} a base64 encoded data url of the document container the
  *                  snippet.
  **/
-function snippetToURL(snippet, bodyAttrs={}) {
+function snippetToURL(snippet, bodyAttrs = {}) {
   let attrs = Object.assign({}, { id: "body" }, bodyAttrs);
   let attrsString = Object.entries(attrs).map(
     ([attr, value]) => `${attr}=${JSON.stringify(value)}`).join(" ");
   let encodedDoc = btoa(
     `<html>
       <head>
         <meta charset="utf-8"/>
         <title>Accessibility Test</title>
--- a/accessible/tests/mochitest/actions.js
+++ b/accessible/tests/mochitest/actions.js
@@ -1,21 +1,21 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Event constants
 
 const MOUSEDOWN_EVENT = 1;
 const MOUSEUP_EVENT = 2;
 const CLICK_EVENT = 4;
 const COMMAND_EVENT = 8;
 const FOCUS_EVENT = 16;
 
 const CLICK_EVENTS = MOUSEDOWN_EVENT | MOUSEUP_EVENT | CLICK_EVENT;
 const XUL_EVENTS = CLICK_EVENTS | COMMAND_EVENT;
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Public functions
 
 /**
  * Test default accessible actions.
  *
  * Action tester interface is:
  *
  *  var actionObj = {
@@ -103,17 +103,17 @@ function testActionNames(aID, aActions)
   is(acc.actionCount, actions.length, "Wong number of actions.");
   for (var i = 0; i < actions.length; i++ ) {
     is(acc.getActionName(i), actions[i], "Wrong action name at " + i + " index.");
     is(acc.getActionDescription(0), gActionDescrMap[actions[i]],
        "Wrong action description at " + i + "index.");
   }
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private
 
 var gActionsQueue = null;
 
 function actionInvoker(aAccOrElmOrId, aActionIndex, aActionName, aEventSeq)
 {
   this.invoke = function actionInvoker_invoke()
   {
--- a/accessible/tests/mochitest/actions/test_anchors.html
+++ b/accessible/tests/mochitest/actions/test_anchors.html
@@ -13,34 +13,34 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../actions.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Event checkers
 
     function scrollingChecker(aAcc)
     {
       this.type = EVENT_SCROLLING_START;
       this.target = aAcc;
       this.getID = function scrollingChecker_getID()
       {
         return "scrolling start handling for " + prettyName(aAcc);
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
     // gA11yEventDumpID = "debug"; // debug stuff
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     function doTest()
     {
       var actionsArray = [
         {
           ID: "anchor1",
           actionName: "jump",
           actionIndex: 0,
--- a/accessible/tests/mochitest/actions/test_link.html
+++ b/accessible/tests/mochitest/actions/test_link.html
@@ -49,18 +49,18 @@
       }
 
       this.getID = function linkChecker_getID()
       {
         return "link '" + aID + "' states check ";
       }
     }
 
-    //gA11yEventDumpToConsole = true;
-    //enableLogging("tree,eventTree,verbose");
+    // gA11yEventDumpToConsole = true;
+    // enableLogging("tree,eventTree,verbose");
 
     function doTest()
     {
       var actionsArray = [
         {
           ID: "link1",
           actionName: "jump",
           events: CLICK_EVENTS,
--- a/accessible/tests/mochitest/actions/test_media.html
+++ b/accessible/tests/mochitest/actions/test_media.html
@@ -19,17 +19,17 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
 
     // gA11yEventDumpID = "eventDump";
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     function focusChecker(aAcc)
     {
       this.type = EVENT_FOCUS;
       this.target = aAcc;
       this.getID = function focusChecker_getID()
       {
         return "focus handling";
@@ -52,17 +52,17 @@ https://bugzilla.mozilla.org/show_bug.cg
       {
         is(aEvent.accessible.name, aName,
            "Wrong name of " + prettyName(aEvent.accessible) + " on focus");
       }
     }
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // test actions of audio controls
 
       todo(false, "Focus test are disabled until bug 494175 is fixed.");
 
       var audioElm = getAccessible("audio");
       var playBtn = audioElm.firstChild;
       // var scrubber = playBtn.nextSibling.nextSibling.nextSibling;
       var muteBtn = audioElm.lastChild.previousSibling;
--- a/accessible/tests/mochitest/actions/test_select.html
+++ b/accessible/tests/mochitest/actions/test_select.html
@@ -16,17 +16,17 @@
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../actions.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true; // debugging
+    // gA11yEventDumpToConsole = true; // debugging
     function doTest()
     {
       var actionsArray = [
         {
           ID: "lb_apple",
           actionIndex: 0,
           actionName: "select",
           events: CLICK_EVENTS,
--- a/accessible/tests/mochitest/attributes.js
+++ b/accessible/tests/mochitest/attributes.js
@@ -1,9 +1,9 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Object attributes.
 
 /**
  * Test object attributes.
  *
  * @param aAccOrElmOrID         [in] the accessible identifier
  * @param aAttrs                [in] the map of expected object attributes
  *                              (name/value pairs)
@@ -96,17 +96,17 @@ function testGroupAttrs(aAccOrElmOrID, a
     is(levelObj.value, aLevel,
        "Wrong group level for " + prettyName(aAccOrElmOrID));
 
     var attrs = { "level": String(aLevel) };
     testAttrs(aAccOrElmOrID, attrs, true);
   }
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Text attributes.
 
 /**
  * Test text attributes.
  *
  * @param aID                   [in] the ID of DOM element having text
  *                              accessible
  * @param aOffset               [in] the offset inside text accessible to fetch
@@ -280,17 +280,17 @@ function buildDefaultTextAttrs(aID, aFon
     "color": computedStyle.color,
     "font-family": aFontFamily ? aFontFamily : fontFamily(computedStyle),
     "text-position": computedStyle.verticalAlign
   };
 
   return defAttrs;
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private.
 
 function getTextAttributes(aID, aAccessible, aIncludeDefAttrs, aOffset,
                            aStartOffset, aEndOffset)
 {
   // This function expects the passed in accessible to already be queried for
   // nsIAccessibleText.
   var attrs = null;
--- a/accessible/tests/mochitest/attributes/test_obj_group.html
+++ b/accessible/tests/mochitest/attributes/test_obj_group.html
@@ -13,190 +13,190 @@
   <script type="application/javascript"
           src="../attributes.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML select with no size attribute.
       testGroupAttrs("opt1-nosize", 1, 4);
       testGroupAttrs("opt2-nosize", 2, 4);
       testGroupAttrs("opt3-nosize", 3, 4);
       testGroupAttrs("opt4-nosize", 4, 4);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML select
       testGroupAttrs("opt1", 1, 2);
       testGroupAttrs("opt2", 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML select with options
       // XXX bug 469123
-      //testGroupAttrs("select2_optgroup", 1, 3, 1);
-      //testGroupAttrs("select2_opt3", 2, 3, 1);
-      //testGroupAttrs("select2_opt4", 3, 3, 1);
-      //testGroupAttrs("select2_opt1", 1, 2, 2);
-      //testGroupAttrs("select2_opt2", 2, 2, 2);
+      // testGroupAttrs("select2_optgroup", 1, 3, 1);
+      // testGroupAttrs("select2_opt3", 2, 3, 1);
+      // testGroupAttrs("select2_opt4", 3, 3, 1);
+      // testGroupAttrs("select2_opt1", 1, 2, 2);
+      // testGroupAttrs("select2_opt2", 2, 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML input@type="radio" within form
       testGroupAttrs("radio1", 1, 2);
       testGroupAttrs("radio2", 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML input@type="radio" within document
       testGroupAttrs("radio3", 1, 2);
       testGroupAttrs("radio4", 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Hidden HTML input@type="radio"
       testGroupAttrs("radio5", 1, 1);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML ul/ol
       testGroupAttrs("li1", 1, 3);
       testGroupAttrs("li2", 2, 3);
       testGroupAttrs("li3", 3, 3);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML ul/ol (nested lists)
 
       testGroupAttrs("li4", 1, 3, 1);
       testGroupAttrs("li5", 2, 3, 1);
       testGroupAttrs("li6", 3, 3, 1);
 
       testGroupAttrs("n_li4", 1, 3, 2);
       testGroupAttrs("n_li5", 2, 3, 2);
       testGroupAttrs("n_li6", 3, 3, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA list
       testGroupAttrs("li7", 1, 3);
       testGroupAttrs("li8", 2, 3);
       testGroupAttrs("li9", 3, 3);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA list (nested lists: list -> listitem -> list -> listitem)
       testGroupAttrs("li10", 1, 3, 1);
       testGroupAttrs("li11", 2, 3, 1);
       testGroupAttrs("li12", 3, 3, 1);
 
       testGroupAttrs("n_li10", 1, 3, 2);
       testGroupAttrs("n_li11", 2, 3, 2);
       testGroupAttrs("n_li12", 3, 3, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA list (nested lists: list -> listitem -> group -> listitem)
       testGroupAttrs("lgt_li1", 1, 2, 1);
       testGroupAttrs("lgt_li1_nli1", 1, 2, 2);
       testGroupAttrs("lgt_li1_nli2", 2, 2, 2);
       testGroupAttrs("lgt_li2", 2, 2, 1);
       testGroupAttrs("lgt_li2_nli1", 1, 2, 2);
       testGroupAttrs("lgt_li2_nli2", 2, 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA menu (menuitem, separator, menuitemradio and menuitemcheckbox)
       testGroupAttrs("menu_item1", 1, 2);
       testGroupAttrs("menu_item2", 2, 2);
       testGroupAttrs("menu_item1.1", 1, 2);
       testGroupAttrs("menu_item1.2", 2, 2);
       testGroupAttrs("menu_item1.3", 1, 3);
       testGroupAttrs("menu_item1.4", 2, 3);
       testGroupAttrs("menu_item1.5", 3, 3);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA tab
       testGroupAttrs("tab_1", 1, 3);
       testGroupAttrs("tab_2", 2, 3);
       testGroupAttrs("tab_3", 3, 3);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA radio
       testGroupAttrs("r1", 1, 3);
       testGroupAttrs("r2", 2, 3);
       testGroupAttrs("r3", 3, 3);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA tree
       testGroupAttrs("ti1", 1, 3, 1);
       testGroupAttrs("ti2", 1, 2, 2);
       testGroupAttrs("ti3", 2, 2, 2);
       testGroupAttrs("ti4", 2, 3, 1);
       testGroupAttrs("ti5", 1, 3, 2);
       testGroupAttrs("ti6", 2, 3, 2);
       testGroupAttrs("ti7", 3, 3, 2);
       testGroupAttrs("ti8", 3, 3, 1);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA tree (tree -> treeitem -> group -> treeitem)
       testGroupAttrs("tree2_ti1", 1, 2, 1);
       testGroupAttrs("tree2_ti1a", 1, 2, 2);
       testGroupAttrs("tree2_ti1b", 2, 2, 2);
       testGroupAttrs("tree2_ti2", 2, 2, 1);
       testGroupAttrs("tree2_ti2a", 1, 2, 2);
       testGroupAttrs("tree2_ti2b", 2, 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA tree (tree -> treeitem, group -> treeitem)
       testGroupAttrs("tree3_ti1", 1, 2, 1);
       testGroupAttrs("tree3_ti1a", 1, 2, 2);
       testGroupAttrs("tree3_ti1b", 2, 2, 2);
       testGroupAttrs("tree3_ti2", 2, 2, 1);
       testGroupAttrs("tree3_ti2a", 1, 2, 2);
       testGroupAttrs("tree3_ti2b", 2, 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA grid
       testGroupAttrs("grid_row1", 1, 2);
       testAbsentAttrs("grid_cell1", {"posinset": "", "setsize": ""});
       testAbsentAttrs("grid_cell2", {"posinset": "", "setsize": ""});
 
       testGroupAttrs("grid_row2", 2, 2);
       testAbsentAttrs("grid_cell3", {"posinset": "", "setsize": ""});
       testAbsentAttrs("grid_cell4", {"posinset": "", "setsize": ""});
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA treegrid
       testGroupAttrs("treegrid_row1", 1, 2, 1);
       testAbsentAttrs("treegrid_cell1", {"posinset": "", "setsize": ""});
       testAbsentAttrs("treegrid_cell2", {"posinset": "", "setsize": ""});
 
       testGroupAttrs("treegrid_row2", 1, 1, 2);
       testAbsentAttrs("treegrid_cell3", {"posinset": "", "setsize": ""});
       testAbsentAttrs("treegrid_cell4", {"posinset": "", "setsize": ""});
 
       testGroupAttrs("treegrid_row3", 2, 2, 1);
       testAbsentAttrs("treegrid_cell5", {"posinset": "", "setsize": ""});
       testAbsentAttrs("treegrid_cell6", {"posinset": "", "setsize": ""});
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML headings
       testGroupAttrs("h1", 0, 0, 1);
       testGroupAttrs("h2", 0, 0, 2);
       testGroupAttrs("h3", 0, 0, 3);
       testGroupAttrs("h4", 0, 0, 4);
       testGroupAttrs("h5", 0, 0, 5);
       testGroupAttrs("h6", 0, 0, 6);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA combobox
       testGroupAttrs("combo1_opt1", 1, 4);
       testGroupAttrs("combo1_opt2", 2, 4);
       testGroupAttrs("combo1_opt3", 3, 4);
       testGroupAttrs("combo1_opt4", 4, 4);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA table
       testGroupAttrs("table_cell", 3, 4);
       testGroupAttrs("table_row", 2, 2);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA list constructed by ARIA owns
       testGroupAttrs("t1_li1", 1, 3);
       testGroupAttrs("t1_li2", 2, 3);
       testGroupAttrs("t1_li3", 3, 3);
 
       // Test that group position information updates after deleting node.
       testGroupAttrs("tree4_ti1", 1, 2, 1);
       testGroupAttrs("tree4_ti2", 2, 2, 1);
--- a/accessible/tests/mochitest/autocomplete.js
+++ b/accessible/tests/mochitest/autocomplete.js
@@ -199,17 +199,17 @@ AutoCompleteResult.prototype =
     return "";
   },
 
   getFinalCompleteValueAt: function(aIndex)
   {
     return this.getValueAt(aIndex);
   },
 
-  removeValueAt: function (aRowIndex, aRemoveFromDb) {},
+  removeValueAt: function(aRowIndex, aRemoveFromDb) {},
 
   // nsISupports implementation
   QueryInterface: function(iid) {
     if (iid.equals(nsISupports) ||
         iid.equals(nsIAutoCompleteResult))
       return this;
 
     throw Components.results.NS_ERROR_NO_INTERFACE;
--- a/accessible/tests/mochitest/bounds/test_select.html
+++ b/accessible/tests/mochitest/bounds/test_select.html
@@ -42,17 +42,17 @@
       }
 
       this.getID = function openComboboxNCheckBounds_getID()
       {
         return "open combobox and test boundaries";
       }
     }
 
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       // Combobox
       testBounds("combobox");
 
--- a/accessible/tests/mochitest/browser.js
+++ b/accessible/tests/mochitest/browser.js
@@ -93,17 +93,17 @@ function urlbarInput()
 /**
  * Return reload button.
  */
 function reloadButton()
 {
   return browserWindow().document.getElementById("urlbar-reload-button");
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // private section
 
 Components.utils.import("resource://gre/modules/Services.jsm");
 
 var gBrowserContext =
 {
   browserWnd: null,
   testFunc: null,
@@ -125,17 +125,17 @@ function openBrowserWindowIntl()
       params += ",height=" + rect.height;
   }
 
   gBrowserContext.browserWnd =
     window.openDialog(Services.prefs.getCharPref("browser.chromeURL"),
                       "_blank", params,
                       gBrowserContext.startURL);
 
-  whenDelayedStartupFinished(browserWindow(), function () {
+  whenDelayedStartupFinished(browserWindow(), function() {
     addA11yLoadEvent(startBrowserTests, browserWindow());
   });
 }
 
 function startBrowserTests()
 {
   if (gBrowserContext.startURL) // wait for load
     addA11yLoadEvent(gBrowserContext.testFunc, currentBrowser().contentWindow);
--- a/accessible/tests/mochitest/common.js
+++ b/accessible/tests/mochitest/common.js
@@ -1,9 +1,9 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Interfaces
 
 const nsIAccessibilityService = Components.interfaces.nsIAccessibilityService;
 
 const nsIAccessibleEvent = Components.interfaces.nsIAccessibleEvent;
 const nsIAccessibleStateChangeEvent =
   Components.interfaces.nsIAccessibleStateChangeEvent;
 const nsIAccessibleCaretMoveEvent =
@@ -49,31 +49,31 @@ const nsIDOMEvent = Components.interface
 const nsIDOMHTMLDocument = Components.interfaces.nsIDOMHTMLDocument;
 const nsIDOMNode = Components.interfaces.nsIDOMNode;
 const nsIDOMHTMLElement = Components.interfaces.nsIDOMHTMLElement;
 const nsIDOMWindow = Components.interfaces.nsIDOMWindow;
 const nsIDOMXULElement = Components.interfaces.nsIDOMXULElement;
 
 const nsIPropertyElement = Components.interfaces.nsIPropertyElement;
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // OS detect
 
 const MAC = (navigator.platform.indexOf("Mac") != -1);
 const LINUX = (navigator.platform.indexOf("Linux") != -1);
 const SOLARIS = (navigator.platform.indexOf("SunOS") != -1);
 const WIN = (navigator.platform.indexOf("Win") != -1);
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Application detect
 // Firefox is assumed by default.
 
 const SEAMONKEY = navigator.userAgent.match(/ SeaMonkey\//);
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Accessible general
 
 const STATE_BUSY = nsIAccessibleStates.STATE_BUSY;
 
 const SCROLL_TYPE_ANYWHERE = nsIAccessibleScrollType.SCROLL_TYPE_ANYWHERE;
 
 const COORDTYPE_SCREEN_RELATIVE = nsIAccessibleCoordinateType.COORDTYPE_SCREEN_RELATIVE;
 const COORDTYPE_WINDOW_RELATIVE = nsIAccessibleCoordinateType.COORDTYPE_WINDOW_RELATIVE;
@@ -190,17 +190,17 @@ function isObject(aObj, aExpectedObj, aM
     return;
   }
 
   ok(false,
      aMsg + " - got '" + prettyName(aObj) +
             "', expected '" + prettyName(aExpectedObj) + "'");
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Helpers for getting DOM node/accessible
 
 /**
  * Return the DOM node by identifier (may be accessible, DOM node or ID).
  */
 function getNode(aAccOrNodeOrID, aDocument)
 {
   if (!aAccOrNodeOrID)
@@ -453,17 +453,17 @@ function testAccessibleTree(aAccOrElmOrI
 
     case "tagName":
       is(accTree[prop], acc.DOMNode.tagName, msg);
       break;
 
     case "textAttrs": {
       var prevOffset = -1;
       for (var offset in accTree[prop]) {
-        if (prevOffset !=- 1) {
+        if (prevOffset != - 1) {
           var attrs = accTree[prop][prevOffset];
           testTextAttrs(acc, prevOffset, attrs, { }, prevOffset, +offset, true);
         }
         prevOffset = +offset;
       }
 
       if (prevOffset != -1) {
         var charCount = getAccessible(acc, [nsIAccessibleText]).characterCount;
@@ -849,19 +849,19 @@ function shortenString(aString, aMaxLeng
     return aString;
 
   // Trim the string if its length is > MAX_TRIM_LENGTH characters.
   var trimOffset = MAX_TRIM_LENGTH / 2;
   return aString.substring(0, trimOffset - 1) + "..." +
     aString.substring(aString.length - trimOffset, aString.length);
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // General Utils
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 /**
  * Return main chrome window (crosses chrome boundary)
  */
 function getMainChromeWindow(aWindow)
 {
   return aWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
                 .getInterface(Components.interfaces.nsIWebNavigation)
                 .QueryInterface(Components.interfaces.nsIDocShellTreeItem)
@@ -881,21 +881,21 @@ function setTestPluginEnabledState(aNewE
   var plugin = getTestPluginTag(aPluginName);
   var oldEnabledState = plugin.enabledState;
   plugin.enabledState = aNewEnabledState;
   SimpleTest.registerCleanupFunction(function() {
     getTestPluginTag(aPluginName).enabledState = oldEnabledState;
   });
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Accessible general
 
 function getNodePrettyName(aNode)
 {
   try {
     var tag = "";
     if (aNode.nodeType == nsIDOMNode.DOCUMENT_NODE) {
       tag = "document";
--- a/accessible/tests/mochitest/editabletext/editabletext.js
+++ b/accessible/tests/mochitest/editabletext/editabletext.js
@@ -212,17 +212,17 @@ function editableTextTest(aID)
       var acc = getAccessible(aID, [nsIAccessibleEditableText]);
       acc.deleteText(aStartPos, aEndPos);
     }
 
     this.generateTest(aID, removeTripple, null, deleteTextInvoke,
                       getValueChecker(aID, aResStr), testID);
   }
 
-  //////////////////////////////////////////////////////////////////////////////
+  // ////////////////////////////////////////////////////////////////////////////
   // Implementation details.
 
   function getValue(aID)
   {
     var elm = getNode(aID);
     if (elm instanceof Components.interfaces.nsIDOMNSEditableElement)
       return elm.value;
 
@@ -275,17 +275,17 @@ function editableTextTest(aID)
   {
     var et = this;
     var invoker = {
       eventSeq: [],
 
       invoke: aInvokeFunc,
       finalCheck: function finalCheck()
       {
-        //dumpTree(aID, `'${aID}' tree:`);
+        // dumpTree(aID, `'${aID}' tree:`);
 
         aChecker.check();
         et.unwrapNextTest(); // replace dummy invoker on real invoker object.
       },
       getID: function getID() { return aInvokerID; }
     };
 
     if (aRemoveTriple) {
--- a/accessible/tests/mochitest/editabletext/test_1.html
+++ b/accessible/tests/mochitest/editabletext/test_1.html
@@ -14,65 +14,65 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="editabletext.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true;
-    //enableLogging("tree,verbose"); // debug
+    // gA11yEventDumpToConsole = true;
+    // enableLogging("tree,verbose"); // debug
 
     function addTestEditable(aID, aTestRun, aBeforeContent, aAfterContent)
     {
       var et = new editableTextTest(aID);
       var startOffset = aBeforeContent ? aBeforeContent.length : 0;
       // XXX afterContent currently is not used
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // setTextContents
       et.scheduleTest(et.setTextContents, "hello", startOffset);
       et.scheduleTest(et.setTextContents, "olleh", startOffset);
       et.scheduleTest(et.setTextContents, "", startOffset);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // insertText
       et.scheduleTest(et.insertText, "hello", startOffset, "hello");
       et.scheduleTest(et.insertText, "ma ", startOffset, "ma hello");
       et.scheduleTest(et.insertText, "ma", startOffset + 2, "mama hello");
       et.scheduleTest(et.insertText, " hello", startOffset + 10, "mama hello hello");
 
       // XXX: bug 452584
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // deleteText
 //      et.deleteText(0, 5, "hello hello");
 //      et.deleteText(5, 6, "hellohello");
 //      et.deleteText(5, 10, "hello");
 //      et.deleteText(0, 5, "");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // copyNPasteText
 //      et.copyNPasteText(0, 0, 0, "");
 //      et.insertText("hello", 0, "hello");
 //      et.copyNPasteText(0, 1, 0, "hhello");
 //      et.copyNPasteText(5, 6, 6, "hhelloo");
 //      et.copyNPasteText(3, 4, 1, "hehelloo");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
 //      // cutNPasteText
 //      et.cutNPasteText(0, 1, 1, "ehhelloo");
 //      et.cutNPasteText(1, 2, 0, "hehelloo");
 //      et.cutNPasteText(7, 8, 8, "hehelloo");
 
       aTestRun.add(et);
     }
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     function runTest()
     {
       var testRun = new editableTextTestRun();
 
       addTestEditable("input", testRun);
       addTestEditable("div", testRun);
       addTestEditable("divb", testRun, "pseudo element", "");
--- a/accessible/tests/mochitest/elm/test_HTMLSpec.html
+++ b/accessible/tests/mochitest/elm/test_HTMLSpec.html
@@ -21,17 +21,17 @@
   <script type="application/javascript"
           src="../relations.js"></script>
   <script type="application/javascript"
           src="../name.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:a@href
 
       var obj = {
         role: ROLE_LINK,
         states: STATE_LINKED,
         actions: "jump",
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText, nsIAccessibleHyperLink ],
         children: [ // all kids inherits linked state and jump action
@@ -39,196 +39,196 @@
             role: ROLE_TEXT_LEAF,
             states: STATE_LINKED,
             actions: "jump"
           }
         ]
       };
       testElm("a_href", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:a no @href
 
       obj = {
         todo_role: ROLE_TEXT_CONTAINER,
         absentStates: STATE_LINKED,
         actions: null,
         children: [
           {
             role: ROLE_TEXT_LEAF,
             absentStates: STATE_LINKED,
             actions: null
           }
         ]
       };
       testElm("a_nohref", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:abbr contained by HTML:td
 
       obj = {
         role: ROLE_CELL,
         attributes: { abbr: "WWW" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ],
         children: [
           {
             role: ROLE_TEXT,
             children: [ { role: ROLE_TEXT_LEAF } ]
           }
         ]
       };
       testElm("td_abbr", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:address
 
       obj = {
         role: ROLE_TEXT_CONTAINER,
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ],
       };
       testElm("address", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:area@href
 
       obj = {
         role: ROLE_LINK,
         states: STATE_LINKED,
         actions: "jump",
         interfaces: [ nsIAccessibleHyperLink ],
         children: []
       };
       testElm(getAccessible("imgmap").firstChild, obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:area no @href
 
       obj = {
         todo_role: "ROLE_SHAPE",
         absentStates: STATE_LINKED,
         children: []
       };
       testElm(getAccessible("imgmap").lastChild, obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:article
       obj = {
         role: ROLE_ARTICLE,
         states: STATE_READONLY,
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ],
       };
       testElm("article", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:aside
       obj = {
         role: ROLE_NOTE,
         attributes: { "xml-roles": "complementary" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("aside", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       obj = { // HTML:audio
         role: ROLE_GROUPING
       };
       testElm("audio", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       obj = { // HTML:b contained by paragraph
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "font-weight": kBoldFontWeight }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:b text
         ]
       }
       testElm("b_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       obj = { // HTML:bdi contained by paragraph
         role: ROLE_PARAGRAPH,
         todo_textAttrs: {
           0: { },
           5: { "writing-mode": "rl" },
           8: { }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF }, // HTML:bdi text
           { role: ROLE_TEXT_LEAF } // plain text
         ]
       }
       testElm("bdi_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:bdo contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         todo_textAttrs: {
           0: { },
           6: { "writing-mode": "rl" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
         ]
       }
       testElm("bdo_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:blockquote
 
       obj = {
         role: ROLE_SECTION,
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ],
         children: [ { role: ROLE_PARAGRAPH } ]
       };
       testElm("blockquote", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:br contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         children: [ { role: ROLE_WHITESPACE } ]
       };
       testElm("br_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       obj = { // HTML:button
         role: ROLE_PUSHBUTTON,
         absentStates: STATE_DEFAULT,
         actions: "press",
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("button", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:button@type="submit" (default button)
 
       obj = {
         role: ROLE_PUSHBUTTON,
         states: STATE_DEFAULT,
         actions: "press"
       };
       testElm("button_default", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:canvas
 
       obj = {
         role: ROLE_CANVAS
       };
       testElm("canvas", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:caption under table
 
       obj = {
         role: ROLE_TABLE,
         relations: {
           RELATION_LABELLED_BY: "caption"
         },
         interfaces: nsIAccessibleTable,
@@ -265,76 +265,76 @@
           },
           { // td inside tfoot
             role: ROLE_ROW
           }
         ]
       };
       testElm("table", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:cite contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "font-style": "italic" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:cite text
         ]
       };
       testElm("cite_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:code contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "font-family": kMonospaceFontFamily }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:code text
         ]
       };
       testElm("code_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:col and HTML:colgroup under table
 
       obj =
         { TABLE: [
           { ROW: [
             { role: ROLE_CELL },
             { role: ROLE_CELL },
             { role: ROLE_CELL }
           ] }
         ] };
       testElm("colNcolgroup_table", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:data contained by paragraph
 
       obj =
         { PARAGRAPH: [
           { TEXT_LEAF: [] } // HTML:data text
         ] };
       testElm("data_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:datalist associated with input
 
       todo(false, "datalist and summary tree hierarchy test missed");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:dd, HTML:dl, HTML:dd
 
       obj = {
         role: ROLE_DEFINITION_LIST,
         states: STATE_READONLY,
         children: [ // dl
           {
             role: ROLE_TERM,
@@ -350,113 +350,113 @@
             children: [ // dd
               { role: ROLE_TEXT_LEAF }
             ]
           }
         ]
       };
       testElm("dl", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:del contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "text-line-through-style": "solid" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:del text
         ]
       };
       testElm("del_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:details with open state
 
       obj = {
         role: ROLE_DETAILS,
         children: [
           {
             role: ROLE_SUMMARY,
             states: STATE_EXPANDED,
             actions: "collapse"
          },
          { role: ROLE_PARAGRAPH }
         ]
       };
       testElm("details", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:details with closed (default) state
 
       obj = {
         role: ROLE_DETAILS,
         children: [
           {
             role: ROLE_SUMMARY,
             states: STATE_COLLAPSED,
             actions: "expand"
          }
         ]
       };
       testElm("details_closed", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:dfn contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { "font-style": "italic" },
           12: { }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // HTML:dfn text
           { role: ROLE_TEXT_LEAF } // plain text
         ]
       };
       testElm("dfn_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:dialog
 
       ok(isAccessible("dialog"), "dialog element is not accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:div
 
       obj = {
         role: ROLE_SECTION,
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ],
         children: [
           { role: ROLE_TEXT_LEAF } // plain text
         ]
       };
       testElm("div", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:em in a paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "font-style": "italic" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:em text
         ]
       };
       testElm("em_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:embed (windowless and windowed plugins)
 
       if (WIN) {
         obj = {
           role: ROLE_EMBEDDED_OBJECT,
           states: STATE_UNAVAILABLE
         };
 
@@ -464,17 +464,17 @@
 
         obj = {
           role: ROLE_EMBEDDED_OBJECT,
           absentStates: STATE_UNAVAILABLE
         };
         testElm("embed_plugin_windowed", obj);
       }
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:fieldset and HTML:legend
 
       obj = {
         role: ROLE_GROUPING,
         relations: {
           RELATION_LABELLED_BY: "legend"
         },
         children: [
@@ -487,17 +487,17 @@
           },
           {
             role: ROLE_ENTRY
           }
         ]
       };
       testElm("fieldset", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:figure and HTML:figcaption
 
       obj = {
         role: ROLE_FIGURE,
         attributes: { "xml-roles": "figure" },
         relations: {
           RELATION_LABELLED_BY: "figcaption"
         },
@@ -509,17 +509,17 @@
               RELATION_LABEL_FOR: "figure"
             },
             interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
           }
         ]
       };
       testElm("figure", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:footer
 
       obj = {
         role: ROLE_FOOTER,
         attributes: { "xml-roles": "contentinfo" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("footer", obj);
@@ -527,39 +527,39 @@
       obj = {
         role: ROLE_FOOTER,
         absentAttributes: { "xml-roles": "contentinfo" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("footer_in_article", obj);
       testElm("footer_in_section", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:form
 
       obj = {
         role: ROLE_FORM
       };
       testElm("form", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // // HTML:frameset, HTML:frame and HTML:iframe
 
       obj = {
         INTERNAL_FRAME: [ { // HTML:iframe
           DOCUMENT: [ {
             INTERNAL_FRAME: [ { // HTML:frame
               DOCUMENT: [ { role: ROLE_TEXT_LEAF} ]
             } ]
           } ]
         } ]
       };
       testElm("frameset_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:h1, HTML:h2, HTML:h3, HTML:h4, HTML:h5, HTML:h6
 
       obj = {
         role: ROLE_HEADING,
         attributes: { "level": "1" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("h1", obj);
@@ -594,17 +594,17 @@
 
       obj = {
         role: ROLE_HEADING,
         attributes: { "level": "6" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("h6", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:header
 
       obj = {
         role: ROLE_HEADER,
         attributes: { "xml-roles": "banner" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("header", obj);
@@ -612,57 +612,57 @@
       obj = {
         role: ROLE_HEADER,
         absentAttributes: { "xml-roles": "banner" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("header_in_article", obj);
       testElm("header_in_section", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:hr
 
       obj = {
         role: ROLE_SEPARATOR,
       };
       testElm("hr", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       obj = { // HTML:i contained by paragraph
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "font-style": "italic" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:i text
         ]
       }
       testElm("i_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:img
 
       obj = {
         role: ROLE_GRAPHIC,
         interfaces: [ nsIAccessibleImage ]
       };
       testElm("img", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="button"
 
       obj = {
         role: ROLE_PUSHBUTTON,
         absentStates: STATE_DEFAULT
       };
       testElm("input_button", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="checkbox"
 
       obj = {
         role: ROLE_CHECKBUTTON,
         states: STATE_CHECKABLE,
         absentStates: STATE_CHECKED,
         actions: "check"
       };
@@ -670,28 +670,28 @@
 
       obj = {
         role: ROLE_CHECKBUTTON,
         states: STATE_CHECKABLE | STATE_CHECKED,
         actions: "uncheck"
       };
       testElm("input_checkbox_true", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="file"
 
       obj = {
         TEXT_CONTAINER: [
           { role: ROLE_PUSHBUTTON },
           { role: ROLE_LABEL }
         ]
       };
       testElm("input_file", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="image"
 
       obj = {
         role: ROLE_PUSHBUTTON,
         absentStates: STATE_DEFAULT,
         actions: "press"
       };
       testElm("input_image", obj);
@@ -700,17 +700,17 @@
       obj = {
         role: ROLE_PUSHBUTTON,
         actions: "press",
         states: STATE_DEFAULT
       };
       testElm("input_image_default", obj);
       testElm("input_submit_default", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="number" and etc
 
       obj = {
         role: ROLE_SPINBUTTON,
         interfaces: [ nsIAccessibleValue ],
         children: [
           {
             role: ROLE_ENTRY,
@@ -728,17 +728,17 @@
           {
             role: ROLE_PUSHBUTTON,
             actions: "press"
           }
         ]
       };
       testElm("input_number", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="text" and etc
 
       obj = {
         role: ROLE_ENTRY,
         extraStates: EXT_STATE_EDITABLE | EXT_STATE_SINGLE_LINE,
         actions: "activate",
         interfaces: [ nsIAccessibleText, nsIAccessibleEditableText ],
         children: [
@@ -746,17 +746,17 @@
         ]
       };
       testElm("input_email", obj);
       testElm("input_search", obj);
       testElm("input_tel", obj);
       testElm("input_text", obj);
       testElm("input_url", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="password"
 
       obj = {
         role: ROLE_PASSWORD_TEXT,
         states: STATE_PROTECTED,
         extraStates: EXT_STATE_EDITABLE,
         actions: "activate",
         children: [
@@ -778,17 +778,17 @@
             role: ROLE_TEXT_LEAF
           }
         ]
       };
       testElm("input_password_readonly", obj);
       ok(getAccessible("input_password_readonly").firstChild.name != "44",
          "text leaf for password shouldn't have its real value as its name!");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="radio"
 
       obj = {
         role: ROLE_RADIOBUTTON,
         states: STATE_CHECKABLE,
         absentStates: STATE_CHECKED,
         actions: "select"
       };
@@ -796,84 +796,84 @@
 
       obj = {
         role: ROLE_RADIOBUTTON,
         states: STATE_CHECKABLE | STATE_CHECKED,
         actions: "select"
       };
       testElm("input_radio_true", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="range"
 
       obj = {
         role: ROLE_SLIDER
       };
       testElm("input_range", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:input@type="reset"
 
       obj = {
         role: ROLE_PUSHBUTTON,
         actions: "press",
         absentStates: STATE_DEFAULT
       };
       testElm("input_reset", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:ins contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "text-underline-style": "solid" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:ins text
         ]
       };
       testElm("ins_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:kbd contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "font-family": kMonospaceFontFamily }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:kbd text
         ]
       };
       testElm("kbd_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:keygen
 
       obj = {
         role: ROLE_COMBOBOX,
         states: STATE_COLLAPSED | STATE_HASPOPUP,
         extraStates: EXT_STATE_EXPANDABLE,
         actions: "open",
         children: [
           { COMBOBOX_LIST: [
             { role: ROLE_COMBOBOX_OPTION }, // high grade
             { role: ROLE_COMBOBOX_OPTION } // medium grade
           ] }
         ]
       };
       testElm("keygen", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:label
 
       obj = {
         role: ROLE_LABEL,
         todo_relations: {
           RELATION_LABEL_FOR: "label_input"
         },
         children: [
@@ -899,107 +899,107 @@
       obj = {
         role: ROLE_ENTRY,
         relations: {
           RELATION_LABELLED_BY: "label_for"
         }
       };
       testElm("label_for_input", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:ul, HTML:ol, HTML:li
 
       obj = { // ul or ol
         role: ROLE_LIST,
         states: STATE_READONLY,
         children: [
           { // li
             role: ROLE_LISTITEM,
             states: STATE_READONLY,
             interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
           }
         ]
       };
       testElm("ul", obj);
       testElm("ol", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:link
 
       ok(!isAccessible("link"), "link element is not accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:main
 
       obj = {
         todo_role: ROLE_GROUPING,
         attributes: { "xml-roles": "main" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("main", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:map
 
       ok(!isAccessible("map_imagemap"),
          "map element is not accessible if used as an image map");
 
       obj = {
         role: ROLE_TEXT_CONTAINER
       };
       testElm("map", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:mark contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "background-color": "rgb(255, 255, 0)" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:mark text
         ]
       };
       testElm("mark_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:math
 
       obj = {
         role: ROLE_MATHML_MATH
       };
       testElm("math", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:menu
 
       obj = {
         todo_role: ROLE_MENUPOPUP
       };
       testElm("menu", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:meter
 
       todo(isAccessible("meter"), "meter element is not accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:nav
 
       obj = {
         role: ROLE_SECTION,
         attributes: { "xml-roles": "navigation" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("nav", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:object (windowless and windowed plugins) and HTML:param
 
       if (WIN) {
         obj = {
           role: ROLE_EMBEDDED_OBJECT,
           states: STATE_UNAVAILABLE,
           children: [ ] // no child for HTML:param
         };
@@ -1007,17 +1007,17 @@
 
         obj = {
           role: ROLE_EMBEDDED_OBJECT,
           absentStates: STATE_UNAVAILABLE
         };
         testElm("object_plugin_windowed", obj);
       }
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:select, HTML:optgroup and HTML:option
 
       obj = { // HMTL:select@size > 1
         role: ROLE_LISTBOX,
         states: STATE_FOCUSABLE,
         absentStates: STATE_MULTISELECTABLE,
         interfaces: [ nsIAccessibleSelectable ],
         children: [
@@ -1058,17 +1058,17 @@
               { role: ROLE_COMBOBOX_OPTION },
               { role: ROLE_COMBOBOX_OPTION }
             ]
           }
         ]
       };
       testElm("select_combobox", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:output
 
       obj = {
         role: ROLE_SECTION,
         attributes: { "live": "polite" },
         todo_relations: {
           RELATION_CONTROLLED_BY: "output_input"
         },
@@ -1079,228 +1079,228 @@
       obj = {
         role: ROLE_ENTRY,
         relations: {
           RELATION_CONTROLLER_FOR: "output"
         }
       };
       testElm("output_input", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:pre
 
       obj = {
         role: ROLE_TEXT_CONTAINER,
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("pre", obj);
 
-      ///////////////////////////////////////////////////////////////////////////
+      // /////////////////////////////////////////////////////////////////////////
       // HTML:progress
 
       obj = {
         role: ROLE_PROGRESSBAR,
         absentStates: STATE_MIXED,
         interfaces: [ nsIAccessibleValue ]
       };
       testElm("progress", obj);
 
       obj = {
         role: ROLE_PROGRESSBAR,
         states: STATE_MIXED
       };
       testElm("progress_indeterminate", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:q
 
       obj = {
         role: ROLE_TEXT,
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ],
         children: [
           { role: ROLE_STATICTEXT }, // left quote
           { role: ROLE_TEXT_LEAF }, // quoted text
           { role: ROLE_STATICTEXT } // right quote
         ]
       };
       testElm("q", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:ruby
 
       todo(isAccessible("ruby"), "ruby element is not accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:s contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "text-line-through-style": "solid" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:i text
         ]
       };
       testElm("s_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:samp contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:samp text
         ]
       };
       testElm("samp_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:section
 
       obj = {
         role: ROLE_SECTION,
         attributes: { "xml-roles": "region" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("section", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:small contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "font-size": "10pt" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:small text
         ]
       };
       testElm("small_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:source
 
       ok(!isAccessible("source"), "source element is not accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:span
 
       ok(!isAccessible("span"), "span element is not accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:strong contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:strong text
         ]
       };
       testElm("strong_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:sub contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "text-position": "sub" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:sub text
         ]
       };
       testElm("sub_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:sup contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "text-position": "super" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:sup text
         ]
       };
       testElm("sup_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:svg
 
       obj = {
         todo_role: ROLE_GRAPHIC
       };
       testElm("svg", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:textarea
 
       obj = {
         role: ROLE_ENTRY,
         extraStates: EXT_STATE_MULTI_LINE | EXT_STATE_EDITABLE,
         actions: "activate",
         interfaces: [ nsIAccessibleText, nsIAccessibleEditableText ]
       };
       testElm("textarea", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:time
 
       obj = {
         role: ROLE_TEXT,
         attributes: { "xml-roles": "time", "datetime": "2001-05-15 19:00" },
         interfaces: [ nsIAccessibleText, nsIAccessibleHyperText ]
       };
       testElm("time", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:u contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         textAttrs: {
           0: { },
           6: { "text-underline-style": "solid" }
         },
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:u text
         ]
       };
       testElm("u_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML:var contained by paragraph
 
       obj = {
         role: ROLE_PARAGRAPH,
         children: [
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF }, // HTML:var text
           { role: ROLE_TEXT_LEAF }, // plain text
           { role: ROLE_TEXT_LEAF } // HTML:var text
         ]
       };
       testElm("var_container", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       obj = { // HTML:video
         role: ROLE_GROUPING
       };
       testElm("video", obj);
 
       SimpleTest.finish();
     }
 
--- a/accessible/tests/mochitest/elm/test_MathMLSpec.html
+++ b/accessible/tests/mochitest/elm/test_MathMLSpec.html
@@ -21,41 +21,41 @@
   <script type="application/javascript"
           src="../relations.js"></script>
   <script type="application/javascript"
           src="../name.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // math
 
       obj = {
         role: ROLE_MATHML_MATH,
       };
       testElm("math", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mi
 
       obj = {
         role: ROLE_MATHML_IDENTIFIER,
       };
       testElm("mi", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mn
 
       obj = {
         role: ROLE_MATHML_NUMBER,
       };
       testElm("mn", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mo
 
       obj = {
         role: ROLE_MATHML_OPERATOR,
         attributes: { accent: "true", largeop: "true" }
       };
       testElm("mo", obj);
 
@@ -66,66 +66,66 @@
       testElm("mo_fence", obj);
 
       obj = {
         role: ROLE_MATHML_OPERATOR,
         attributes: { separator: "true" }
       };
       testElm("mo_separator", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mtext
 
       obj = {
         role: ROLE_MATHML_TEXT,
       };
       testElm("mtext", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ms
 
       obj = {
         role: ROLE_MATHML_STRING_LITERAL,
       };
       testElm("ms", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mglyph
 
       obj = {
         role: ROLE_MATHML_GLYPH,
       };
       testElm("mglyph", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mrow
 
       obj = {
         role: ROLE_MATHML_ROW,
       };
       testElm("mrow", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mfrac
 
       obj = {
         role: ROLE_MATHML_FRACTION,
         attributes: { bevelled: "true", linethickness: "thick" }
       };
       testElm("mfrac", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // msqrt
 
       obj = {
         role: ROLE_MATHML_SQUARE_ROOT,
       };
       testElm("msqrt", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mroot
 
       obj = {
         role: ROLE_MATHML_ROOT,
         relations: {
           RELATION_NODE_PARENT_OF: ["mroot_index", "mroot_base"]
         },
         children: [
@@ -136,215 +136,215 @@
           {
             role: ROLE_MATHML_NUMBER,
             relations: { RELATION_NODE_CHILD_OF: "mroot" }
           }
         ]
       };
       testElm("mroot", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mfenced
 
       obj = {
         role: ROLE_MATHML_FENCED,
         attributes: { open: "]", close: "[", separators: "." }
       };
       testElm("mfenced", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // menclose
 
       obj = {
         role: ROLE_MATHML_ENCLOSED,
         attributes: { notation: "circle" }
       };
       testElm("menclose", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mstyle, mpadded, mphantom
 
       obj = {
         role: ROLE_MATHML_STYLE,
       };
       testElm("mstyle", obj);
 
       ok(!isAccessible("mpadded"), "mpadded should not have accessible");
       ok(!isAccessible("mphantom"), "mphantom should not have accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // msub
 
       obj = {
         role: ROLE_MATHML_SUB,
       };
       testElm("msub", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // msup
 
       obj = {
         role: ROLE_MATHML_SUP,
       };
       testElm("msup", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // msubsup
 
       obj = {
         role: ROLE_MATHML_SUB_SUP,
       };
       testElm("msubsup", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // munder
 
       obj = {
         role: ROLE_MATHML_UNDER,
         attributes: { accentunder: "true", align: "center" }
       };
       testElm("munder", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mover
 
       obj = {
         role: ROLE_MATHML_OVER,
         attributes: { accent: "true", align: "center" }
       };
       testElm("mover", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // munderover
 
       obj = {
         role: ROLE_MATHML_UNDER_OVER,
         attributes: { accent: "true", accentunder: "true", align: "center" },
       };
       testElm("munderover", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mmultiscripts
 
       obj = {
         role: ROLE_MATHML_MULTISCRIPTS,
       };
       testElm("mmultiscripts", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mtable
 
       obj = {
         role: ROLE_MATHML_TABLE,
         attributes: { align: "center", columnlines: "solid", rowlines: "solid" }
       };
       testElm("mtable", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mlabeledtr
 
       obj = {
         role: ROLE_MATHML_LABELED_ROW,
       };
       testElm("mlabeledtr", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mtr
 
       obj = {
         role: ROLE_MATHML_TABLE_ROW,
       };
       testElm("mtr", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mtd
 
       obj = {
         role: ROLE_MATHML_CELL,
       };
       testElm("mtd", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // maction
 
       obj = {
         role: ROLE_MATHML_ACTION,
         attributes: { actiontype: "toggle", selection: "1" }
       };
       testElm("maction", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // merror
 
       obj = {
         role: ROLE_MATHML_ERROR,
       };
       testElm("merror", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // semantics, annotation, annotation-xml
       ok(!isAccessible("semantics"), "semantics should not have accessible");
       ok(!isAccessible("annotation"), "annotation should not have accessible");
       ok(!isAccessible("annotation-xml"), "annotation-xml should not have accessible");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mstack
 
       obj = {
         role: ROLE_MATHML_STACK,
         attributes: { align: "center" }
       };
       testElm("mstack", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mlongdiv
 
       obj = {
         role: ROLE_MATHML_LONG_DIVISION,
         attributes: { longdivstyle: "stackedrightright" }
       };
       testElm("mlongdiv", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // msgroup
 
       obj = {
         role: ROLE_MATHML_STACK_GROUP,
         attributes: { position: "2", shift: "-1" }
       };
       testElm("msgroup", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // msrow
 
       obj = {
         role: ROLE_MATHML_STACK_ROW,
         attributes: { position: "1" }
       };
       testElm("msrow", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mscarries
 
       obj = {
         role: ROLE_MATHML_STACK_CARRIES,
         attributes: { location: "nw", position: "1" }
       };
       testElm("mscarries", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // mscarry
 
       obj = {
         role: ROLE_MATHML_STACK_CARRY,
         attributes: { crossout: "updiagonalstrike" }
       };
       testElm("mscarry", obj);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // msline
 
       obj = {
         role: ROLE_MATHML_STACK_LINE,
         attributes: { position: "1" }
       };
       testElm("msline", obj);
 
--- a/accessible/tests/mochitest/elm/test_plugin.html
+++ b/accessible/tests/mochitest/elm/test_plugin.html
@@ -38,17 +38,17 @@
 
       testStates("plugin-windowed-fallback", 0, 0, STATE_UNAVAILABLE);
       testAccessibleTree("plugin-windowed-fallback",
                          { EMBEDDED_OBJECT: [ { NOTHING: [] } ] });
 
       // make sure we handle content changes under the plugin.
       getNode("fallback1").setAttribute("href", "5");
       getNode("fallback2").setAttribute("href", "5");
-      SimpleTest.executeSoon(function () { SimpleTest.finish(); });
+      SimpleTest.executeSoon(function() { SimpleTest.finish(); });
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTest);
     setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED);
   </script>
 </head>
 <body>
--- a/accessible/tests/mochitest/events.js
+++ b/accessible/tests/mochitest/events.js
@@ -1,9 +1,9 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Constants
 
 const EVENT_ALERT = nsIAccessibleEvent.EVENT_ALERT;
 const EVENT_DESCRIPTION_CHANGE = nsIAccessibleEvent.EVENT_DESCRIPTION_CHANGE;
 const EVENT_DOCUMENT_LOAD_COMPLETE = nsIAccessibleEvent.EVENT_DOCUMENT_LOAD_COMPLETE;
 const EVENT_DOCUMENT_RELOAD = nsIAccessibleEvent.EVENT_DOCUMENT_RELOAD;
 const EVENT_DOCUMENT_LOAD_STOPPED = nsIAccessibleEvent.EVENT_DOCUMENT_LOAD_STOPPED;
 const EVENT_HIDE = nsIAccessibleEvent.EVENT_HIDE;
@@ -29,17 +29,17 @@ const EVENT_TEXT_REMOVED = nsIAccessible
 const EVENT_TEXT_SELECTION_CHANGED = nsIAccessibleEvent.EVENT_TEXT_SELECTION_CHANGED;
 const EVENT_VALUE_CHANGE = nsIAccessibleEvent.EVENT_VALUE_CHANGE;
 const EVENT_TEXT_VALUE_CHANGE = nsIAccessibleEvent.EVENT_TEXT_VALUE_CHANGE;
 const EVENT_VIRTUALCURSOR_CHANGED = nsIAccessibleEvent.EVENT_VIRTUALCURSOR_CHANGED;
 
 const kNotFromUserInput = 0;
 const kFromUserInput = 1;
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // General
 
 Components.utils.import("resource://gre/modules/Services.jsm");
 
 /**
  * Set up this variable to dump events into DOM.
  */
 var gA11yEventDumpID = "";
@@ -87,17 +87,17 @@ function waitForEvent(aEventType, aTarge
         if (target instanceof nsIDOMNode &&
             target != aEvent.DOMNode)
           return;
       }
 
       unregisterA11yEventListener(aEventType, this);
 
       window.setTimeout(
-        function ()
+        function()
         {
           aFunc.call(aContext, aArg1, aArg2);
         },
         0
       );
     }
   };
 
@@ -152,17 +152,17 @@ function registerA11yEventListener(aEven
  */
 function unregisterA11yEventListener(aEventType, aEventHandler)
 {
   removeA11yEventListener(aEventType, aEventHandler);
   listenA11yEvents(false);
 }
 
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Event queue
 
 /**
  * Return value of invoke method of invoker object. Indicates invoker was unable
  * to prepare action.
  */
 const INVOKER_ACTION_FAILED = 1;
 
@@ -824,29 +824,29 @@ function eventQueue(aEventType)
     return invoker.getID();
   }
 
   this.setInvokerStatus = function eventQueue_setInvokerStatus(aStatus, aLogMsg)
   {
     this.mNextInvokerStatus = aStatus;
 
     // Uncomment it to debug invoker processing logic.
-    //gLogger.log(eventQueue.invokerStatusToMsg(aStatus, aLogMsg));
+    // gLogger.log(eventQueue.invokerStatusToMsg(aStatus, aLogMsg));
   }
 
   this.mDefEventType = aEventType;
 
   this.mInvokers = [];
   this.mIndex = -1;
   this.mScenarios = null;
 
   this.mNextInvokerStatus = kInvokerNotScheduled;
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // eventQueue static members and constants
 
 const kInvokerNotScheduled = 0;
 const kInvokerPending = 1;
 const kInvokerCanceled = 2;
 
 eventQueue.getEventTypeAsString =
   function eventQueue_getEventTypeAsString(aEventOrChecker)
@@ -960,32 +960,32 @@ eventQueue.logEvent = function eventQueu
   // gA11yEventObserver.
   if (aOrigEvent instanceof nsIDOMEvent) {
     var info = "Event type: " + eventQueue.getEventTypeAsString(aOrigEvent);
     info += ". Target: " + eventQueue.getEventTargetDescr(aOrigEvent);
     gLogger.logToDOM(info);
   }
 
   var infoMsg = "unhandled expected events: " + aAreExpectedEventsLeft +
-    ", "  + eventQueue.invokerStatusToMsg(aInvokerStatus);
+    ", " + eventQueue.invokerStatusToMsg(aInvokerStatus);
 
   var currType = eventQueue.getEventTypeAsString(aMatchedChecker);
   var currTargetDescr = eventQueue.getEventTargetDescr(aMatchedChecker);
   var consoleMsg = "*****\nScenario " + aScenarioIdx +
     ", event " + aEventIdx + " matched: " + currType + "\n" + infoMsg + "\n*****";
   gLogger.logToConsole(consoleMsg);
 
   var emphText = "matched ";
   var msg = "EQ event, type: " + currType + ", target: " + currTargetDescr +
     ", " + infoMsg;
   gLogger.logToDOM(msg, true, emphText);
 }
 
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Action sequence
 
 /**
  * Deal with action sequence. Used when you need to execute couple of actions
  * each after other one.
  */
 function sequence()
 {
@@ -1025,17 +1025,17 @@ function sequence()
     this.items[this.idx].startProcess();
   }
 
   this.items = [];
   this.idx = -1;
 }
 
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Event queue invokers
 
 /**
  * Defines a scenario of expected/unexpected events. Each invoker can have
  * one or more scenarios of events. Only one scenario must be completed.
  */
 function defineScenario(aInvoker, aEventSeq, aUnexpectedEventSeq)
 {
@@ -1627,17 +1627,17 @@ function moveCaretToDOMPoint(aID, aDOMPo
 }
 
 /**
  * Set caret offset in text accessible.
  */
 function setCaretOffset(aID, aOffset, aFocusTargetID)
 {
   this.target = getAccessible(aID, [nsIAccessibleText]);
-  this.offset = aOffset == -1 ? this.target.characterCount: aOffset;
+  this.offset = aOffset == -1 ? this.target.characterCount : aOffset;
   this.focus = aFocusTargetID ? getAccessible(aFocusTargetID) : null;
 
   this.invoke = function setCaretOffset_invoke()
   {
     this.target.caretOffset = this.offset;
   }
 
   this.getID = function setCaretOffset_getID()
@@ -1649,17 +1649,17 @@ function setCaretOffset(aID, aOffset, aF
     new caretMoveChecker(this.offset, this.target)
   ];
 
   if (this.focus)
     this.eventSeq.push(new asyncInvokerChecker(EVENT_FOCUS, this.focus));
 }
 
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Event queue checkers
 
 /**
  * Common invoker checker (see eventSeq of eventQueue).
  */
 function invokerChecker(aEventType, aTargetOrFunc, aTargetFuncArg, aIsAsync)
 {
   this.type = aEventType;
@@ -1970,17 +1970,17 @@ function expandedStateChecker(aIsEnabled
     is(event.isEnabled, aIsEnabled,
       "Wrong state of statechange event state");
 
     testStates(event.accessible,
                (aIsEnabled ? STATE_EXPANDED : STATE_COLLAPSED));
   }
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Event sequances (array of predefined checkers)
 
 /**
  * Event seq for single selection change.
  */
 function selChangeSeq(aUnselectedID, aSelectedID)
 {
   if (!aUnselectedID) {
@@ -2023,22 +2023,22 @@ function selRemoveSeq(aUnselectedID)
 function selAddSeq(aSelectedID)
 {
   return [
     new stateChangeChecker(STATE_SELECTED, false, true, aSelectedID),
     new invokerChecker(EVENT_SELECTION_ADD, aSelectedID)
   ];
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private implementation details.
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // General
 
 var gA11yEventListeners = {};
 var gA11yEventApplicantsCount = 0;
 
 var gA11yEventObserver =
 {
   observe: function observe(aSubject, aTopic, aData)
@@ -2256,17 +2256,17 @@ var gLogger =
 
     var endIdx = startIdx + aFeature.length;
     return endIdx == gA11yEventDumpFeature.length ||
       gA11yEventDumpFeature[endIdx] == ";";
   }
 };
 
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Sequence
 
 /**
  * Base class of sequence item.
  */
 function sequenceItem(aProcessor, aEventType, aTarget, aItemID)
 {
   // private
@@ -2292,17 +2292,17 @@ function sequenceItem(aProcessor, aEvent
       return aItemID;
     },
     eventSeq: [ new invokerChecker(aEventType, aTarget) ]
   };
 
   this.queue.push(invoker);
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Event queue invokers
 
 /**
  * Invoker base class for prepare an action.
  */
 function synthAction(aNodeOrID, aEventsObj)
 {
   this.DOMNode = getNode(aNodeOrID);
--- a/accessible/tests/mochitest/events/test_aria_alert.html
+++ b/accessible/tests/mochitest/events/test_aria_alert.html
@@ -48,21 +48,21 @@
       }
 
       this.getID = function showAlert_getID()
       {
         return "Change ARIA alert " + aID;
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
-    //gA11yEventDumpToConsole = true; // debuging
-    //enableLogging("tree,events,verbose");
+    // gA11yEventDumpToConsole = true; // debuging
+    // enableLogging("tree,events,verbose");
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue(nsIAccessibleEvent.EVENT_ALERT);
 
       gQueue.push(new showAlert("alert"));
       gQueue.push(new changeAlert("alert"));
--- a/accessible/tests/mochitest/events/test_aria_menu.html
+++ b/accessible/tests/mochitest/events/test_aria_menu.html
@@ -142,21 +142,21 @@
       this.__proto__ = new synthClick("outsidemenu", eventSeq);
 
       this.getID = function blurMenu_getID()
       {
         return "blur menu";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
-    //gA11yEventDumpToConsole = true; // debuging
-    //enableLogging("tree,events,verbose");
+    // gA11yEventDumpToConsole = true; // debuging
+    // enableLogging("tree,events,verbose");
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new focusMenu("menubar2", "menu-help"));
       gQueue.push(new focusMenu("menubar", "menu-file", "menubar2"));
--- a/accessible/tests/mochitest/events/test_aria_objattr.html
+++ b/accessible/tests/mochitest/events/test_aria_objattr.html
@@ -56,17 +56,17 @@
           testAbsentAttrs(aID, { "hidden": "true"});
           testAbsentAttrs(aChildId, { "hidden": "true"});
         }
       }
     }
 
     // Debug stuff.
     // gA11yEventDumpID = "eventdump";
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new updateARIAHidden("hideable", true, "hideable_child"));
       gQueue.push(new updateARIAHidden("hideable", false, "hideable_child"));
 
--- a/accessible/tests/mochitest/events/test_aria_owns.html
+++ b/accessible/tests/mochitest/events/test_aria_owns.html
@@ -16,21 +16,21 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests.
 
-    //gA11yEventDumpToConsole = true; // debug stuff
-    //enableLogging("tree,eventTree,verbose");
+    // gA11yEventDumpToConsole = true; // debug stuff
+    // enableLogging("tree,eventTree,verbose");
 
     /**
      * Aria-owns target shouldn't have a show event.
      * Markup:
      * <div id="t1_fc" aria-owns="t1_owns"></div>
      * <span id="t1_owns"></div>
      */
     function testAriaOwns()
--- a/accessible/tests/mochitest/events/test_aria_statechange.html
+++ b/accessible/tests/mochitest/events/test_aria_statechange.html
@@ -21,18 +21,18 @@
   <script type="application/javascript">
 
 
     /**
      * Do tests.
      */
     var gQueue = null;
 
-    //gA11yEventDumpID = "eventdump"; // debugging
-    //gA11yEventDumpToConsole = true; // debugging
+    // gA11yEventDumpID = "eventdump"; // debugging
+    // gA11yEventDumpToConsole = true; // debugging
 
     function expandNode(aID, aIsExpanded)
     {
       this.DOMNode = getNode(aID);
 
       this.eventSeq = [
         new expandedStateChecker(aIsExpanded, this.DOMNode)
       ];
--- a/accessible/tests/mochitest/events/test_attrs.html
+++ b/accessible/tests/mochitest/events/test_attrs.html
@@ -40,17 +40,17 @@
     }
 
     /**
      * Do tests.
      */
     var gQueue = null;
 
     // gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       var id = "textbox", noTargetId = "textarea";
       var checker =
         new eventFromInputChecker(EVENT_FOCUS, id, "false", noTargetId);
--- a/accessible/tests/mochitest/events/test_bug1322593-2.html
+++ b/accessible/tests/mochitest/events/test_bug1322593-2.html
@@ -37,17 +37,17 @@
       }
 
       this.getID = function changeMultipleElements_invoke_getID()
       {
         return "Change the text content of multiple sibling divs";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 //    gA11yEventDumpToConsole = true; // debugging
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
--- a/accessible/tests/mochitest/events/test_bug1322593.html
+++ b/accessible/tests/mochitest/events/test_bug1322593.html
@@ -37,17 +37,17 @@
       }
 
       this.getID = function changeMultipleElements_invoke_getID()
       {
         return "Change the text content of multiple sibling divs";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 //    gA11yEventDumpToConsole = true; // debugging
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
--- a/accessible/tests/mochitest/events/test_caretmove.html
+++ b/accessible/tests/mochitest/events/test_caretmove.html
@@ -39,17 +39,17 @@
     }
 
     /**
      * Do tests.
      */
     var gQueue = null;
 
     // gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       // test caret move events and caret offsets
       gQueue = new eventQueue();
 
       var id = "textbox";
       gQueue.push(new synthFocus(id, new caretMoveChecker(5, id)));
--- a/accessible/tests/mochitest/events/test_coalescence.html
+++ b/accessible/tests/mochitest/events/test_coalescence.html
@@ -15,17 +15,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invoker base classes
 
     const kRemoveElm = 1;
     const kHideElm = 2;
     const kAddElm = 3;
     const kShowElm = 4;
 
     /**
@@ -160,17 +160,17 @@
       }
 
       // Initalization
 
       this.init();
       this.initSequence();
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     /**
      * Remove child node and then its parent node from DOM tree.
      */
     function removeChildNParent(aChildID, aParentID)
     {
       this.__proto__ = new removeOrHideCoalescenceBase(aChildID, aParentID,
@@ -683,21 +683,21 @@
         getNode("t11_c3").setAttribute("aria-owns", "t11_c2");
       };
 
       this.getID = function test11_getID() {
         return "Move a node by aria-owns to left within the tree";
       };
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests.
 
     gA11yEventDumpToConsole = true; // debug stuff
-    //enableLogging("eventTree");
+    // enableLogging("eventTree");
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new removeChildNParent("option1", "select1"));
       gQueue.push(new removeParentNChild("option2", "select2"));
--- a/accessible/tests/mochitest/events/test_contextmenu.html
+++ b/accessible/tests/mochitest/events/test_contextmenu.html
@@ -16,17 +16,17 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function showContextMenu(aID)
     {
       this.DOMNode = getNode(aID);
 
       this.eventSeq = [
         new invokerChecker(EVENT_MENUPOPUP_START, getContextMenuNode()),
@@ -91,22 +91,22 @@
         var item = menu.getChildAt(idx);
 
         if (hasState(item, STATE_FOCUSED))
           return getAccessible(item);
       }
       return null;
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
     var gQueue = null;
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new showContextMenu("input"));
       gQueue.push(new selectMenuItem());
       gQueue.push(new closeContextMenu());
--- a/accessible/tests/mochitest/events/test_descrchange.html
+++ b/accessible/tests/mochitest/events/test_descrchange.html
@@ -16,37 +16,37 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function setAttr(aID, aAttr, aValue, aChecker)
     {
       this.eventSeq = [ aChecker ];
       this.invoke = function setAttr_invoke()
       {
         getNode(aID).setAttribute(aAttr, aValue);
       }
 
       this.getID = function setAttr_getID()
       {
         return "set attr '" + aAttr + "', value '" + aValue + "'";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
-    //gA11yEventDumpToConsole = true; // debuggin
+    // gA11yEventDumpToConsole = true; // debuggin
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new setAttr("tst1", "aria-describedby", "display",
                               new invokerChecker(EVENT_DESCRIPTION_CHANGE, "tst1")));
--- a/accessible/tests/mochitest/events/test_docload.html
+++ b/accessible/tests/mochitest/events/test_docload.html
@@ -33,17 +33,17 @@
     // Force the creation of an accessible for the private hidden window's doc.
     gAccService.getAccessibleFor(privateDoc);
   </script>
 
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function changeIframeSrc(aIdentifier, aURL)
     {
       this.DOMNode = getNode(aIdentifier);
 
       this.eventSeq = [
         new invokerChecker(EVENT_REORDER, getAccessible(this.DOMNode)),
@@ -263,24 +263,24 @@
 
         // After the window is closed all alive subdocument accessibles should
         // be shut down.
         ok(!isAccessibleInCache(this.iframeDoc),
            "The document accessible for iframe is in cache still!");
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
     var gQueue = null;
 
     // Debug stuff.
     // gA11yEventDumpID = "eventdump";
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new changeIframeSrc("iframe", "about:"));
       gQueue.push(new changeIframeSrc("iframe", "about:buildconfig"));
       gQueue.push(new morphIFrame("iframe", kHide));
@@ -292,17 +292,17 @@
 
       gQueue.onFinish = doLastCallTests;
 
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     function doLastCallTests()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // makeIFrameVisible() test, part2
 
       // The document shouldn't have busy state (the DOM document was loaded
       // before its accessible was created). Do this test lately to make sure
       // the content of document accessible was created initially, prior to this
       // the document accessible keeps busy state. The initial creation happens
       // asynchronously after document creation, there are no events we could
       // use to catch it.
--- a/accessible/tests/mochitest/events/test_docload_aria.html
+++ b/accessible/tests/mochitest/events/test_docload_aria.html
@@ -14,17 +14,17 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function showARIADialog(aID)
     {
       this.dialogNode = getNode(aID);
 
       this.eventSeq = [
         new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, this.dialogNode)
@@ -36,23 +36,23 @@
       }
 
       this.getID = function showARIADialog_getID()
       {
         return "show ARIA dialog";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
     var gQueue = null;
 
     // Debug stuff.
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new showARIADialog("dialog"));
       gQueue.push(new showARIADialog("document"));
 
--- a/accessible/tests/mochitest/events/test_dragndrop.html
+++ b/accessible/tests/mochitest/events/test_dragndrop.html
@@ -64,23 +64,23 @@
       }
     }
 
     function doTests()
     {
       // Test aria attribute mutation events
       gQueue = new eventQueue(nsIAccessibleEvent.EVENT_OBJECT_ATTRIBUTE_CHANGED);
 
-      var id="grabbable";
+      var id = "grabbable";
       gQueue.push(new changeGrabbed(id, "true"));
       gQueue.push(new changeGrabbed(id, "false"));
       todo(false, "uncomment this test when 472142 is fixed.");
-      //gQueue.push(new changeGrabbed(id, "undefined"));
+      // gQueue.push(new changeGrabbed(id, "undefined"));
 
-      var id="dropregion";
+      var id = "dropregion";
       gQueue.push(new changeDropeffect(id, "copy"));
       gQueue.push(new changeDropeffect(id, "execute"));
 
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTests);
--- a/accessible/tests/mochitest/events/test_focus_aria_activedescendant.html
+++ b/accessible/tests/mochitest/events/test_focus_aria_activedescendant.html
@@ -15,17 +15,17 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true; // debugging
+    // gA11yEventDumpToConsole = true; // debugging
 
     function changeARIAActiveDescendant(aID, aItemID)
     {
       this.eventSeq = [
         new focusChecker(aItemID)
       ];
 
       this.invoke = function changeARIAActiveDescendant_invoke()
@@ -71,17 +71,17 @@ https://bugzilla.mozilla.org/show_bug.cg
       gQueue.push(new synthFocus("listbox", new focusChecker("item1")));
       gQueue.push(new changeARIAActiveDescendant("listbox", "item2"));
       gQueue.push(new changeARIAActiveDescendant("listbox", "item3"));
 
       gQueue.push(new synthFocus("combobox_entry", new focusChecker("combobox_entry")));
       gQueue.push(new changeARIAActiveDescendant("combobox", "combobox_option2"));
 
       todo(false, "No focus for inserted element, bug 687011");
-      //gQueue.push(new insertItemNFocus("listbox", "item4"));
+      // gQueue.push(new insertItemNFocus("listbox", "item4"));
 
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTest);
   </script>
 </head>
--- a/accessible/tests/mochitest/events/test_focus_canvas.html
+++ b/accessible/tests/mochitest/events/test_focus_canvas.html
@@ -16,17 +16,17 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new synthFocus("button"));
       gQueue.push(new synthTab("button", new focusChecker("textbox")));
--- a/accessible/tests/mochitest/events/test_focus_controls.html
+++ b/accessible/tests/mochitest/events/test_focus_controls.html
@@ -16,17 +16,17 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue(EVENT_FOCUS);
 
       gQueue.push(new synthFocus("textbox"));
       gQueue.push(new synthFocus("textarea"));
--- a/accessible/tests/mochitest/events/test_focus_doc.html
+++ b/accessible/tests/mochitest/events/test_focus_doc.html
@@ -18,18 +18,18 @@
   <script type="application/javascript"
           src="../role.js"></script>
     <script type="application/javascript"
       src="../states.js"></script>
 
   <script type="application/javascript">
     var gQueue = null;
 
-    //var gA11yEventDumpID = "eventdump";
-    //gA11yEventDumpToConsole = true;
+    // var gA11yEventDumpID = "eventdump";
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       // setup
       var frameDoc = document.getElementById("iframe").contentDocument;
       frameDoc.designMode = "on";
       var frameDocAcc = getAccessible(frameDoc, [nsIAccessibleDocument]);
       var buttonAcc = getAccessible("b1");
--- a/accessible/tests/mochitest/events/test_focus_general.html
+++ b/accessible/tests/mochitest/events/test_focus_general.html
@@ -81,18 +81,18 @@
         return aEvent.accessible.role == ROLE_MENUITEM;
       }
     }
 
     /**
      * Do tests.
      */
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTests()
     {
       var frameDoc = document.getElementById("iframe").contentDocument;
 
       var editableDoc = document.getElementById("editabledoc").contentDocument;
--- a/accessible/tests/mochitest/events/test_focus_name.html
+++ b/accessible/tests/mochitest/events/test_focus_name.html
@@ -54,17 +54,17 @@
       }
     };
 
     /**
      * Do tests.
      */
 
     // gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     var gButtonElm = null;
     var gTextboxElm = null;
     var gTooltipElm = null;
 
     function doTests()
--- a/accessible/tests/mochitest/events/test_focus_selects.html
+++ b/accessible/tests/mochitest/events/test_focus_selects.html
@@ -16,18 +16,18 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTests()
     {
       // Bug 746534 - File causes crash or hang on OS X
       if (MAC) {
         todo(false, "Bug 746534 - test file causes crash or hang on OS X");
--- a/accessible/tests/mochitest/events/test_fromUserInput.html
+++ b/accessible/tests/mochitest/events/test_fromUserInput.html
@@ -70,17 +70,17 @@
 
       this.getID = function removeTextFromContentEditable_getID()
       {
         return "Remove text from " + aStart + " to " + aEnd + " for " +
           prettyName(aID);
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
     // gA11yEventDumpID = "eventdump"; // debug stuff
 
     var gQueue = null;
 
     function doTests()
     {
       gQueue = new eventQueue();
--- a/accessible/tests/mochitest/events/test_mutation.html
+++ b/accessible/tests/mochitest/events/test_mutation.html
@@ -461,18 +461,18 @@
       return children;
     }
 
     function getParent(aNode)
     {
       return aNode.parentNode;
     }
 
-    //gA11yEventDumpToConsole = true; // debug stuff
-    //enableLogging("events,verbose");
+    // gA11yEventDumpToConsole = true; // debug stuff
+    // enableLogging("events,verbose");
 
     /**
      * Do tests.
      */
     var gQueue = null;
 
     function doTests()
     {
--- a/accessible/tests/mochitest/events/test_mutation.xhtml
+++ b/accessible/tests/mochitest/events/test_mutation.xhtml
@@ -57,18 +57,18 @@
         return "insert button binding";
       }
     }
 
     /**
      * Do tests.
      */
     var gQueue = null;
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new insertBinding("testContainer"));
 
       gQueue.invoke(); // Will call SimpleTest.finish();
--- a/accessible/tests/mochitest/events/test_namechange.html
+++ b/accessible/tests/mochitest/events/test_namechange.html
@@ -16,17 +16,17 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function setAttr(aID, aAttr, aValue, aChecker)
     {
       this.eventSeq = [ aChecker ];
       this.invoke = function setAttr_invoke()
       {
         getNode(aID).setAttribute(aAttr, aValue);
@@ -54,20 +54,20 @@
       }
 
       this.getID = function setAttr_recreate_getID()
       {
         return "set attr '" + aAttr + "', value '" + aValue + "'";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
-    //gA11yEventDumpToConsole = true; // debuggin
+    // gA11yEventDumpToConsole = true; // debuggin
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new setAttr("tst1", "aria-label", "hi",
                               new invokerChecker(EVENT_NAME_CHANGE, "tst1")));
--- a/accessible/tests/mochitest/events/test_selection.html
+++ b/accessible/tests/mochitest/events/test_selection.html
@@ -16,23 +16,23 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
-    //gA11yEventDumpToConsole = true; // debuggin
+    // gA11yEventDumpToConsole = true; // debuggin
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       // open combobox
       gQueue.push(new synthClick("combobox",
--- a/accessible/tests/mochitest/events/test_selection_aria.html
+++ b/accessible/tests/mochitest/events/test_selection_aria.html
@@ -16,17 +16,17 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function selectItem(aSelectID, aItemID)
     {
       this.selectNode = getNode(aSelectID);
       this.itemNode = getNode(aItemID);
 
       this.eventSeq = [
@@ -42,22 +42,22 @@
       }
 
       this.getID = function selectItem_getID()
       {
         return "select item " + prettyName(aItemID);
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
     var gQueue = null;
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new selectItem("tablist", "tab1"));
       gQueue.push(new selectItem("tablist", "tab2"));
 
--- a/accessible/tests/mochitest/events/test_statechange.html
+++ b/accessible/tests/mochitest/events/test_statechange.html
@@ -14,17 +14,17 @@
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function makeEditableDoc(aDocNode, aIsEnabled)
     {
       this.DOMNode = aDocNode;
 
       this.invoke = function editabledoc_invoke() {
         // Note: this should fire an EVENT_STATE_CHANGE
@@ -178,23 +178,23 @@
       }
 
       this.getID = function echoingStateChange_getID()
       {
         return "enchoing ARIA and native attributes change";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
     var gQueue = null;
 
     // var gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     function doTests()
     {
       gQueue = new eventQueue(nsIAccessibleEvent.EVENT_STATE_CHANGE);
 
       // Test delayed editable state change
       var doc = document.getElementById("iframe").contentDocument;
       gQueue.push(new makeEditableDoc(doc));
--- a/accessible/tests/mochitest/events/test_text.html
+++ b/accessible/tests/mochitest/events/test_text.html
@@ -12,17 +12,17 @@
           src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
 
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     /**
      * Base text remove invoker and checker.
      */
     function textRemoveInvoker(aID, aStart, aEnd, aText)
     {
       this.DOMNode = getNode(aID);
@@ -244,17 +244,17 @@
       {
         return "Remove text from " + aStart + " to " + aEnd + " for " +
           prettyName(aID);
       }
 
       this.textNode = getNode(aTextNode);
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
     gA11yEventDumpToConsole = true; // debugging
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
@@ -274,20 +274,20 @@
       gQueue.push(new removeChildren("div3", false, 0, 5, text));
 
       // Text remove from text node within hypertext accessible.
       gQueue.push(new removeTextFromInput("input", 1, 3, "al"));
       gQueue.push(new insertTextIntoInput("input", 1, 2, "a"));
 
       // bug 570691
       todo(false, "Fix text change events from editable area, see bug 570691");
-      //var textNode = getNode("editable").firstChild;
-      //gQueue.push(new removeTextFromEditable("editable", 1, 3, "al", textNode));
-      //textNode = getNode("editable2").firstChild.firstChild;
-      //gQueue.push(new removeTextFromEditable("editable2", 1, 3, "al", textNode));
+      // var textNode = getNode("editable").firstChild;
+      // gQueue.push(new removeTextFromEditable("editable", 1, 3, "al", textNode));
+      // textNode = getNode("editable2").firstChild.firstChild;
+      // gQueue.push(new removeTextFromEditable("editable2", 1, 3, "al", textNode));
 
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTests);
   </script>
 </head>
--- a/accessible/tests/mochitest/events/test_text_alg.html
+++ b/accessible/tests/mochitest/events/test_text_alg.html
@@ -12,17 +12,17 @@
           src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
 
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     const kRemoval = false;
     const kInsertion = true;
     const kUnexpected = true;
 
     function changeText(aContainerID, aValue, aEventList)
     {
@@ -64,130 +64,130 @@
 
     function expStr(x, doublings)
     {
       for (var i = 0; i < doublings; ++i)
         x = x + x;
       return x;
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // wqrema -> tqb: substitution coalesced with removal
 
       var events = [
         [ kRemoval, "w", 0 ], // wqrema -> qrema
         [ kInsertion, "t", 0], // qrema -> tqrema
         [ kRemoval, "rema", 2 ], // tqrema -> tq
         [ kInsertion, "b", 2] // tq -> tqb
       ];
       gQueue.push(new changeText("p1", "tqb", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // b -> insa: substitution coalesced with insertion (complex substitution)
 
       events = [
         [ kRemoval, "b", 0 ], // b ->
         [ kInsertion, "insa", 0] //  -> insa
       ];
       gQueue.push(new changeText("p2", "insa", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // abc -> def: coalesced substitutions
 
       events = [
         [ kRemoval, "abc", 0 ], // abc ->
         [ kInsertion, "def", 0] //  -> def
       ];
       gQueue.push(new changeText("p3", "def", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // abcabc -> abcDEFabc: coalesced insertions
 
       events = [
         [ kInsertion, "DEF", 3] // abcabc -> abcDEFabc
       ];
       gQueue.push(new changeText("p4", "abcDEFabc", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // abc -> defabc: insertion into begin
 
       events = [
         [ kInsertion, "def", 0] // abc -> defabc
       ];
       gQueue.push(new changeText("p5", "defabc", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // abc -> abcdef: insertion into end
 
       events = [
         [ kInsertion, "def", 3] // abc -> abcdef
       ];
       gQueue.push(new changeText("p6", "abcdef", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // defabc -> abc: removal from begin
 
       events = [
         [ kRemoval, "def", 0] // defabc -> abc
       ];
       gQueue.push(new changeText("p7", "abc", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // abcdef -> abc: removal from the end
 
       events = [
         [ kRemoval, "def", 3] // abcdef -> abc
       ];
       gQueue.push(new changeText("p8", "abc", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // abcDEFabc -> abcabc: coalesced removals
 
       events = [
         [ kRemoval, "DEF", 3] // abcDEFabc -> abcabc
       ];
       gQueue.push(new changeText("p9", "abcabc", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // !abcdef@ -> @axbcef!: insertion, deletion and substitutions
 
       events = [
         [ kRemoval, "!", 0 ], // !abcdef@ -> abcdef@
         [ kInsertion, "@", 0], // abcdef@ -> @abcdef@
         [ kInsertion, "x", 2 ], // @abcdef@ -> @axbcdef@
         [ kRemoval, "d", 5], // @axbcdef@ -> @axbcef@
         [ kRemoval, "@", 7 ], // @axbcef@ -> @axbcef
         [ kInsertion, "!", 7 ], // @axbcef -> @axbcef!
       ];
       gQueue.push(new changeText("p10", "@axbcef!", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // meilenstein -> levenshtein: insertion, complex and simple substitutions
 
       events = [
         [ kRemoval, "m", 0 ], // meilenstein -> eilenstein
         [ kInsertion, "l", 0], // eilenstein -> leilenstein
         [ kRemoval, "il", 2 ], // leilenstein -> leenstein
         [ kInsertion, "v", 2], // leenstein -> levenstein
         [ kInsertion, "h", 6 ], // levenstein -> levenshtein
       ];
       gQueue.push(new changeText("p11", "levenshtein", events));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // long strings, remove/insert pair as the old string was replaced on
       // new one
 
       var longStr1 = expStr("x", 16);
       var longStr2 = expStr("X", 16);
 
       var newStr = "a" + longStr1 + "b", insStr = longStr1, rmStr = "";
       events = [
--- a/accessible/tests/mochitest/events/test_textattrchange.html
+++ b/accessible/tests/mochitest/events/test_textattrchange.html
@@ -38,18 +38,18 @@
       ];
 
       this.invoke = function spelledTextInvoker_invoke()
       {
         var editor = this.DOMNode.QueryInterface(nsIDOMNSEditableElement).editor;
         var spellChecker = new InlineSpellChecker(editor);
         spellChecker.enabled = true;
 
-        //var spellchecker = editor.getInlineSpellChecker(true);
-        //spellchecker.enableRealTimeSpell = true;
+        // var spellchecker = editor.getInlineSpellChecker(true);
+        // spellchecker.enableRealTimeSpell = true;
 
         this.DOMNode.value = "valid text inalid tixt";
       }
 
       this.finalCheck = function spelledTextInvoker_finalCheck()
       {
         var defAttrs = buildDefaultTextAttrs(this.DOMNode, kInputFontSize,
                                              kNormalFontWeight,
@@ -71,18 +71,18 @@
       {
         return "text attribute change for misspelled text";
       }
     }
 
     /**
      * Do tests.
      */
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
     function doTests()
     {
       // Synth focus before spellchecking turning on to make sure editor
       // gets a time for initialization.
 
       gQueue = new eventQueue();
--- a/accessible/tests/mochitest/events/test_textselchange.html
+++ b/accessible/tests/mochitest/events/test_textselchange.html
@@ -17,17 +17,17 @@
           src="../text.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
     var gQueue = null;
 
     // gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     function getOnclickSeq(aID)
     {
       return [
         new caretMoveChecker(0, aID),
         new unexpectedInvokerChecker(EVENT_TEXT_SELECTION_CHANGED, aID)
       ];
     }
--- a/accessible/tests/mochitest/events/test_valuechange.html
+++ b/accessible/tests/mochitest/events/test_valuechange.html
@@ -48,17 +48,17 @@
 
       this.check = function changeARIAValue_check() {
         var acc = getAccessible(aNodeOrID, [nsIAccessibleValue]);
         if (!acc)
           return;
 
         // Note: always test against valuetext first because the existence of
         // aria-valuetext takes precedence over aria-valuenow in gecko.
-        is(acc.value, (aValuetext != undefined)? aValuetext : aValuenow,
+        is(acc.value, (aValuetext != undefined) ? aValuetext : aValuenow,
             "Wrong value of " + prettyName(aNodeOrID));
       }
 
       this.getID = function changeARIAValue_getID() {
         return prettyName(aNodeOrID) + " value changed";
       }
     }
 
@@ -94,17 +94,17 @@
       this.invoke = function changeProgressValue_invoke()
       {
          this.DOMNode.value = aValue;
       }
 
       this.check = function changeProgressValue_check()
       {
         var acc = getAccessible(this.DOMNode);
-        is(acc.value, aValue+"%", "Wrong value for " + prettyName(aID));
+        is(acc.value, aValue + "%", "Wrong value for " + prettyName(aID));
       }
 
       this.getID = function changeProgressValue_getID()
       {
         return prettyName(aID) + " value changed";
       }
     }
 
@@ -147,18 +147,18 @@
       }
 
       this.getID = function changeSelectValue_getID()
       {
         return `${prettyName(aID)} closed select value change on '${aKey}'' key press`;
       }
     }
 
-    //enableLogging("DOMEvents");
-    //gA11yEventDumpToConsole = true;
+    // enableLogging("DOMEvents");
+    // gA11yEventDumpToConsole = true;
     function doTests()
     {
       // Test initial values
       testValue("slider_vn", "5", 5, 0, 1000, 0);
       testValue("slider_vnvt", "plain", 0, 0, 5, 0);
       testValue("slider_vt", "hi", 0, 0, 3, 0);
       testValue("scrollbar", "5", 5, 0, 1000, 0);
       testValue("splitter", "5", 5, 0, 1000, 0);
--- a/accessible/tests/mochitest/focus/test_takeFocus.html
+++ b/accessible/tests/mochitest/focus/test_takeFocus.html
@@ -14,17 +14,17 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function takeFocusInvoker(aID)
     {
       this.accessible = getAccessible(aID);
 
       this.eventSeq = [ new focusChecker(this.accessible) ];
 
@@ -34,20 +34,20 @@
       }
 
       this.getID = function takeFocusInvoker_getID()
       {
         return "takeFocus for " + prettyName(aID);
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     var gQueue = null;
     function doTest()
     {
       disableLogging(); // from test_focusedChild
       gQueue = new eventQueue();
 
       gQueue.push(new takeFocusInvoker("aria-link"));
--- a/accessible/tests/mochitest/hittest/test_canvas_hitregion.html
+++ b/accessible/tests/mochitest/hittest/test_canvas_hitregion.html
@@ -17,26 +17,26 @@
     {
       context.save();
       context.font = "10px sans-serif";
       context.textAlign = "left";
       context.textBaseline = "middle";
       var metrics = context.measureText(element.parentNode.textContent);
       context.beginPath();
       context.strokeStyle = "black";
-      context.rect(x-5, y-5, 10, 10);
+      context.rect(x - 5, y - 5, 10, 10);
       context.stroke();
       if (element.checked) {
         context.fillStyle = "black";
         context.fill();
       }
-      context.fillText(element.parentNode.textContent, x+5, y);
+      context.fillText(element.parentNode.textContent, x + 5, y);
 
       context.beginPath();
-      context.rect(x-7, y-7, 12 + metrics.width+2, 14);
+      context.rect(x - 7, y - 7, 12 + metrics.width + 2, 14);
 
       if (document.activeElement == element)
         context.drawFocusIfNeeded(element);
       context.addHitRegion({control: element});
       context.restore();
     }
 
     function doTest()
--- a/accessible/tests/mochitest/hyperlink/test_general.html
+++ b/accessible/tests/mochitest/hyperlink/test_general.html
@@ -52,52 +52,52 @@ https://bugzilla.mozilla.org/show_bug.cg
       } catch (e) {
         if (actionCount)
           ok(false, "Exception on action name getting for ID " + aId);
         else
           ok(true, "Correct action name for ID " + aId);
       }
     }
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
     function doPreTest()
     {
       waitForImageMap("imgmap", doTest);
     }
 
     var gQueue = null;
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // normal hyperlink
       var normalHyperlinkAcc = getAccessible("NormalHyperlink",
                                              [nsIAccessibleHyperLink]);
       testThis("NormalHyperlink", normalHyperlinkAcc, ROLE_LINK, 1,
                "Mozilla Foundation", true, 17, 18);
       is(normalHyperlinkAcc.getURI(0).spec, "http://www.mozilla.org/",
          "URI wrong for normalHyperlinkElement!");
       testStates(normalHyperlinkAcc, STATE_LINKED, 0);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA hyperlink
       var ariaHyperlinkAcc = getAccessible("AriaHyperlink",
                                            [nsIAccessibleHyperLink]);
       testThis("AriaHyperlink", ariaHyperlinkAcc, ROLE_LINK, 1,
                "Mozilla Foundation Home", true, 30, 31);
       testStates(ariaHyperlinkAcc, STATE_LINKED, 0);
       testAction("AriaHyperlink", ariaHyperlinkAcc, "click");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA hyperlink with status invalid
       var invalidAriaHyperlinkAcc = getAccessible("InvalidAriaHyperlink",
                                                   [nsIAccessibleHyperLink]);
       is(invalidAriaHyperlinkAcc.valid, false, "Should not be valid!");
       testStates(invalidAriaHyperlinkAcc, STATE_LINKED, 0);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // image map and its link children
 
       var imageMapHyperlinkAcc = getAccessible("imgmap",
                                                [nsIAccessibleHyperLink]);
       testThis("imgmap", imageMapHyperlinkAcc, ROLE_IMAGE_MAP, 2, "b", true,
                79, 80);
       is(imageMapHyperlinkAcc.getURI(0).spec,
          "http://www.bbc.co.uk/radio4/atoz/index.shtml#b", "URI wrong!");
@@ -114,101 +114,101 @@ https://bugzilla.mozilla.org/show_bug.cg
 
       var area2 = getAccessible(area1.nextSibling,
                                 [nsIAccessibleHyperLink]);
       testThis("Area2", area2, ROLE_LINK, 1, "a", true, 1, 2);
       is(area2.getURI(0).spec,
          "http://www.bbc.co.uk/radio4/atoz/index.shtml#a", "URI wrong!");
       testStates(area2, (STATE_LINKED));
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // empty hyperlink
       var EmptyHLAcc = getAccessible("emptyLink",
                                      [nsIAccessibleHyperLink]);
       testThis("emptyLink", EmptyHLAcc, ROLE_LINK, 1, null, true, 93, 94);
       testStates(EmptyHLAcc, (STATE_FOCUSABLE | STATE_LINKED), 0);
       testAction("emptyLink", EmptyHLAcc, "jump");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // normal hyperlink with embedded span
       var hyperlinkWithSpanAcc = getAccessible("LinkWithSpan",
                                                [nsIAccessibleHyperLink]);
       testThis("LinkWithSpan", hyperlinkWithSpanAcc, ROLE_LINK, 1,
                "Heise Online", true, 119, 120);
       is(hyperlinkWithSpanAcc.getURI(0).spec, "http://www.heise.de/",
          "URI wrong for hyperlinkElementWithSpan!");
       testStates(hyperlinkWithSpanAcc, STATE_LINKED, 0);
       testAction("LinkWithSpan", hyperlinkWithSpanAcc, "jump");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Named anchor, should never have state_linked
       var namedAnchorAcc = getAccessible("namedAnchor",
                                          [nsIAccessibleHyperLink]);
       testThis("namedAnchor", namedAnchorAcc, ROLE_LINK, 1,
                "This should never be of state_linked", true, 196, 197);
       testStates(namedAnchorAcc, STATE_SELECTABLE,
                  0, (STATE_FOCUSABLE | STATE_LINKED));
       testAction("namedAnchor", namedAnchorAcc, "");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // No link (hasn't any attribute), should never have state_linked
       var noLinkAcc = getAccessible("noLink",
                                     [nsIAccessibleHyperLink]);
       testThis("noLink", noLinkAcc, ROLE_LINK, 1,
                "This should never be of state_linked", true, 254, 255);
       testStates(noLinkAcc, 0, 0, (STATE_FOCUSABLE | STATE_LINKED));
       testAction("noLink", noLinkAcc, "");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Link with registered 'click' event, should have state_linked
       var linkWithClickAcc = getAccessible("linkWithClick",
                                            [nsIAccessibleHyperLink]);
       testThis("linkWithClick", linkWithClickAcc, ROLE_LINK, 1,
                "This should have state_linked", true, 292, 293);
       testStates(linkWithClickAcc, STATE_LINKED, 0);
       testAction("linkWithClick", linkWithClickAcc, "click");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Maps to group links (bug 431615).
       // var linksMapAcc = getAccessible("linksmap");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Link with title attribute, no name from the subtree (bug 438325).
       var id = "linkWithTitleNoNameFromSubtree";
       var linkAcc = getAccessible(id, [nsIAccessibleHyperLink]);
       testThis(id, linkAcc, ROLE_LINK, 1, "Link with title", true, 344, 345);
       testStates(linkAcc, STATE_LINKED, 0);
       testAction(id, linkAcc, "jump");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Link with title attribute, name from the subtree - onscreen name
       // (bug 438325).
       id = "linkWithTitleNameFromSubtree";
       linkAcc = getAccessible(id, [nsIAccessibleHyperLink]);
       testThis(id, linkAcc, ROLE_LINK, 1, "the name from subtree", true, 393,
                394);
       testStates(linkAcc, STATE_LINKED, 0);
       testAction(id, linkAcc, "jump");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Link with title attribute, name from the nested html:img (bug 438325).
       id = "linkWithTitleNameFromImg";
       linkAcc = getAccessible(id, [nsIAccessibleHyperLink]);
       testThis(id, linkAcc, ROLE_LINK, 1, "The title for link", true, 447,
                448);
       testStates(linkAcc, STATE_LINKED, 0);
       testAction(id, linkAcc, "jump");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Text accessible shouldn't implement nsIAccessibleHyperLink
       var res = isAccessible(getNode("namedAnchor").firstChild,
                              [nsIAccessibleHyperLink]);
       ok(!res, "Text accessible shouldn't implement nsIAccessibleHyperLink");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Test focus
       gQueue = new eventQueue();
 
       gQueue.push(new focusLink("NormalHyperlink", true));
       gQueue.push(new focusLink("AriaHyperlink", true));
       gQueue.push(new focusLink("InvalidAriaHyperlink", false));
       gQueue.push(new focusLink("LinkWithSpan", true));
 
--- a/accessible/tests/mochitest/hypertext/test_general.html
+++ b/accessible/tests/mochitest/hypertext/test_general.html
@@ -36,17 +36,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 
       var linkIndex = gParagraphAcc.getLinkIndex(linkAcc);
       is(linkIndex, aExpectedLinkIndex, "Wrong link index for " + aID + "!");
 
       // Just test the link's name to make sure we get the right one.
       is(linkAcc.getAnchor(0).name, aName, "Wrong name for " + aID + "!");
     }
 
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
     function doPreTest()
     {
       waitForImageMap("imgmap", doTest);
     }
 
     function doTest()
     {
       // Test link count
--- a/accessible/tests/mochitest/hypertext/test_update.html
+++ b/accessible/tests/mochitest/hypertext/test_update.html
@@ -177,17 +177,17 @@
       }
 
       this.getID = function removeLastChild_getID()
       {
         return "Remove last child and try its embedded object";
       }
     }
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     var gQueue = null;
     function doTest()
     {
       gQueue = new eventQueue();
       gQueue.push(new addLinks("p1"));
       gQueue.push(new updateText("p2"));
       gQueue.push(new removeChild("div1","div2",
--- a/accessible/tests/mochitest/jsat/jsatcommon.js
+++ b/accessible/tests/mochitest/jsat/jsatcommon.js
@@ -1,13 +1,13 @@
 // A common module to run tests on the AccessFu module
 
 "use strict";
 
-/*global isDeeply, getMainChromeWindow, SimpleTest, SpecialPowers, Logger,
+/* global isDeeply, getMainChromeWindow, SimpleTest, SpecialPowers, Logger,
   AccessFu, Utils, addMessageListener, currentTabDocument, currentBrowser*/
 
 /**
   * A global variable holding an array of test functions.
   */
 var gTestFuncs = [];
 /**
   * A global Iterator for the array of test functions.
@@ -103,17 +103,17 @@ var AccessFuTest = {
     GestureSettings.dwellThreshold = this.dwellThreshold =
       this.originalDwellThreshold;
     GestureSettings.swipeMaxDuration = this.swipeMaxDuration =
       this.originalSwipeMaxDuration;
     GestureSettings.maxGestureResolveTimeout =
       this.maxGestureResolveTimeout =
       this.originalMaxGestureResolveTimeout;
     // Finish through idle callback to let AccessFu._disable complete.
-    SimpleTest.executeSoon(function () {
+    SimpleTest.executeSoon(function() {
       AccessFu.detach();
       SimpleTest.finish();
     });
   },
 
   nextTest: function AccessFuTest_nextTest() {
     var result = gIterator.next();
     if (result.done) {
@@ -161,17 +161,17 @@ var AccessFuTest = {
     // GestureSettings that causes intermittents.
     this.dwellThreshold = GestureSettings.dwellThreshold =
       GestureSettings.dwellThreshold * 10;
     this.swipeMaxDuration = GestureSettings.swipeMaxDuration =
       GestureSettings.swipeMaxDuration * 10;
     this.maxGestureResolveTimeout = GestureSettings.maxGestureResolveTimeout =
       GestureSettings.maxGestureResolveTimeout * 10;
 
-    SpecialPowers.pushPrefEnv({ "set": prefs }, function () {
+    SpecialPowers.pushPrefEnv({ "set": prefs }, function() {
       if (AccessFuTest._waitForExplicitFinish) {
         // Run all test functions asynchronously.
         AccessFuTest.nextTest();
       } else {
         // Run all test functions synchronously.
         gTestFuncs.forEach(testFunc => testFunc());
         AccessFuTest.finish();
       }
@@ -190,31 +190,31 @@ AccessFuContentTest.prototype = {
 
   start: function(aFinishedCallback) {
     Logger.logLevel = Logger.DEBUG;
     this.finishedCallback = aFinishedCallback;
     var self = this;
 
     // Get top content message manager, and set it up.
     this.mms = [Utils.getMessageManager(currentBrowser())];
-    this.setupMessageManager(this.mms[0], function () {
+    this.setupMessageManager(this.mms[0], function() {
       // Get child message managers and set them up
       var frames = currentTabDocument().querySelectorAll("iframe");
       if (frames.length === 0) {
         self.pump();
         return;
       }
 
       var toSetup = 0;
       for (var i = 0; i < frames.length; i++ ) {
         var mm = Utils.getMessageManager(frames[i]);
         if (mm) {
           toSetup++;
           self.mms.push(mm);
-          self.setupMessageManager(mm, function () {
+          self.setupMessageManager(mm, function() {
             if (--toSetup === 0) {
               // All message managers are loaded and ready to go.
               self.pump();
             }
           });
         }
       }
     });
@@ -232,36 +232,36 @@ AccessFuContentTest.prototype = {
         mm.removeMessageListener("AccessFu:Ready", this);
         mm.removeMessageListener("AccessFu:ContentStarted", this);
       }
     if (this.finishedCallback) {
       this.finishedCallback();
     }
   },
 
-  setupMessageManager:  function (aMessageManager, aCallback) {
+  setupMessageManager:  function(aMessageManager, aCallback) {
     function contentScript() {
-      addMessageListener("AccessFuTest:Focus", function (aMessage) {
+      addMessageListener("AccessFuTest:Focus", function(aMessage) {
         var elem = content.document.querySelector(aMessage.json.selector);
         if (elem) {
           if (aMessage.json.blur) {
             elem.blur();
           } else {
             elem.focus();
           }
         }
       });
     }
 
     aMessageManager.addMessageListener("AccessFu:Present", this);
     aMessageManager.addMessageListener("AccessFu:Input", this);
     aMessageManager.addMessageListener("AccessFu:CursorCleared", this);
     aMessageManager.addMessageListener("AccessFu:Focused", this);
     aMessageManager.addMessageListener("AccessFu:AriaHidden", this);
-    aMessageManager.addMessageListener("AccessFu:Ready", function () {
+    aMessageManager.addMessageListener("AccessFu:Ready", function() {
       aMessageManager.addMessageListener("AccessFu:ContentStarted", aCallback);
       aMessageManager.sendAsyncMessage("AccessFu:Start",
         { buildApp: "browser",
           androidSdkVersion: Utils.AndroidSdkVersion,
           logLevel: "DEBUG",
           inTest: true });
     });
 
@@ -473,17 +473,17 @@ var ContentMessages = {
 
   _granularityMap: {
     "character": 1, // MOVEMENT_GRANULARITY_CHARACTER
     "word": 2, // MOVEMENT_GRANULARITY_WORD
     "paragraph": 8 // MOVEMENT_GRANULARITY_PARAGRAPH
   }
 };
 
-function ExpectedMessage (aName, aOptions) {
+function ExpectedMessage(aName, aOptions) {
   this.name = aName;
   this.options = aOptions || {};
   this.json = {};
 }
 
 ExpectedMessage.prototype.lazyCompare = function(aReceived, aExpected, aInfo) {
   if (aExpected && !aReceived) {
     return [false, "Expected something but got nothing -- " + aInfo];
--- a/accessible/tests/mochitest/jsat/output.js
+++ b/accessible/tests/mochitest/jsat/output.js
@@ -24,17 +24,17 @@ function testContextOutput(expected, aAc
   var context = new PivotContext(accessible, oldAccessible);
   var output = aGenerator.genForContext(context);
 
   // Create a version of the output that has null members where we have
   // null members in the expected output. Those are indexes that are not testable
   // because of the changing nature of the test (different window names), or strings
   // that are inaccessible to us, like the title of parent documents.
   var masked_output = [];
-  for (var i=0; i < output.length; i++) {
+  for (var i = 0; i < output.length; i++) {
     if (expected[i] === null) {
       masked_output.push(null);
     } else {
       masked_output[i] = typeof output[i] === "string" ? output[i].trim() :
         output[i];
     }
   }
 
--- a/accessible/tests/mochitest/jsat/test_alive.html
+++ b/accessible/tests/mochitest/jsat/test_alive.html
@@ -20,30 +20,30 @@
       // Start AccessFu via pref.
       SpecialPowers.pushPrefEnv({"set": [["accessibility.accessfu.activate", 1]]});
     }
 
     // Listen for 'EventManager.stop' and enable AccessFu again.
     function settingsStart() {
       isnot(AccessFu._enabled, true, "AccessFu was disabled.");
       // XXX: Bug 978076 - test start with SettingsManager.
-      //navigator.mozSettings.createLock().set(
+      // navigator.mozSettings.createLock().set(
       //  {'accessibility.screenreader': false});
       AccessFuTest.once_log("EventManager.start", () => {
         ok(AccessFu._enabled, "AccessFu was enabled again.");
         AccessFuTest.nextTest();
       });
       AccessFu._enable();
     }
 
     // Make sure EventManager is started again.
     function settingsStop() {
       ok(AccessFu._enabled, "AccessFu was enabled again.");
       // XXX: Bug 978076 - test stop with SettingsManager.
-      //navigator.mozSettings.createLock().set(
+      // navigator.mozSettings.createLock().set(
       //  {'accessibility.screenreader': false});
       AccessFuTest.once_log("EventManager.stop", () => {
         isnot(AccessFu._enabled, "AccessFu was disabled.");
         AccessFuTest.finish();
       });
       AccessFu._disable();
     }
 
--- a/accessible/tests/mochitest/jsat/test_content_integration.html
+++ b/accessible/tests/mochitest/jsat/test_content_integration.html
@@ -21,17 +21,17 @@
   <script type="application/javascript" src="jsatcommon.js"></script>
 
   <script type="application/javascript">
     function doTest() {
       var doc = currentTabDocument();
       var iframe = doc.createElement("iframe");
       iframe.id = "iframe";
       iframe.mozbrowser = true;
-      iframe.addEventListener("mozbrowserloadend", function () {
+      iframe.addEventListener("mozbrowserloadend", function() {
       var contentTest = new AccessFuContentTest(
         [
           // Simple traversal forward
           [ContentMessages.simpleMoveNext,
            new ExpectedCursorChange(
             ["Traversal Rule test document", "Phone status bar"],
             { focused: "body" })],
           [ContentMessages.simpleMovePrevious, new ExpectedNoMove()],
@@ -295,31 +295,31 @@
           }, new ExpectedCursorChange(["Traversal Rule test document",
             "Home", {"string": "pushbutton"}])],
           [ContentMessages.simpleMoveNext,
             new ExpectedCursorChange(["banana", {"string": "pushbutton"}])]
           [ContentMessages.simpleMoveNext, new ExpectedNoMove()]
         ]);
 
         addA11yLoadEvent(function() {
-          contentTest.start(function () {
+          contentTest.start(function() {
             closeBrowserWindow();
             SimpleTest.finish();
           });
         }, doc.defaultView)
       });
       iframe.src = "data:text/html;charset=utf-8," + doc.defaultView.frameContents;
       doc.getElementById("appframe").appendChild(iframe);
     }
 
     SimpleTest.waitForExplicitFinish();
     addLoadEvent(
-      function () {
+      function() {
         openBrowserWindow(
-          function () {
+          function() {
             SpecialPowers.pushPrefEnv({
               "set": [
                 // TODO: remove this as part of bug 820712
                 ["network.disable.ipc.security", true],
 
 
                 ["dom.ipc.browser_frames.oop_by_default", true],
                 ["dom.mozBrowserFramesEnabled", true],
--- a/accessible/tests/mochitest/jsat/test_content_text.html
+++ b/accessible/tests/mochitest/jsat/test_content_text.html
@@ -257,26 +257,26 @@
         ]);
 
       const KEYBOARD_ECHO_SETTING = "accessibility.accessfu.keyboard_echo";
       function typeKey(key) {
         return function() { synthesizeKey(key, {}, currentTabWindow()); };
       }
 
       addA11yLoadEvent(function() {
-        textTest.start(function () {
+        textTest.start(function() {
           closeBrowserWindow();
           SimpleTest.finish();
         });
       }, doc.defaultView);
     }
 
     SimpleTest.waitForExplicitFinish();
     addLoadEvent(
-      function () {
+      function() {
         openBrowserWindow(
           doTest,
           getRootDirectory(window.location.href) + "doc_content_text.html");
         });
   </script>
 </head>
 <body id="body">
 
--- a/accessible/tests/mochitest/jsat/test_live_regions.html
+++ b/accessible/tests/mochitest/jsat/test_live_regions.html
@@ -325,17 +325,17 @@
       action: function action() {
         updateHTML("to_replace_text", "I am a replaced text");
       }
     }];
 
     function doTest() {
       AccessFuTest.addFunc(startAccessFu);
       tests.forEach(function addTest(test) {
-        AccessFuTest.addFunc(function () {
+        AccessFuTest.addFunc(function() {
           AccessFuTest.once(test.expected, AccessFuTest.nextTest);
           test.action();
         });
       });
       AccessFuTest.addFunc(stopAccessFu);
       AccessFuTest.waitForExplicitFinish();
       AccessFuTest.runTests();
     }
--- a/accessible/tests/mochitest/jsat/test_traversal.html
+++ b/accessible/tests/mochitest/jsat/test_traversal.html
@@ -140,17 +140,17 @@
                               "button-2-1", "button-2-2", "button-2-3",
                               "button-2-4", "link-0", "checkbox-1-5",
                               "link-1", "link-2", "link-3", "switch-1"]);
 
       gQueue.invoke();
     }
 
     SimpleTest.waitForExplicitFinish();
-    addLoadEvent(function () {
+    addLoadEvent(function() {
       /* We open a new browser because we need to test with a top-level content
          document. */
       openBrowserWindow(
         doTest,
         getRootDirectory(window.location.href) + "doc_traversal.html");
     });
   </script>
 </head>
--- a/accessible/tests/mochitest/jsat/test_traversal_helper.html
+++ b/accessible/tests/mochitest/jsat/test_traversal_helper.html
@@ -86,17 +86,17 @@
       testTraversalHelper("Section",
         ["heading-1", "heading-2", "heading-3",
          "heading-5", "link-1", "statusbar-1"]);
 
       SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
-    addLoadEvent(function () {
+    addLoadEvent(function() {
       /* We open a new browser because we need to test with a top-level content
          document. */
       openBrowserWindow(
         doTest,
         getRootDirectory(window.location.href) + "doc_traversal.html");
     });
   </script>
 </head>
--- a/accessible/tests/mochitest/layout.js
+++ b/accessible/tests/mochitest/layout.js
@@ -92,17 +92,17 @@ function getChildAtPoint(aIdentifier, aX
 
   var x = screenX + aX;
   var y = screenY + aY;
 
   try {
     if (aFindDeepestChild)
       return acc.getDeepestChildAtPoint(x, y);
     return acc.getChildAtPoint(x, y);
-  } catch (e) {  }
+  } catch (e) { }
 
   return null;
 }
 
 /**
  * Test the accessible position.
  */
 function testPos(aID, aPoint)
--- a/accessible/tests/mochitest/name/markup.js
+++ b/accessible/tests/mochitest/name/markup.js
@@ -1,37 +1,37 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Name tests described by "markuprules.xml" file.
 
 var gNameRulesFileURL = "markuprules.xml";
 
 var gRuleDoc = null;
 
 // Debuggin stuff.
 var gDumpToConsole = false;
 
 /**
  * Start name tests. Run through markup elements and test names for test
  * element (see namerules.xml for details).
  */
 function testNames()
 {
-  //enableLogging("tree,stack"); // debugging
+  // enableLogging("tree,stack"); // debugging
 
   var request = new XMLHttpRequest();
   request.open("get", gNameRulesFileURL, false);
   request.send();
 
   gRuleDoc = request.responseXML;
 
   var markupElms = evaluateXPath(gRuleDoc, "//rules/rulesample/markup");
   gTestIterator.iterateMarkups(markupElms);
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private section.
 
 /**
  * Helper class to interate through name tests.
  */
 var gTestIterator =
 {
   iterateMarkups: function gTestIterator_iterateMarkups(aMarkupElms)
@@ -68,17 +68,17 @@ var gTestIterator =
       var defaultName = this.ruleSetElm.hasAttribute("defaultName") ?
         this.ruleSetElm.getAttribute("defaultName") : null;
       testName(this.elm, defaultName,
                "Default name test (" + gTestIterator.testID + "). ");
       testAbsentAttrs(this.elm, {"explicit-name": "true"});
 
       this.markupIdx++;
       if (this.markupIdx == this.markupElms.length) {
-        //disableLogging("tree"); // debugging
+        // disableLogging("tree"); // debugging
         SimpleTest.finish();
         return;
       }
 
       this.ruleIdx = -1;
 
       if (gDumpToConsole) {
         dump("\nPend next markup processing. Wait for reorder event on " +
@@ -163,33 +163,33 @@ function testNamesForMarkupRules(aMarkup
 /**
  * Test name for current rule and current 'markup' element. Used by
  * testNamesForMarkup function.
  */
 function testNameForRule(aElm, aRuleElm)
 {
   if (aRuleElm.hasAttribute("attr")) {
     if (gDumpToConsole) {
-      dump("\nProcessing rule { attr: " + aRuleElm.getAttribute("attr") +" }\n");
+      dump("\nProcessing rule { attr: " + aRuleElm.getAttribute("attr") + " }\n");
     }
 
     testNameForAttrRule(aElm, aRuleElm);
 
   } else if (aRuleElm.hasAttribute("elm")) {
     if (gDumpToConsole) {
       dump("\nProcessing rule { elm: " + aRuleElm.getAttribute("elm") +
-           ", elmattr: " + aRuleElm.getAttribute("elmattr") +" }\n");
+           ", elmattr: " + aRuleElm.getAttribute("elmattr") + " }\n");
     }
 
     testNameForElmRule(aElm, aRuleElm);
 
   } else if (aRuleElm.getAttribute("fromsubtree") == "true") {
     if (gDumpToConsole) {
       dump("\nProcessing rule { fromsubtree: " +
-           aRuleElm.getAttribute("fromsubtree") +" }\n");
+           aRuleElm.getAttribute("fromsubtree") + " }\n");
     }
 
     testNameForSubtreeRule(aElm, aRuleElm);
   }
 }
 
 function testNameForAttrRule(aElm, aRule)
 {
--- a/accessible/tests/mochitest/name/test_general.html
+++ b/accessible/tests/mochitest/name/test_general.html
@@ -20,33 +20,33 @@
       // aria-label
 
       // Simple label provided via ARIA
       testName("btn_simple_aria_label", "I am a button");
 
       // aria-label and aria-labelledby, expect aria-labelledby
       testName("btn_both_aria_labels", "text I am a button, two");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // aria-labelledby
     
       // Single relation. The value of 'aria-labelledby' contains the ID of
       // an element. Gets the name from text node of that element.
       testName("btn_labelledby_text", "text");
 
       // Multiple relations. The value of 'aria-labelledby' contains the IDs
       // of elements. Gets the name from text nodes of those elements.
       testName("btn_labelledby_texts", "text1 text2");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Name from named accessible
 
       testName("input_labelledby_namedacc", "Data");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Name from subtree (single relation labelled_by).
     
       // Gets the name from text nodes contained by nested elements
       testName("btn_labelledby_mixed", "nomore text");
 
       // Gets the name from text nodes contained by nested elements, ignores
       // hidden elements (bug 443081).
       testName("btn_labelledby_mixed_hidden_child", "nomore text2");
@@ -92,17 +92,17 @@
       testName("from_input_ignoretitle", "Custom country");
 
       // Insert spaces around the control's value to not jamm sibling text nodes
       testName("insert_spaces_around_control", "start value end");
 
       // Gets the name from @title, ignore whitespace content
       testName("from_label_ignore_ws_subtree", "about");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // label element
 
       // The label element contains the button. The name is calculated from
       // this button.
       // Note: the name contains the content of the button.
       testName("btn_label_inside", "text10text");
 
       // The label element and the button are placed in the same form. Gets
@@ -120,17 +120,17 @@
       // Multiple label elements for single button
       testName("btn_label_multi", "label1label2");
 
       // Multiple controls inside a label element
       testName("ctrl_in_label_1", "Enable a button control");
       testName("ctrl_in_label_2", "button");
 
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // name from children
 
       // ARIA role button is presented allowing the name calculation from
       // children.
       testName("btn_children", "14");
 
       // html:button, no name from content
       testName("btn_nonamefromcontent", null);
@@ -144,46 +144,46 @@
       testName("tablemenuitem", "menuitem 1");
 
       // Get the name from child acronym title attribute rather than from
       // acronym content.
       testName("label_with_acronym", "O A T F World Wide Web");
 
       testName("testArticle", "Test article");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // title attribute
 
       // If nothing is left. Let's try title attribute.
       testName("btn_title", "title");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // textarea name
 
       // textarea's name should have the value, which initially is specified by
       // a text child.
       testName("textareawithchild", "Story Foo is ended.");
 
       // new textarea name should reflect the value change.
       var elem = document.getElementById("textareawithchild");
       elem.value = "Bar";
 
       testName("textareawithchild", "Story Bar is ended.");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // controls having a value used as a part of computed name
 
       testName("ctrlvalue_progressbar:input", "foo 5 baz");
       testName("ctrlvalue_scrollbar:input", "foo 5 baz");
       testName("ctrlvalue_slider:input", "foo 5 baz");
       testName("ctrlvalue_spinbutton:input", "foo 5 baz");
       testName("ctrlvalue_combobox:input", "foo 5 baz");
 
 
-      /////////////////////////////////////////////////////////////////////////
+      // ///////////////////////////////////////////////////////////////////////
       // label with nested combobox (test for 'f' item of name computation guide)
 
       testName("comboinstart", "One day(s).");
       testName("combo3", "day(s).");
 
       testName("textboxinstart", "Two days.");
       testName("textbox1", "days.");
 
@@ -210,17 +210,17 @@
       testName("ph_textarea2", "a label");
       testName("ph_text3", "a label");
 
       // Test equation image
       testName("img_eq", "x^2 + y^2 + z^2")
       testName("input_img_eq", "x^2 + y^2 + z^2")
       testName("txt_eq", "x^2 + y^2 + z^2")
 
-      ////////////////////////////////////////////////////////////////////////
+      // //////////////////////////////////////////////////////////////////////
       // tests for duplicate announcement of content
 
       testName("test_note", null);
 
       SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
--- a/accessible/tests/mochitest/name/test_markup.html
+++ b/accessible/tests/mochitest/name/test_markup.html
@@ -18,18 +18,18 @@
   <script type="application/javascript"
           src="../attributes.js"></script>
 
   <script type="application/javascript"
           src="markup.js"></script>
 
   <script type="application/javascript">
     // gA11yEventDumpID = "eventdump";
-    //gDumpToConsole = true;
-    //gA11yEventDumpToConsole = true;
+    // gDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(testNames);
   </script>
 
 </head>
 
 <body>
--- a/accessible/tests/mochitest/pivot.js
+++ b/accessible/tests/mochitest/pivot.js
@@ -1,26 +1,26 @@
 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Constants
 
 const PREFILTER_INVISIBLE = nsIAccessibleTraversalRule.PREFILTER_INVISIBLE;
 const PREFILTER_ARIA_HIDDEN = nsIAccessibleTraversalRule.PREFILTER_ARIA_HIDDEN;
 const PREFILTER_TRANSPARENT = nsIAccessibleTraversalRule.PREFILTER_TRANSPARENT;
 const FILTER_MATCH = nsIAccessibleTraversalRule.FILTER_MATCH;
 const FILTER_IGNORE = nsIAccessibleTraversalRule.FILTER_IGNORE;
 const FILTER_IGNORE_SUBTREE = nsIAccessibleTraversalRule.FILTER_IGNORE_SUBTREE;
 const CHAR_BOUNDARY = nsIAccessiblePivot.CHAR_BOUNDARY;
 const WORD_BOUNDARY = nsIAccessiblePivot.WORD_BOUNDARY;
 
 const NS_ERROR_NOT_IN_TREE = 0x80780026;
 const NS_ERROR_INVALID_ARG = 0x80070057;
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Traversal rules
 
 /**
  * Rule object to traverse all focusable nodes and text nodes.
  */
 var HeadersTraversalRule =
 {
   getMatchRoles: function(aRules)
@@ -64,17 +64,17 @@ var ObjectTraversalRule =
       rv = FILTER_MATCH;
 
     return rv;
   },
 
   QueryInterface: XPCOMUtils.generateQI([nsIAccessibleTraversalRule])
 };
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Virtual state invokers and checkers
 
 /**
  * A checker for virtual cursor changed events.
  */
 function VCChangedChecker(aDocAcc, aIdOrNameOrAcc, aTextOffsets, aPivotMoveMethod,
                           aIsFromUserInput)
 {
@@ -413,17 +413,17 @@ function queueTraversalSequence(aQueue, 
     var invoker =
       new setVCPosInvoker(aDocAcc, "moveNext", aRule, aSequence[i]);
     aQueue.push(invoker);
   }
 
   // No further more matches for given rule, expect no virtual cursor changes.
   aQueue.push(new setVCPosInvoker(aDocAcc, "moveNext", aRule, false));
 
-  for (var i = aSequence.length-2; i >= 0; i--) {
+  for (var i = aSequence.length - 2; i >= 0; i--) {
     var invoker =
       new setVCPosInvoker(aDocAcc, "movePrevious", aRule, aSequence[i]);
     aQueue.push(invoker);
   }
 
   // No previous more matches for given rule, expect no virtual cursor changes.
   aQueue.push(new setVCPosInvoker(aDocAcc, "movePrevious", aRule, false));
 
--- a/accessible/tests/mochitest/pivot/test_virtualcursor.html
+++ b/accessible/tests/mochitest/pivot/test_virtualcursor.html
@@ -102,17 +102,17 @@
                                       false));
       // Next item shoud be outside of that subtree
       gQueue.push(new setVCPosInvoker(docAcc, "moveNext", ObjectTraversalRule, "An "));
 
       gQueue.invoke();
     }
 
     SimpleTest.waitForExplicitFinish();
-    addLoadEvent(function () {
+    addLoadEvent(function() {
       /* We open a new browser because we need to test with a top-level content
          document. */
       openBrowserWindow(
         doTest,
         getRootDirectory(window.location.href) + "doc_virtualcursor.html");
     });
   </script>
 </head>
--- a/accessible/tests/mochitest/pivot/test_virtualcursor_text.html
+++ b/accessible/tests/mochitest/pivot/test_virtualcursor_text.html
@@ -214,17 +214,17 @@
       gQueue.push(new setVCPosInvoker(docAcc, null, null,
                                       getAccessible(doc.getElementById("start-block"))));
       gQueue.push(new setVCTextInvoker(docAcc, "movePreviousByText", WORD_BOUNDARY, null, false));
 
       gQueue.invoke();
     }
 
     SimpleTest.waitForExplicitFinish();
-    addLoadEvent(function () {
+    addLoadEvent(function() {
       /* We open a new browser because we need to test with a top-level content
          document. */
       openBrowserWindow(
         doTest,
         getRootDirectory(window.location.href) + "doc_virtualcursor_text.html");
     });
   </script>
 </head>
--- a/accessible/tests/mochitest/relations.js
+++ b/accessible/tests/mochitest/relations.js
@@ -1,9 +1,9 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Constants
 
 var RELATION_CONTROLLED_BY = nsIAccessibleRelation.RELATION_CONTROLLED_BY;
 var RELATION_CONTROLLER_FOR = nsIAccessibleRelation.RELATION_CONTROLLER_FOR;
 var RELATION_DEFAULT_BUTTON = nsIAccessibleRelation.RELATION_DEFAULT_BUTTON;
 var RELATION_DESCRIBED_BY = nsIAccessibleRelation.RELATION_DESCRIBED_BY;
 var RELATION_DESCRIPTION_FOR = nsIAccessibleRelation.RELATION_DESCRIPTION_FOR;
 var RELATION_EMBEDDED_BY = nsIAccessibleRelation.RELATION_EMBEDDED_BY;
@@ -21,17 +21,17 @@ var RELATION_SUBWINDOW_OF = nsIAccessibl
 var RELATION_CONTAINING_DOCUMENT = nsIAccessibleRelation.RELATION_CONTAINING_DOCUMENT;
 var RELATION_CONTAINING_TAB_PANE = nsIAccessibleRelation.RELATION_CONTAINING_TAB_PANE;
 var RELATION_CONTAINING_APPLICATION = nsIAccessibleRelation.RELATION_CONTAINING_APPLICATION;
 const RELATION_DETAILS = nsIAccessibleRelation.RELATION_DETAILS;
 const RELATION_DETAILS_FOR = nsIAccessibleRelation.RELATION_DETAILS_FOR;
 const RELATION_ERRORMSG = nsIAccessibleRelation.RELATION_ERRORMSG;
 const RELATION_ERRORMSG_FOR = nsIAccessibleRelation.RELATION_ERRORMSG_FOR;
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // General
 
 /**
  * Test the accessible relation.
  *
  * @param aIdentifier          [in] identifier to get an accessible, may be ID
  *                             attribute or DOM element or accessible object
  * @param aRelType             [in] relation type (see constants above)
@@ -172,17 +172,17 @@ function getRelationByType(aIdentifier, 
     relation = acc.getRelationByType(aRelType);
   } catch (e) {
     ok(false, "Can't get" + getRelationErrorMsg(aIdentifier, aRelType));
   }
 
   return relation;
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private implementation details
 
 function getRelationErrorMsg(aIdentifier, aRelType, aIsStartSentence)
 {
   var relStr = relationTypeToString(aRelType);
   var msg = aIsStartSentence ? "Relation of '" : " relation of '";
   msg += relStr + "' type for '" + prettyName(aIdentifier) + "'";
   msg += aIsStartSentence ? " " : ".";
--- a/accessible/tests/mochitest/relations/test_ui_modalprompt.html
+++ b/accessible/tests/mochitest/relations/test_ui_modalprompt.html
@@ -60,17 +60,17 @@
       }
 
       this.getID = function showAlert_getID()
       {
         return "show alert";
       }
     }
 
-    //gA11yEventDumpToConsole = true; // debug
+    // gA11yEventDumpToConsole = true; // debug
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
       gQueue.push(new showAlert());
       gQueue.onFinish = function()
       {
--- a/accessible/tests/mochitest/relations/test_update.html
+++ b/accessible/tests/mochitest/relations/test_update.html
@@ -118,17 +118,17 @@
       }
 
       this.getID = function recreateRelatives_getID()
       {
         return "recreate relatives ";
       }
     }
 
-    //gA11yEventDumpToConsole = true; // debug
+    // gA11yEventDumpToConsole = true; // debug
 
     var gQueue = null;
 
     function doTest()
     {
       // Relation updates on ARIA attribute changes.
       testRelated("aria-labelledby",
                   RELATION_LABELLED_BY, RELATION_LABEL_FOR,
--- a/accessible/tests/mochitest/role.js
+++ b/accessible/tests/mochitest/role.js
@@ -1,9 +1,9 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Role constants
 
 const ROLE_ALERT = nsIAccessibleRole.ROLE_ALERT;
 const ROLE_ARTICLE = nsIAccessibleRole.ROLE_ARTICLE;
 const ROLE_ANIMATION = nsIAccessibleRole.ROLE_ANIMATION;
 const ROLE_APPLICATION = nsIAccessibleRole.ROLE_APPLICATION;
 const ROLE_APP_ROOT = nsIAccessibleRole.ROLE_APP_ROOT;
 const ROLE_AUTOCOMPLETE = nsIAccessibleRole.ROLE_AUTOCOMPLETE;
@@ -120,17 +120,17 @@ const ROLE_TEXT = nsIAccessibleRole.ROLE
 const ROLE_TEXT_CONTAINER = nsIAccessibleRole.ROLE_TEXT_CONTAINER;
 const ROLE_TEXT_LEAF = nsIAccessibleRole.ROLE_TEXT_LEAF;
 const ROLE_TOGGLE_BUTTON = nsIAccessibleRole.ROLE_TOGGLE_BUTTON;
 const ROLE_TOOLBAR = nsIAccessibleRole.ROLE_TOOLBAR;
 const ROLE_TOOLTIP = nsIAccessibleRole.ROLE_TOOLTIP;
 const ROLE_TREE_TABLE = nsIAccessibleRole.ROLE_TREE_TABLE;
 const ROLE_WHITESPACE = nsIAccessibleRole.ROLE_WHITESPACE;
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Public methods
 
 /**
  * Test that the role of the given accessible is the role passed in.
  *
  * @param aAccOrElmOrID  the accessible, DOM element or ID to be tested.
  * @param aRole  The role that is to be expected.
  */
--- a/accessible/tests/mochitest/role/test_aria.html
+++ b/accessible/tests/mochitest/role/test_aria.html
@@ -116,43 +116,43 @@
         var accessibleTable = getAccessible(id, [nsIAccessibleTable], null,
                                             DONOTFAIL_IF_NO_INTERFACE);
         ok(!!accessibleTable, "landmarked table should have nsIAccessibleTable");
     
         if (accessibleTable)
           is(accessibleTable.getCellAt(0,0).firstChild.name, "hi", "no cell");
       }
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // test gEmptyRoleMap
       testRole("buttontable_row", ROLE_NOTHING);
       testRole("buttontable_cell", ROLE_NOTHING);
 
       // abstract roles
       var abstract_roles = ["composite", "landmark", "structure", "widget",
                             "window", "input", "range", "select", "section",
                             "sectionhead"];
       for (a in abstract_roles)
         testRole(abstract_roles[a], ROLE_SECTION);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // roles transformed by ARIA state attributes
       testRole("togglebutton", ROLE_TOGGLE_BUTTON);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ignore unknown roles, take first known
       testRole("unknown_roles", ROLE_PUSHBUTTON);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // misc roles
       testRole("note", ROLE_NOTE);
       testRole("scrollbar", ROLE_SCROLLBAR);
       testRole("dir", ROLE_LIST);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // test document role map update
       var testDoc = getAccessible(document, [nsIAccessibleDocument]);
       testRole(testDoc, ROLE_DOCUMENT);
       document.body.setAttribute("role", "application");
       testRole(testDoc, ROLE_APPLICATION);
 
       // Test equation image
       testRole("img_eq", ROLE_FLAT_EQUATION);
--- a/accessible/tests/mochitest/selectable/test_aria.html
+++ b/accessible/tests/mochitest/selectable/test_aria.html
@@ -31,35 +31,35 @@
       testSelectableSelection(acc, aSelectableChildren);
 
       acc.unselectAll();
       testSelectableSelection(acc, []);
     }
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // role="tablist"
 
       id = "tablist";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       testSelectableSelection(id, [ ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // role="listbox"
 
       id = "listbox1";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       testSelectableSelection(id, [ ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // role="listbox" aria-multiselectable
 
       id = "listbox2";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       testSelectableSelection(id, [ ]);
 
@@ -68,44 +68,44 @@
       testSelectableSelection(id, [ "listbox2_item1" ]);
       select.removeItemFromSelection(0);
       testSelectableSelection(id, [ ]);
       select.selectAll();
       testSelectableSelection(id, [ "listbox2_item1", "listbox2_item2" ]);
       select.unselectAll();
       testSelectableSelection(id, [ ]);
     
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // role="grid"
 
       id = "grid1";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       testSelectableSelection(id, [ ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // role="tree"
 
       id = "tree1";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       testSelectableSelection(id, [ ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // role="treegrid"
 
       id = "treegrid1";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       testSelectableSelection(id, [ ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // role="grid" aria-multiselectable, selectable children in subtree
 
       id = "grid2";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       testSelectable(id,
                      ["grid2_colhead1", "grid2_colhead2", "grid2_colhead3",
--- a/accessible/tests/mochitest/selectable/test_select.html
+++ b/accessible/tests/mochitest/selectable/test_select.html
@@ -19,17 +19,17 @@
           src="../states.js"></script>
   <script type="application/javascript"
           src="../selectable.js"></script>
 
   <script type="application/javascript">
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // select@size="1" aka combobox
 
       var id = "combobox";
       var combobox = getAccessible(id);
       var comboboxList = combobox.firstChild;
       ok(isAccessible(comboboxList, [nsIAccessibleSelectable]),
          "No selectable accessible for list of " + id);
 
@@ -49,17 +49,17 @@
       is(select.selectAll(), false,
          "No way to select all items in combobox '" + id + "'");
       testSelectableSelection(select, [ "cb1_item1" ], "selectAll: ");
 
       // doesn't change selection
       select.unselectAll();
       testSelectableSelection(select, [ "cb1_item1" ], "unselectAll: ");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // select@size="1" with optgroups
 
       id = "combobox2";
       combobox = getAccessible(id);
       comboboxList = combobox.firstChild;
       ok(isAccessible(comboboxList, [nsIAccessibleSelectable]),
          "No selectable accessible for list of " + id);
 
@@ -74,17 +74,17 @@
 
       is(select.selectAll(), false,
          "No way to select all items in combobox " + id + "'");
       testSelectableSelection(select, [ "cb2_item1" ]);
 
       select.unselectAll();
       testSelectableSelection(select, [ "cb2_item1" ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // select@size="4" aka single selectable listbox
 
       var id = "listbox";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       select = getAccessible(id, [nsIAccessibleSelectable]);
       testSelectableSelection(select, [ ]);
@@ -102,17 +102,17 @@
       is(select.selectAll(), false,
          "No way to select all items in single selectable listbox '" + id + "'");
       testSelectableSelection(select, [ ], "selectAll: ");
 
       // doesn't change selection
       select.unselectAll();
       testSelectableSelection(select, [ ], "unselectAll: ");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // select@size="4" with optgroups, single selectable
 
       id = "listbox2";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       select = getAccessible(id, [nsIAccessibleSelectable]);
       testSelectableSelection(select, [ ]);
@@ -125,17 +125,17 @@
 
       is(select.selectAll(), false,
          "No way to select all items in single selectable listbox " + id + "'");
       testSelectableSelection(select, [ ]);
 
       select.unselectAll();
       testSelectableSelection(select, [ ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // select@size="4" multiselect aka listbox
 
       id = "listbox3";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       select = getAccessible(id, [nsIAccessibleSelectable]);
       testSelectableSelection(select, [ ]);
@@ -149,17 +149,17 @@
       is(select.selectAll(), true,
          "All items in listbox '" + id + "' should be selected");
       testSelectableSelection(select, [ "lb3_item1", "lb3_item2"],
                               "selectAll: ");
 
       select.unselectAll();
       testSelectableSelection(select, [ ], "unselectAll: ");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // select@size="4" multiselect with optgroups
 
       var id = "listbox4";
       ok(isAccessible(id, [nsIAccessibleSelectable]),
          "No selectable accessible for " + id);
 
       select = getAccessible(id, [nsIAccessibleSelectable]);
       testSelectableSelection(select, [ ]);
--- a/accessible/tests/mochitest/states.js
+++ b/accessible/tests/mochitest/states.js
@@ -1,18 +1,18 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Helper functions for accessible states testing.
 //
 // requires:
 //   common.js
 //   role.js
 //
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // State constants
 
 // const STATE_BUSY is defined in common.js
 const STATE_CHECKED = nsIAccessibleStates.STATE_CHECKED;
 const STATE_CHECKABLE = nsIAccessibleStates.STATE_CHECKABLE;
 const STATE_COLLAPSED = nsIAccessibleStates.STATE_COLLAPSED;
 const STATE_DEFAULT = nsIAccessibleStates.STATE_DEFAULT;
 const STATE_EXPANDED = nsIAccessibleStates.STATE_EXPANDED;
@@ -51,17 +51,17 @@ const EXT_STATE_SINGLE_LINE = nsIAccessi
 const EXT_STATE_STALE = nsIAccessibleStates.EXT_STATE_STALE;
 const EXT_STATE_SUPPORTS_AUTOCOMPLETION =
   nsIAccessibleStates.EXT_STATE_SUPPORTS_AUTOCOMPLETION;
 const EXT_STATE_VERTICAL = nsIAccessibleStates.EXT_STATE_VERTICAL;
 
 const kOrdinalState = false;
 const kExtraState = 1;
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Test functions
 
 /**
  * Tests the states and extra states of the given accessible.
  * Also tests for unwanted states and extra states.
  * In addition, the function performs a few plausibility checks derived from the
  * sstates and extra states passed in.
  *
@@ -72,17 +72,17 @@ const kExtraState = 1;
  * @param aAbsentExtraState  Extra state bits that are not wanted.
  * @param aTestName          The test name.
  */
 function testStates(aAccOrElmOrID, aState, aExtraState, aAbsentState,
                     aAbsentExtraState, aTestName)
 {
   var [state, extraState] = getStates(aAccOrElmOrID);
   var role = getRole(aAccOrElmOrID);
-  var id = prettyName(aAccOrElmOrID) + (aTestName ? " [" + aTestName + "]": "");
+  var id = prettyName(aAccOrElmOrID) + (aTestName ? " [" + aTestName + "]" : "");
 
   // Primary test.
   if (aState) {
     isState(state & aState, aState, false,
             "wrong state bits for " + id + "!");
   }
 
   if (aExtraState)
@@ -184,33 +184,33 @@ function testStatesInSubtree(aAccOrElmOr
     // propagated.
     testStates(acc, aState, aExtraState, aAbsentState);
 
   // Iterate over its children to see if the state got propagated.
   var children = null;
   try {
     children = acc.children;
   } catch (e) {}
-  ok(children, "Could not get children for " + aAccOrElmOrID +"!");
+  ok(children, "Could not get children for " + aAccOrElmOrID + "!");
 
   if (children) {
     for (var i = 0; i < children.length; i++) {
       var childAcc = children.queryElementAt(i, nsIAccessible);
       testStatesInSubtree(childAcc, aState, aExtraState, aAbsentState);
     }
   }
 }
 
 /**
  * Fails if no defunct state on the accessible.
  */
 function testIsDefunct(aAccessible, aTestName)
 {
   var id = prettyName(aAccessible) + (aTestName ? " [" + aTestName + "]" : "");
-  var [/*state*/, extraState] = getStates(aAccessible);
+  var [/* state*/, extraState] = getStates(aAccessible);
   isState(extraState & EXT_STATE_DEFUNCT, EXT_STATE_DEFUNCT, true,
           "no defuct state for " + id + "!");
 }
 
 function getStringStates(aAccOrElmOrID)
 {
   var [state, extraState] = getStates(aAccOrElmOrID);
   return statesToString(state, extraState);
@@ -233,17 +233,17 @@ function getStates(aAccOrElmOrID)
  */
 function hasState(aAccOrElmOrID, aState, aExtraState)
 {
   var [state, exstate] = getStates(aAccOrElmOrID);
   return (aState ? state & aState : true) &&
     (aExtraState ? exstate & aExtraState : true);
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private implementation details
 
 /**
  * Analogy of SimpleTest.is function used to compare states.
  */
 function isState(aState1, aState2, aIsExtraStates, aMsg)
 {
   if (aState1 == aState2) {
--- a/accessible/tests/mochitest/states/test_aria.html
+++ b/accessible/tests/mochitest/states/test_aria.html
@@ -42,17 +42,17 @@
         }
       }
 
       // Iterate over its children to see if the state got propagated.
       var children = null;
       try {
         children = acc.children;
       } catch (e) {}
-      ok(children, "Could not get children for " + aAccOrElmOrID +"!");
+      ok(children, "Could not get children for " + aAccOrElmOrID + "!");
 
       if (children) {
         for (var i = 0; i < children.length; i++) {
           var childAcc = children.queryElementAt(i, nsIAccessible);
           testAriaDisabledTree(childAcc);
         }
       }
     }
--- a/accessible/tests/mochitest/states/test_aria_imgmap.html
+++ b/accessible/tests/mochitest/states/test_aria_imgmap.html
@@ -14,17 +14,17 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-  //gA11yEventDumpToConsole = true;
+  // gA11yEventDumpToConsole = true;
   function doPreTest()
   {
     waitForImageMap("imagemap", doTest);
   }
 
   function doTest()
   {
     var imageMap = getAccessible("imagemap");
--- a/accessible/tests/mochitest/states/test_aria_widgetitems.html
+++ b/accessible/tests/mochitest/states/test_aria_widgetitems.html
@@ -63,21 +63,21 @@
       this.getID = function tabActiveDescendant_getID()
       {
         return "ARIA widget item managed by activedescendant " +
                 (aIsSelected ? "should" : "shouldn't") +
                 " have the selected state on " + prettyName(aItemID);
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       // aria-selected
       testStates("aria_tab1", 0, 0, STATE_SELECTED);
       testStates("aria_tab2", STATE_SELECTED);
--- a/accessible/tests/mochitest/states/test_doc_busy.html
+++ b/accessible/tests/mochitest/states/test_doc_busy.html
@@ -15,17 +15,17 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true; // debugging stuff
+    // gA11yEventDumpToConsole = true; // debugging stuff
 
     function loadFile()
     {
       var eventSeq = [
         new stateChangeChecker(STATE_BUSY, false, true, document, null, false, true),
         new stateChangeChecker(STATE_BUSY, false, false, document)
       ];
       defineScenario(this, eventSeq); // both events were fired
@@ -46,20 +46,20 @@
         return "load file: state busy change events on document";
       }
     }
 
     var gQueue = null;
     function doTest()
     {
       // State busy change event on file loading.
-      //enableLogging("docload"); // debugging
+      // enableLogging("docload"); // debugging
       gQueue = new eventQueue();
       gQueue.push(new loadFile());
-      //gQueue.onFinish = function() { disableLogging(); } // debugging
+      // gQueue.onFinish = function() { disableLogging(); } // debugging
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doTest);
   </script>
 </head>
 
--- a/accessible/tests/mochitest/states/test_frames.html
+++ b/accessible/tests/mochitest/states/test_frames.html
@@ -32,17 +32,17 @@
                  "test1: frameDoc");
       testStates(frameDocArticle, STATE_READONLY, 0, 0, 0,
                  "test1: frameDocArticle");
       testStates(frameDocCheckbox, 0, 0, STATE_READONLY, 0,
                  "test1: frameDocCheckbox");
       testStates(frameDocTextbox, 0, EXT_STATE_EDITABLE, STATE_READONLY, 0,
                  "test1: frameDocTextbox");
       frameDoc.designMode = "on";
-      testStates(frameDoc,  0, EXT_STATE_EDITABLE, STATE_READONLY, 0,
+      testStates(frameDoc, 0, EXT_STATE_EDITABLE, STATE_READONLY, 0,
                  "test2: frameDoc");
       testStates(frameDocArticle, STATE_READONLY, 0, 0, 0,
                  "test2: frameDocArticle");
       testStates(frameDocCheckbox, 0, 0, STATE_READONLY, 0,
                  "test2: frameDocCheckbox");
       testStates(frameDocTextbox, 0, EXT_STATE_EDITABLE, STATE_READONLY, 0,
                  "test2: frameDocTextbox");
 
--- a/accessible/tests/mochitest/states/test_inputs.html
+++ b/accessible/tests/mochitest/states/test_inputs.html
@@ -15,27 +15,27 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
   function doTest()
   {
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // 'editable' and 'multiline' states.
     testStates("input", 0, EXT_STATE_EDITABLE, 0, EXT_STATE_MULTI_LINE);
     testStates("textarea", 0, EXT_STATE_EDITABLE | EXT_STATE_MULTI_LINE);
 
     testStates("input_readonly", 0, EXT_STATE_EDITABLE);
     testStates("input_disabled", 0, EXT_STATE_EDITABLE);
     testStates("textarea_readonly", 0, EXT_STATE_EDITABLE);
     testStates("textarea_disabled", 0, EXT_STATE_EDITABLE);
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // 'required', 'readonly' and 'unavailable' states.
     var maybe_required = ["input","search","radio","checkbox","textarea"];
     var never_required = ["submit","button","reset","image"];
 
     var i;
     for (i in maybe_required) {
       testStates(maybe_required[i],
                  STATE_FOCUSABLE, 0,
@@ -56,37 +56,37 @@
                  STATE_UNAVAILABLE, 0,
                  STATE_FOCUSABLE | STATE_READONLY | STATE_REQUIRED);
     }
 
     for (i in never_required) {
       testStates(never_required[i], 0, 0, STATE_REQUIRED | EXT_STATE_EDITABLE);
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // inherited 'unavailable' state
     testStates("f", STATE_UNAVAILABLE);
     testStates("f_input", STATE_UNAVAILABLE);
     testStates("f_input_disabled", STATE_UNAVAILABLE);
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // inherited from file control
     var fileBrowseButton = getAccessible("file").firstChild;
     testStates(fileBrowseButton, STATE_UNAVAILABLE | STATE_REQUIRED);
     // No states on the label.
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // 'invalid' state
     var invalid = ["pattern","email","url"];
     for (i in invalid) {
       testStates(invalid[i], STATE_INVALID);
       testStates(invalid[i] + "2", 0, 0, STATE_INVALID);
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // not 'invalid' state
     // (per spec, min/maxlength are always valid until interactively edited)
     var validInput = document.createElement("input");
     validInput.maxLength = "0";
     validInput.value = "a";
     ok(validInput.validity.valid,
        "input should be valid despite maxlength (no interactive edits)");
 
@@ -97,41 +97,41 @@
        "input should be valid despite minlength (no interactive edits)");
 
     var valid = ["minlength","maxlength"];
     for (i in valid) {
       testStates(valid[i], 0, 0, STATE_INVALID);
       testStates(valid[i] + "2", 0, 0, STATE_INVALID);
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // 'invalid' state
     // (per spec, min/maxlength validity is affected by interactive edits)
     var mininp = document.getElementById("minlength");
     mininp.focus();
     mininp.setSelectionRange(mininp.value.length, mininp.value.length);
     synthesizeKey("VK_BACK_SPACE", {});
     ok(!mininp.validity.valid,
        "input should be invalid after interactive edits");
     testStates(mininp, STATE_INVALID);
     // inputs currently cannot be made longer than maxlength interactively,
     // so we're not testing that case.
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // autocomplete states
     testStates("autocomplete-default", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
     testStates("autocomplete-off", 0, 0, 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
     testStates("autocomplete-formoff", 0, 0, 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
     testStates("autocomplete-list", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
     testStates("autocomplete-list2", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
     testStates("autocomplete-tel", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
     testStates("autocomplete-email", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
     testStates("autocomplete-search", 0, EXT_STATE_SUPPORTS_AUTOCOMPLETION);
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // haspopup
     testStates("autocomplete-list", STATE_HASPOPUP);
 
     SimpleTest.finish();
   }
 
   SimpleTest.waitForExplicitFinish();
   addA11yLoadEvent(doTest);
--- a/accessible/tests/mochitest/states/test_selects.html
+++ b/accessible/tests/mochitest/states/test_selects.html
@@ -46,17 +46,17 @@
       }
 
       this.getID = function openComboboxNCheckStates_getID()
       {
         return "open combobox and test states";
       }
     }
 
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
     function doTest()
     {
       // combobox
       var combobox = getAccessible("combobox");
       testStates(combobox,
                  STATE_HASPOPUP | STATE_COLLAPSED | STATE_FOCUSABLE, 0,
--- a/accessible/tests/mochitest/states/test_stale.html
+++ b/accessible/tests/mochitest/states/test_stale.html
@@ -75,17 +75,17 @@
       }
 
       this.getID = function removeChild_getID()
       {
         return "remove child from " + prettyName(aContainerID);
       }
     }
 
-    //gA11yEventDumpToConsole = true; //debugging
+    // gA11yEventDumpToConsole = true; //debugging
 
     var gQueue = null;
     function doTest()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new addChild("container"));
       gQueue.push(new removeChild("container"));
--- a/accessible/tests/mochitest/table.js
+++ b/accessible/tests/mochitest/table.js
@@ -321,28 +321,28 @@ function testTableIndexes(aIdentifier, a
           try {
             obtainedRowIdx = cellAcc.rowIndex;
           } catch (e) {
             ok(false,
                cellId + ": can't get row index of the cell at index " + idx + "," + e);
           }
 
           is(obtainedRowIdx, origRowIdx,
-             cellId + ": row for the cell at index " + idx +" is not correct");
+             cellId + ": row for the cell at index " + idx + " is not correct");
 
           // cell: getColumnIndex
           try {
             obtainedColIdx = cellAcc.columnIndex;
           } catch (e) {
             ok(false,
                cellId + ": can't get column index of the cell at index " + idx + "," + e);
           }
 
           is(obtainedColIdx, origColIdx,
-             id + ": column for the cell at index " + idx +" is not correct");
+             id + ": column for the cell at index " + idx + " is not correct");
         }
       }
 
       // getCellIndexAt
       try {
         obtainedIdx = tableAcc.getCellIndexAt(rowIdx, colIdx);
       } catch (e) {
         obtainedIdx = -1;
@@ -736,17 +736,17 @@ function testHeaderCells(aHeaderInfoMap)
         isObject(actualColHeaderCell, colHeaderCell,
                  "Wrong column header cell at index " + idx + " for the cell " +
                  dataCellIdentifier);
       }
     }
   }
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // private implementation
 
 /**
  * Return row and column of orig cell for the given spanned cell.
  */
 function getOrigRowAndColumn(aCellsArray, aRowIdx, aColIdx)
 {
   var cellState = aCellsArray[aRowIdx][aColIdx];
--- a/accessible/tests/mochitest/table/test_css_tables.html
+++ b/accessible/tests/mochitest/table/test_css_tables.html
@@ -13,17 +13,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
 
   <script type="application/javascript">
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // elements with display:table
 
       // only display:table
       var accTree =
         { SECTION: [
           { TEXT_LEAF: [ ] }
         ] };
       testAccessibleTree("table1", accTree);
--- a/accessible/tests/mochitest/table/test_headers_ariagrid.html
+++ b/accessible/tests/mochitest/table/test_headers_ariagrid.html
@@ -13,17 +13,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column and row headers from markup
 
       headerInfoMap = [
         {
           cell: "table_dc_1",
           rowHeaderCells: [ "table_rh_1" ],
           columnHeaderCells: [ "table_ch_2" ]
         },
@@ -52,17 +52,17 @@
           rowHeaderCells: [],
           columnHeaderCells: [ "table_ch_1" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column and row headers from markup for crazy grid.
 
       headerInfoMap = [
         {
           // not focusable cell (ARIAGridCellAccessible is used)
           cell: "table2_dc_1",
           rowHeaderCells: [],
           columnHeaderCells: [ "table2_ch_1" ]
@@ -73,17 +73,17 @@
           rowHeaderCells: [],
           columnHeaderCells: [ "table2_ch_2" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column and row headers from markup for one more crazy grid.
 
       headerInfoMap = [
         {
           // ARIAGridCellAccessible is used
           cell: "t3_dc_1",
           rowHeaderCells: [ "t3_rh_1" ],
           columnHeaderCells: [ ]
--- a/accessible/tests/mochitest/table/test_headers_ariatable.html
+++ b/accessible/tests/mochitest/table/test_headers_ariatable.html
@@ -13,17 +13,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column and row headers from markup
 
       headerInfoMap = [
         {
           cell: "table_dc_1",
           rowHeaderCells: [ "table_rh_1" ],
           columnHeaderCells: [ "table_ch_2" ]
         },
--- a/accessible/tests/mochitest/table/test_headers_table.html
+++ b/accessible/tests/mochitest/table/test_headers_table.html
@@ -13,17 +13,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column header from thead and row header from @scope inside of tfoot
 
       var headerInfoMap = [
         {
           cell: "table1_cell_1",
           rowHeaderCells: [],
           columnHeaderCells: [ "table1_weekday", "table1_date" ]
         },
@@ -56,17 +56,17 @@
           cell: "table1_cell_7",
           rowHeaderCells: [ "table1_total" ],
           columnHeaderCells: [ "table1_qty" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column and row headers from thead and @scope
 
       headerInfoMap = [
         {
           cell: "table2_cell_2",
           rowHeaderCells: [ "table2_rh_1" ],
           columnHeaderCells: [ "table2_ch_2" ]
         },
@@ -94,17 +94,17 @@
           cell: "table2_rh_2",
           rowHeaderCells: [],
           columnHeaderCells: [ "table2_ch_1" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column headers from @headers
 
       headerInfoMap = [
         {
           cell: "table3_cell_1",
           rowHeaderCells: [],
           columnHeaderCells: [ "table3_ch_1" ]
         },
@@ -112,56 +112,56 @@
           cell: "table3_cell_2",
           rowHeaderCells: [],
           columnHeaderCells: [ "table3_ch_2" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table consisted of one column
 
       headerInfoMap = [
         {
           cell: "table4_cell",
           rowHeaderCells: [],
           columnHeaderCells: [ "table4_ch" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table consisted of one row
 
       headerInfoMap = [
         {
           cell: "table5_cell",
           rowHeaderCells: [ "table5_rh" ],
           columnHeaderCells: [ ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // @headers points to table cells
 
       headerInfoMap = [
         {
           cell: "table6_cell",
           rowHeaderCells: [ "table6_rh" ],
           columnHeaderCells: [ "table6_ch" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // @scope="rowgroup" and @scope="row"
 
       headerInfoMap = [
         {
           cell: "t7_r1c1",
           rowHeaderCells: [ "t7_Mary", "t7_Females" ],
           columnHeaderCells: [ "t7_1km" ]
         },
@@ -219,17 +219,17 @@
           cell: "t7_r4c3",
           rowHeaderCells: [ "t7_Todd", "t7_Males" ],
           columnHeaderCells: [ "t7_10km" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // @scope="colgroup" and @scope="col"
 
       headerInfoMap = [
         {
           cell: "t8_r1c1",
           rowHeaderCells: [ "t8_1km" ],
           columnHeaderCells: [ "t8_Mary", "t8_Females" ]
         },
@@ -287,17 +287,17 @@
           cell: "t8_r3c4",
           rowHeaderCells: [ "t8_10km" ],
           columnHeaderCells: [ "t8_Todd", "t8_Males" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // spanned table header cells (v1), @headers define header order
 
       headerInfoMap = [
         {
           cell: "t9_r1c1",
           rowHeaderCells: [ "t9_females", "t9_mary" ],
           columnHeaderCells: [ "t9_1km" ]
         },
@@ -355,17 +355,17 @@
           cell: "t9_r4c3",
           rowHeaderCells: [ "t9_males", "t9_todd" ],
           columnHeaderCells: [ "t9_10km" ]
         }
       ];
 
       testHeaderCells(headerInfoMap);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // spanned table header cells (v2), @headers define header order
 
       headerInfoMap = [
         {
           cell: "t10_r1c1",
           rowHeaderCells: [ "t10_1km" ],
           columnHeaderCells: [ "t10_females", "t10_mary" ]
         },
--- a/accessible/tests/mochitest/table/test_indexes_ariagrid.html
+++ b/accessible/tests/mochitest/table/test_indexes_ariagrid.html
@@ -13,17 +13,17 @@
   <script type="application/javascript"
           src="../attributes.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA grid
       var idxes = [
         [0, 1, 2],
         [3, 4, 5],
         [6, 7, 8],
         [9, 10, 11]
       ];
       testTableIndexes("grid", idxes);
@@ -31,17 +31,17 @@
       idxes = [
         [0, 1, 2],
         [3, 4, 5],
         [6, 7, 8],
         [9, 10, 11]
       ];
       testTableIndexes("grid-rowgroups", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // a bit crazy ARIA grid
       idxes = [
         [0, 1],
         [2, 3]
       ];
       testTableIndexes("grid2", idxes);
 
       SimpleTest.finish();
--- a/accessible/tests/mochitest/table/test_indexes_table.html
+++ b/accessible/tests/mochitest/table/test_indexes_table.html
@@ -14,114 +14,114 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table
       var idxes = [
         [0, 1, 2],
         [3, 4, 5],
         [6, 7, 7],
         [6, 8, 9]
       ];
 
       testTableIndexes("table", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableborder
       idxes = [
         [0, 1, 2],
         [3, 4, 5],
         [6, 7, 7],
         [6, 8, 9]
       ];
 
       testTableIndexes("tableborder", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table
       var idxes = [
         [ 0,  1,  2,  2,  3,  4,  5,  6],
         [ 7,  8,  9, 10, 11, 12, 13,  6],
         [14, 15, 15, 16, 17, 18, 19,  6],
         [20, 15, 15, 21, 22, 18, 23,  6]
       ];
 
       testTableIndexes("table2", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableinsane1 (empty row groups)
       idxes = [
         [0, 1, 2],
         [3, 4, 5],
         [6, 7, 7],
         [6, 8, 9]
       ];
 
       testTableIndexes("tableinsane1", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableinsane2 (empry rows)
       idxes = [
         [-1, -1, -1],
         [-1, -1, -1],
         [ 0,  1,  2]
       ];
 
       testTableIndexes("tableinsane2", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableinsane3 (cell holes)
       idxes = [
         [0, 1, -1],
         [2, 3,  4]
       ];
 
       testTableIndexes("tableinsane3", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableinsane3.2 (cell holes, row spans, fixed in bug 417912)
       idxes = [
         [0,  1, 2],
         [3, -1, 2],
         [4,  5, 2]
       ];
 
       testTableIndexes("tableinsane3.2", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableinsane4 (empty row groups/rows and cell holes)
       idxes = [
         [ 0,  1,  2],
         [-1, -1, -1],
         [ 3,  4,  5],
         [ 6,  6,  7],
         [ 8, -1,  7],
         [ 9,  9,  9]
       ];
       testTableIndexes("tableinsane4", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableinsane5 (just a crazy table)
       idxes = [
         [ 0,  1,  2, -1, -1],
         [-1, -1, -1, -1, -1],
         [ 3,  4,  5, -1, -1],
         [ 6,  7,  -1,  -1,  -1],
         [ 6,  8,  9, -1, -1],
         [ 6, 10,  9, 11, 12]
       ];
       testTableIndexes("tableinsane5", idxes);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tableinsane6 (overlapping cells, mad table)
       idxes = [
         [ 0,  1,  2, -1, -1],
         [-1, -1, -1, -1, -1],
         [ 3,  4,  5, -1, -1],
         [ 6,  6,  7, -1, -1],
         [ 8,  9,  7, -1, -1],
         [ 10, 9,  7, 11, 12]
--- a/accessible/tests/mochitest/table/test_sels_ariagrid.html
+++ b/accessible/tests/mochitest/table/test_sels_ariagrid.html
@@ -18,48 +18,48 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA grid
       var cellsArray =
       [
         [ true, true,  false, true],
         [ true, false, true,  true],
         [ true, false, false, true],
         [ true, true,  true,  true],
         [ true, true,  true,  true]
       ];
 
       testTableSelection("table", cellsArray);
       testUnselectTableColumn("table", 3, cellsArray);
       testUnselectTableRow("table", 3, cellsArray);
       testSelectTableColumn("table", 0, cellsArray);
       testSelectTableRow("table", 0, cellsArray);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // a bit crazy ARIA grid
       cellsArray =
       [
         [ false, false],
         [ false, false]
       ];
 
       testTableSelection("grid2", cellsArray);
       testSelectTableColumn("grid2", 0, cellsArray);
       testSelectTableRow("grid2", 0, cellsArray);
       testUnselectTableColumn("grid2", 0, cellsArray);
       testUnselectTableRow("grid2", 0, cellsArray);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA grid (column and row headers)
 
       cellsArray =
       [
         [ undefined, true, false],
         [ undefined, true, false]
       ];
 
--- a/accessible/tests/mochitest/table/test_sels_table.html
+++ b/accessible/tests/mochitest/table/test_sels_table.html
@@ -17,17 +17,17 @@
           src="../states.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="text/javascript">
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table
 
       var cellsArray =
       [
         [false, false,       false,       kColSpanned, false, false,       false, false],
         [false, false,       false,       false,       false, false,       false, kRowSpanned],
         [false, false,       kColSpanned, false,       false, false,       false, kRowSpanned],
         [false, kRowSpanned, kSpanned,    false,       false, kRowSpanned, false, kRowSpanned]
@@ -51,17 +51,17 @@
       for (var colIdx = 0; colIdx < columsCount; colIdx++) {
         testSelectTableColumn("table", colIdx, cellsArray);
         testUnselectTableColumn("table", colIdx, cellsArray);
       }
 
       var accTable = getAccessible("table", [nsIAccessibleTable]);
       ok(!accTable.isProbablyForLayout(), "table is not for layout");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table instane
 
       cellsArray =
       [
         [false,       false, false,       -1,          -1],
         [false,       false, false,       -1,          -1],
         [false,       false, kColSpanned, kColSpanned, -1],
         [kRowSpanned, false, false,       -1,          -1],
--- a/accessible/tests/mochitest/table/test_struct_ariagrid.html
+++ b/accessible/tests/mochitest/table/test_struct_ariagrid.html
@@ -14,46 +14,46 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Pure ARIA grid
       var cellsArray = [
         [kColHeaderCell, kColHeaderCell, kColHeaderCell],
         [kRowHeaderCell, kDataCell,      kDataCell],
         [kRowHeaderCell, kDataCell,      kDataCell]
       ];
 
       testTableStruct("table", cellsArray);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML table based ARIA grid
       cellsArray = [
         [kColHeaderCell, kColHeaderCell, kColHeaderCell],
         [kDataCell,      kDataCell,      kDataCell],
         [kDataCell,      kDataCell,      kDataCell]
       ];
 
       testTableStruct("grid", cellsArray);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA grid with HTML table elements
       cellsArray = [
         [kColHeaderCell, kColHeaderCell],
         [kDataCell,      kDataCell]
       ];
 
       testTableStruct("grid2", cellsArray);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA grid of wrong markup
       cellsArray = [ ];
       testTableStruct("grid3", cellsArray);
 
       cellsArray = [ [] ];
       testTableStruct("grid4", cellsArray);
 
       SimpleTest.finish();
--- a/accessible/tests/mochitest/table/test_struct_ariatreegrid.html
+++ b/accessible/tests/mochitest/table/test_struct_ariatreegrid.html
@@ -14,17 +14,17 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // HTML based ARIA tree grid
 
       var cellsArray = [
         [kColHeaderCell, kColHeaderCell, kColHeaderCell],
         [kDataCell,      kDataCell,      kDataCell],
         [kDataCell,      kDataCell,      kDataCell]
       ];
 
--- a/accessible/tests/mochitest/table/test_struct_table.html
+++ b/accessible/tests/mochitest/table/test_struct_table.html
@@ -14,53 +14,53 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../table.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // column headers from thead and tfoot
 
       cellsArray = [
         [kColHeaderCell, kColHeaderCell, kColSpanned],
         [kRowSpanned,    kColHeaderCell, kColHeaderCell],
         [kDataCell,      kDataCell,      kDataCell],
         [kColHeaderCell, kColHeaderCell, kColHeaderCell]
       ];
 
       testTableStruct("table1", cellsArray);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // row and column headers from thead and @scope
 
       var cellsArray = [
         [kColHeaderCell, kColHeaderCell, kColHeaderCell],
         [kRowHeaderCell, kDataCell, kDataCell],
         [kRowHeaderCell, kDataCell, kDataCell]
       ];
 
       testTableStruct("table2", cellsArray);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // caption and @summary
 
       cellsArray = [
         [kColHeaderCell, kColHeaderCell, kColHeaderCell, kColHeaderCell],
         [kRowHeaderCell, kDataCell,      kDataCell,      kDataCell],
         [kRowHeaderCell, kDataCell,      kDataCell,      kDataCell]
       ];
 
       testTableStruct("table3", cellsArray, kNoColumnHeader,
                       "Test Table",
                       "this is a test table for nsIAccessibleTable");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // row and column spans
 
       cellsArray = [
         [kDataCell, kDataCell,   kDataCell,   kColSpanned, kDataCell, kDataCell,   kDataCell, kDataCell],
         [kDataCell, kDataCell,   kDataCell,   kDataCell,   kDataCell, kDataCell,   kDataCell, kRowSpanned],
         [kDataCell, kDataCell,   kColSpanned, kDataCell,   kDataCell, kDataCell,   kDataCell, kRowSpanned],
         [kDataCell, kRowSpanned, kSpanned,    kDataCell,   kDataCell, kRowSpanned, kDataCell, kRowSpanned]
       ];
--- a/accessible/tests/mochitest/test_bug420863.html
+++ b/accessible/tests/mochitest/test_bug420863.html
@@ -20,28 +20,28 @@ https://bugzilla.mozilla.org/show_bug.cg
   <script type="application/javascript">
     var gClickHandler = null;
 
     function doTest()
     {
       // Actions should be exposed on any accessible having related DOM node
       // with registered 'click' event handler.
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // generic td
       var td1Acc = getAccessible("td1");
       if (!td1Acc) {
         SimpleTest.finish();
         return;
       }
 
       is(td1Acc.actionCount, 0,
            "Simple table cell shouldn't have any actions");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // one td with 'onclick' attribute and one with registered click handler
       var td3Node = getNode("td3");
 
       // register 'click' event handler
       gClickHandler = {
         handleEvent: function handleEvent(aEvent)
         {
         }
--- a/accessible/tests/mochitest/test_nsIAccessibleImage.html
+++ b/accessible/tests/mochitest/test_nsIAccessibleImage.html
@@ -97,17 +97,17 @@ https://bugzilla.mozilla.org/show_bug.cg
       testAttrs(acc, attributes, true);
 
       var actionCount = aActionCount || 0;
       is(acc.actionCount, actionCount,
          "Wrong number of actions for " + aID + "!");
       if (actionCount) {
         for (index = 0; index < aActionNames.length; index++) {
           is(acc.getActionName(index), aActionNames[index],
-             "Wrong action name for " + aID + ", index " + index +"!");
+             "Wrong action name for " + aID + ", index " + index + "!");
         }
       }
     }
 
     function doTest()
     {
       // Test non-linked image
       testThis("nonLinkedImage", "moz.png", 89, 38);
--- a/accessible/tests/mochitest/text.js
+++ b/accessible/tests/mochitest/text.js
@@ -1,9 +1,9 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Public
 
 const BOUNDARY_CHAR = nsIAccessibleText.BOUNDARY_CHAR;
 const BOUNDARY_WORD_START = nsIAccessibleText.BOUNDARY_WORD_START;
 const BOUNDARY_WORD_END = nsIAccessibleText.BOUNDARY_WORD_END;
 const BOUNDARY_LINE_START = nsIAccessibleText.BOUNDARY_LINE_START;
 const BOUNDARY_LINE_END = nsIAccessibleText.BOUNDARY_LINE_END;
 
@@ -320,17 +320,17 @@ function testWordAt(aElement, aWordIndex
     todo(false,
          "wrong start and end offset for word at index '" + aWordIndex + "': " +
          " of text '" + acc.getText(0, -1) + "' in " + prettyName(aElement));
 
     return;
   }
 
   text = acc.getText(startWordOffset, endWordOffset);
-  isFunc(text, aText,  "wrong text for word at index '" + aWordIndex + "': " +
+  isFunc(text, aText, "wrong text for word at index '" + aWordIndex + "': " +
          " of text '" + acc.getText(0, -1) + "' in " + prettyName(aElement));
 }
 
 /**
  * Test words in a element.
  *
  * @param aElement   [in]           element identifier
  * @param aWords     [in]           array of expected words
@@ -491,17 +491,17 @@ function testTextRange(aRange, aRangeDes
       var expectedChild = getAccessible(aChildren[i]);
       var actualChild = children.queryElementAt(i, nsIAccessible);
       isObject(actualChild, expectedChild,
                "Wrong child at index '" + i + "' of " + aRangeDescr);
     }
   }
 }
 
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Private
 
 function testTextSuperHelper(aFuncName, aArgs)
 {
   // List of tests.
   if (aArgs[2] instanceof Array) {
     var ids = (aArgs[0] instanceof Array) ? aArgs[0] : [ aArgs[0] ];
     var boundaryType = aArgs[1];
--- a/accessible/tests/mochitest/text/test_atcaretoffset.html
+++ b/accessible/tests/mochitest/text/test_atcaretoffset.html
@@ -18,27 +18,27 @@
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../text.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true; // debugging
+    // gA11yEventDumpToConsole = true; // debugging
 
     function traverseTextByLines(aQueue, aID, aLines)
     {
       var wholeText = "";
       for (var i = 0; i < aLines.length ; i++)
         wholeText += aLines[i][0] + aLines[i][1];
 
       var baseInvokerFunc = synthClick;
       var charIter = new charIterator(wholeText, aLines);
-      //charIter.debugOffset = 10; // enable to run tests at given offset only
+      // charIter.debugOffset = 10; // enable to run tests at given offset only
 
       while (charIter.next()) {
         aQueue.push(new tmpl_moveTo(aID, baseInvokerFunc, wholeText, charIter));
         baseInvokerFunc = synthRightKey;
       }
     }
 
     /**
--- a/accessible/tests/mochitest/text/test_charboundary.html
+++ b/accessible/tests/mochitest/text/test_charboundary.html
@@ -10,17 +10,17 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../text.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       //
       // __h__e__l__l__o__ __m__y__ __f__r__i__e__n__d__
       //  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
 
       var IDs = [ "i1", "d1", "e1", "t1" ];
 
       testCharBeforeOffset(IDs, 0, "", 0, 0);
       testCharBeforeOffset(IDs, 1, "h", 0, 1);
@@ -32,17 +32,17 @@
       testCharAtOffset(IDs, 14, "d", 14, 15);
       testCharAtOffset(IDs, 15, "", 15, 15);
 
       testCharAfterOffset(IDs, 0, "e", 1, 2);
       testCharAfterOffset(IDs, 1, "l", 2, 3);
       testCharAfterOffset(IDs, 14, "", 15, 15);
       testCharAfterOffset(IDs, 15, "", 15, 15);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       //
       // __B__r__a__v__e__ __S__i__r__ __ __R__o__b__i__n__ __ __ __r__a__n
       //  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21
 
       IDs = [ "i2", "d2", "e2", "t2" ];
 
       testCharBeforeOffset(IDs, 0, "", 0, 0);
       testCharBeforeOffset(IDs, 1, "B", 0, 1);
@@ -66,17 +66,17 @@
       testCharAfterOffset(IDs, 8, " ", 9, 10);
       testCharAfterOffset(IDs, 9, " ", 10, 11);
       testCharAfterOffset(IDs, 10, "R", 11, 12);
       testCharAfterOffset(IDs, 15, " ", 16, 17);
       testCharAfterOffset(IDs, 16, " ", 17, 18);
       testCharAfterOffset(IDs, 17, " ", 18, 19);
       testCharAfterOffset(IDs, 18, "r", 19, 20);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       //
       // __o__n__e__w__o__r__d__\n
       //  0  1  2  3  4  5  6  7
       // __\n
       //  8
       // __t__w__o__ __w__o__r__d__s__\n
       //  9 10 11 12 13 14 15 16 17 18
 
--- a/accessible/tests/mochitest/text/test_gettext.html
+++ b/accessible/tests/mochitest/text/test_gettext.html
@@ -10,32 +10,32 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../text.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       //
       // __h__e__l__l__o__ __m__y__ __f__r__i__e__n__d__
       //  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
 
       var IDs = [ "i1", "d1", "e1", "t1" ];
 
       testCharacterCount(IDs, 15);
 
       testText(IDs, 0, 1, "h");
       testText(IDs, 1, 3, "el");
       testText(IDs, 14, 15, "d");
       testText(IDs, 0, 15, "hello my friend");
       testText(IDs, 0, -1, "hello my friend");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       //
       // __B__r__a__v__e__ __S__i__r__ __ __R__o__b__i__n__ __ __ __r__a__n
       //  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21
 
       IDs = [ "i2", "dpre2", "epre2", "t2" ];
 
       testCharacterCount(IDs, 22);
 
@@ -44,17 +44,17 @@
       testText(IDs, 9, 11, "  ");
       testText(IDs, 16, 19, "   ");
       testText(IDs, 0, 22, "Brave Sir  Robin   ran");
       testText(IDs, 0, -1, "Brave Sir  Robin   ran");
 
       testCharacterCount(["d2", "e2"], 19);
       testText(["d2", "e2"], 0, 19, "Brave Sir Robin ran");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       //
       // __o__n__e__w__o__r__d__\n
       //  0  1  2  3  4  5  6  7
       // __\n
       //  8
       // __t__w__o__ __w__o__r__d__s__\n
       //  9 10 11 12 13 14 15 16 17 18
 
--- a/accessible/tests/mochitest/text/test_hypertext.html
+++ b/accessible/tests/mochitest/text/test_hypertext.html
@@ -19,60 +19,60 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../text.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // null getText
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
 
       var emptyTextAcc = getAccessible("nulltext", [nsIAccessibleText]);
       is(emptyTextAcc.getText(0, -1), "", "getText() END_OF_TEXT with null string");
       is(emptyTextAcc.getText(0, 0), "", "getText() Len==0 with null string");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // hypertext
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
 
       // ! - embedded object char
       // __h__e__l__l__o__ __!__ __s__e__e__ __!__
       //  0  1  2  3  4  5  6  7  8  9 10 11 12 13
 
       var IDs = [ "hypertext", "hypertext2" ];
 
-      ////////////////////////////////////////////////////////////////////////
+      // //////////////////////////////////////////////////////////////////////
       // characterCount
 
       testCharacterCount(IDs, 13);
 
-      ////////////////////////////////////////////////////////////////////////
+      // //////////////////////////////////////////////////////////////////////
       // getText
 
       testText(IDs, 0, 1, "h");
       testText(IDs, 5, 7, " " + kEmbedChar);
       testText(IDs, 10, 13, "e " + kEmbedChar);
       testText(IDs, 0, 13, "hello " + kEmbedChar + " see " + kEmbedChar);
 
-      ////////////////////////////////////////////////////////////////////////
+      // //////////////////////////////////////////////////////////////////////
       // getTextAtOffset line boundary
 
       testTextAtOffset(0, BOUNDARY_LINE_START, "line ", 0, 5,
                        "hypertext3", kOk, kOk, kOk);
 
       // XXX: see bug 634202.
       testTextAtOffset(0, BOUNDARY_LINE_START, "line ", 0, 5,
                        "hypertext4", kTodo, kOk, kTodo);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // list
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
 
       IDs = [ "list" ];
       testCharacterCount(IDs, 2);
       testText(IDs, 0, 2, kEmbedChar + kEmbedChar);
 
       IDs = [ "listitem" ];
       testCharacterCount(IDs, 6);
       testText(IDs, 0, 6, "1. foo");
--- a/accessible/tests/mochitest/text/test_lineboundary.html
+++ b/accessible/tests/mochitest/text/test_lineboundary.html
@@ -13,17 +13,17 @@
   <script type="application/javascript">
     function doTest()
     {
       testTextAtOffset("line_test_1", BOUNDARY_LINE_START,
                        [[0, 6, "Line 1 ", 0, 7],
                         [7, 7, "", 7, 7],
                         [8, 15, "Line 3 ", 8, 15]]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // __h__e__l__l__o__ __m__y__ __f__r__i__e__n__d__
       //  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
 
       var IDs = [ "input", "div", "editable", "textarea",
                   getNode("ta", getNode("ta_cntr").contentDocument) ];
 
       testTextBeforeOffset(IDs, BOUNDARY_LINE_START,
                            [ [ 0, 15, "", 0, 0 ] ]);
@@ -35,17 +35,17 @@
       testTextAtOffset(IDs, BOUNDARY_LINE_END,
                        [ [ 0, 15, "hello my friend", 0, 15 ] ]);
 
       testTextAfterOffset(IDs, BOUNDARY_LINE_START,
                           [ [ 0, 15, "", 15, 15 ] ]);
       testTextAfterOffset(IDs, BOUNDARY_LINE_END,
                           [ [ 0, 15, "", 15, 15 ] ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // __o__n__e__w__o__r__d__\n
       //  0  1  2  3  4  5  6  7
       // __\n
       //  8
       // __t__w__o__ __w__o__r__d__s__\n
       //  9 10 11 12 13 14 15 16 17 18
 
       IDs = [ "ml_div", "ml_divbr", "ml_editable", "ml_editablebr", "ml_textarea"];
@@ -78,17 +78,17 @@
                             [ 8, 8, "two words\n", 9, 19 ],
                             [ 9, 19, "", 19, 19 ]]);
       testTextAfterOffset(IDs, BOUNDARY_LINE_END,
                           [ [ 0, 7, "\n", 7, 8 ],
                             [ 8, 8, "\ntwo words", 8, 18 ],
                             [ 9, 18, "\n", 18, 19 ],
                             [ 19, 19, "", 19, 19 ]]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // a * b (* is embedded char for link)
       testTextBeforeOffset([ getAccessible("ht_1").firstChild ], BOUNDARY_LINE_START,
                            [ [ 0, 5, "", 0, 0 ] ]);
 
       testTextBeforeOffset([ getAccessible("ht_1").firstChild ], BOUNDARY_LINE_END,
                            [ [ 0, 5, "", 0, 0 ] ]);
 
       testTextAtOffset([ getAccessible("ht_1").firstChild ], BOUNDARY_LINE_START,
@@ -98,33 +98,33 @@
                        [ [ 0, 5, "a " + kEmbedChar + " c", 0, 5 ] ]);
 
       testTextAfterOffset([ getAccessible("ht_1").firstChild ], BOUNDARY_LINE_START,
                           [ [ 0, 5, "", 5, 5 ] ]);
 
       testTextAfterOffset([ getAccessible("ht_1").firstChild ], BOUNDARY_LINE_END,
                           [ [ 0, 5, "", 5, 5 ] ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // foo<br> and foo<br><br>
 
       testTextAtOffset([ getAccessible("ht_2").firstChild.firstChild ],
                        BOUNDARY_LINE_START,
                        [ [ 0, 3, "foo", 0, 3 ] ]);
       testTextAtOffset([ getAccessible("ht_3").firstChild.firstChild ],
                        BOUNDARY_LINE_START,
                        [ [ 0, 3, "foo\n", 0, 4 ], [ 4, 4, "", 4, 4 ] ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // 'Hello world ' (\n is rendered as space)
 
       testTextAtOffset([ "ht_4" ], BOUNDARY_LINE_START,
                        [ [ 0, 12, "Hello world ", 0, 12 ] ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // list items
 
       testTextAtOffset([ "li1" ], BOUNDARY_LINE_START,
                        [ [ 0, 6, kDiscBulletText + "Item", 0, 6 ] ]);
       testTextAtOffset([ "li2" ], BOUNDARY_LINE_START,
                        [ [ 0, 2, kDiscBulletText, 0, 2 ] ]);
       testTextAtOffset([ "li3" ], BOUNDARY_LINE_START,
                        [ [ 0, 8, kDiscBulletText + "a long ", 0, 9 ],
@@ -155,17 +155,17 @@
                          [ 4, 8, "hello", 4, 9 ] ]);
       testTextAtOffset([ "ol1" ], BOUNDARY_LINE_START,
                        [ [ 0, 0, kEmbedChar, 0, 1 ],
                          [ 1, 1, kEmbedChar, 1, 2 ],
                          [ 2, 2, kEmbedChar, 2, 3 ],
                          [ 3, 3, kEmbedChar, 3, 4 ],
                          [ 4, 5, kEmbedChar, 4, 5 ] ]);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // Nested hypertexts
 
       testTextAtOffset(["ht_5" ], BOUNDARY_LINE_START,
                        [ [ 0, 0, kEmbedChar, 0, 1 ] ]);
 
       SimpleTest.finish();
     }
 
--- a/accessible/tests/mochitest/text/test_passwords.html
+++ b/accessible/tests/mochitest/text/test_passwords.html
@@ -10,28 +10,28 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../text.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // regular text and password inputs
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
 
-      ////////////////////////////////////////////////////////////////////////
+      // //////////////////////////////////////////////////////////////////////
       // characterCount and getText for regular text field
 
       var IDs = [ "username" ];
       testCharacterCount(IDs, 4);
       testText(IDs, 0, 4, "test");
 
-      ////////////////////////////////////////////////////////////////////////
+      // //////////////////////////////////////////////////////////////////////
       // characterCount and getText for password field
 
       IDs = [ "password" ];
       testCharacterCount(IDs, 4);
       testPasswordText(IDs, 0, 4, "test");
 
       SimpleTest.finish();
     }
--- a/accessible/tests/mochitest/textattrs/test_general.html
+++ b/accessible/tests/mochitest/textattrs/test_general.html
@@ -20,32 +20,32 @@
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
     var gComputedStyle = null;
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area1
       var ID = "area1";
       var defAttrs = buildDefaultTextAttrs(ID, "10pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       var attrs = {};
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 7);
 
       attrs = { "font-weight": kBoldFontWeight };
       testTextAttrs(ID, 7, attrs, defAttrs, 7, 11);
 
       attrs = {};
       testTextAttrs(ID, 12, attrs, defAttrs, 11, 18);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area2
       ID = "area2";
       defAttrs = buildDefaultTextAttrs(ID, "14pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = {};
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 7);
 
@@ -59,17 +59,17 @@
       testTextAttrs(ID, 13, attrs, defAttrs, 12, 19);
 
       attrs = { "font-weight": kBoldFontWeight };
       testTextAttrs(ID, 20, attrs, defAttrs, 19, 23);
 
       attrs = {};
       testTextAttrs(ID, 24, attrs, defAttrs, 23, 30);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area3
       ID = "area3";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       tempElem = getNode(ID).firstChild.nextSibling;
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
       attrs = {"color": gComputedStyle.color};
@@ -86,17 +86,17 @@
       testTextAttrs(ID, 26, attrs, defAttrs, 26, 27);
 
       tempElem = tempElem.nextSibling;
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
       attrs = {"color": gComputedStyle.color,
                "background-color": gComputedStyle.backgroundColor};
       testTextAttrs(ID, 27, attrs, defAttrs, 27, 50);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area4
       ID = "area4";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       tempElem = getNode(ID).firstChild.nextSibling;
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
       attrs = {"color": gComputedStyle.color};
@@ -107,17 +107,17 @@
       attrs = {"color": gComputedStyle.color};
       testTextAttrs(ID, 16, attrs, defAttrs, 16, 33);
 
       tempElem = tempElem.parentNode;
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
       attrs = {"color": gComputedStyle.color};
       testTextAttrs(ID, 34, attrs, defAttrs, 33, 46);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area5: "Green!*!RedNormal"
       ID = "area5";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       // Green
       tempElem = getNode(ID).firstChild.nextSibling;
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
@@ -141,17 +141,17 @@
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
       attrs = {"color": gComputedStyle.color};
       testTextAttrs(ID, 9, attrs, defAttrs, 8, 11);
 
       // Normal
       attrs = {};
       testTextAttrs(ID, 11, attrs, defAttrs, 11, 18);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area6 (CSS vertical-align property, refer to bug 445938 for details
       // and sup and sub elements, refer to bug 735645 for details)
       ID = "area6";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = {};
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 5);
@@ -196,17 +196,17 @@
       testTextAttrs(ID, 107, attrs, defAttrs, 107, 123);
 
       attrs = {};
       testTextAttrs(ID, 123, attrs, defAttrs, 123, 128);
 
       attrs = { "text-position": "sub" };
       testTextAttrs(ID, 128, attrs, defAttrs, 128, 142);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area7
       ID = "area7";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       defAttrs.language = "en";
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = {"language": "ru"};
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 6);
@@ -242,17 +242,17 @@
                "color": gComputedStyle.color};
       testTextAttrs(ID, 51, attrs, defAttrs, 51, 55);
 
       tempElem = tempElem.parentNode;
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
       attrs = {"color": gComputedStyle.color};
       testTextAttrs(ID, 55, attrs, defAttrs, 55, 62);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area9, different single style spans in styled paragraph
       ID = "area9";
       defAttrs = buildDefaultTextAttrs(ID, "10pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = {};
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 6);
 
@@ -320,17 +320,17 @@
         "text-line-through-style": "solid",
         "text-line-through-color": gComputedStyle.color
       };
       testTextAttrs(ID, 152, attrs, defAttrs, 151, 164);
 
       attrs = {};
       testTextAttrs(ID, 165, attrs, defAttrs, 164, 172);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area10, different single style spans in non-styled paragraph
       ID = "area10";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = {};
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 7);
 
@@ -380,17 +380,17 @@
         "text-line-through-style": "solid",
         "text-line-through-color": gComputedStyle.color
       };
       testTextAttrs(ID, 111, attrs, defAttrs, 110, 123);
 
       attrs = {};
       testTextAttrs(ID, 124, attrs, defAttrs, 123, 131);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area11, "font-weight" tests
       ID = "area11";
       defAttrs = buildDefaultTextAttrs(ID, "12pt", kBoldFontWeight);
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = { };
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 13);
 
@@ -407,36 +407,36 @@
       testTextAttrs(ID, 33, attrs, defAttrs, 33, 51);
 
       attrs = { "font-weight": kNormalFontWeight };
       testTextAttrs(ID, 51, attrs, defAttrs, 51, 57);
 
       attrs = { };
       testTextAttrs(ID, 57, attrs, defAttrs, 57, 97);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // test out of range offset
       testTextAttrsWrongOffset("area12", -1);
       testTextAttrsWrongOffset("area12", 500);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // test zero offset on empty hypertext accessibles
       ID = "area13";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       attrs = { };
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 0);
 
       ID = "area14";
       defAttrs = buildDefaultTextAttrs(ID, kInputFontSize,
                                        kNormalFontWeight, kInputFontFamily);
 
       attrs = { };
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 0);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area15, embed char tests, "*plain*plain**bold*bold*"
       ID = "area15";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
 
       // p
       testTextAttrs(ID, 0, { }, { }, 0, 1);
       // plain
       testTextAttrs(ID, 1, { }, defAttrs, 1, 6);
@@ -452,17 +452,17 @@
       // p
       testTextAttrs(ID, 18, { }, { }, 18, 19);
       // bold
       attrs = { "font-weight": kBoldFontWeight };
       testTextAttrs(ID, 19, attrs, defAttrs, 19, 23);
       // p
       testTextAttrs(ID, 23, { }, { }, 23, 24);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area16, "font-family" tests
       ID = "area16";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = { "font-family": kMonospaceFontFamily };
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 4);
 
@@ -485,17 +485,17 @@
 
         attrs = { "font-family": kCursiveFontFamily };
         testTextAttrs(ID, 27, attrs, defAttrs, 27, 31);
 
         attrs = { };
         testTextAttrs(ID, 31, attrs, defAttrs, 31, 45);
       }
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area17, "text-decoration" tests
       ID = "area17";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       attrs = {
         "text-underline-style": "solid",
         "text-underline-color": "rgb(0, 0, 0)",
@@ -527,47 +527,47 @@
       testTextAttrs(ID, 34, attrs, defAttrs, 34, 39);
 
       attrs = {
         "text-line-through-style": "wavy",
         "text-line-through-color": "rgb(0, 0, 0)",
       };
       testTextAttrs(ID, 39, attrs, defAttrs, 39, 44);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // area18, "auto-generation text" tests
       ID = "area18";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       var attrs = {
         "auto-generated": "true"
       };
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 3);
       testTextAttrs(ID, 3, { }, defAttrs, 3, 7);
       testTextAttrs(ID, 7, attrs, defAttrs, 7, 8);
 
-       //////////////////////////////////////////////////////////////////////////
+       // ////////////////////////////////////////////////////////////////////////
       // area19, "HTML5 mark tag" test
       // text enclosed in mark tag will have a different background color
       ID = "area19";
       defAttrs = buildDefaultTextAttrs(ID, "12pt");
 
       attrs = {};
       testTextAttrs(ID, 0, attrs, defAttrs, 0, 10);
     
       tempElem = getNode(ID).firstChild.nextSibling;
       gComputedStyle = document.defaultView.getComputedStyle(tempElem);
       attrs = { "background-color": gComputedStyle.backgroundColor };
       testTextAttrs(ID, 11, attrs, defAttrs, 10, 17);
 
       attrs = {};
       testTextAttrs(ID, 18, attrs, defAttrs, 17, 28);
 
-       //////////////////////////////////////////////////////////////////////////
+       // ////////////////////////////////////////////////////////////////////////
       // area20, "aOffset as -1 (Mozilla Bug 789621)" test
 
       ID = "area20";
       defAttrs = buildDefaultTextAttrs(ID, "15pt");
       testDefaultTextAttrs(ID, defAttrs);
 
       testTextAttrs(ID, -1, {}, defAttrs, 0, 11);
       SimpleTest.finish();
--- a/accessible/tests/mochitest/textcaret/test_general.html
+++ b/accessible/tests/mochitest/textcaret/test_general.html
@@ -58,18 +58,18 @@
       }
     }
 
     /**
      * Do tests.
      */
     var gQueue = null;
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       turnCaretBrowsing(true);
 
       // test caret offsets
       testCaretOffset(document, 16);
       testCaretOffset("textbox", -1);
--- a/accessible/tests/mochitest/textselection/test_general.html
+++ b/accessible/tests/mochitest/textselection/test_general.html
@@ -160,17 +160,17 @@
 
       return [ caretMovedChecker, selChangedChecker ];
     }
 
     /**
      * Do tests
      */
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new addSelection("paragraph", 1, 3));
       gQueue.push(new changeSelection("paragraph", 2, 4));
--- a/accessible/tests/mochitest/textselection/test_userinput.html
+++ b/accessible/tests/mochitest/textselection/test_userinput.html
@@ -50,17 +50,17 @@
         return "Hidden selection check for " + aPrevID;
       }
     }
 
     /**
      * Do tests
      */
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
 
     var gQueue = null;
     function doTests()
     {
       gQueue = new eventQueue();
 
       // Tab to 't2' and then tab out it: it must has no selection.
       gQueue.push(new synthFocus("t1"));
--- a/accessible/tests/mochitest/tree/test_aria_grid.html
+++ b/accessible/tests/mochitest/tree/test_aria_grid.html
@@ -11,33 +11,33 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // grid having rowgroups
 
       var accTree =
         { TABLE: [
           { GROUPING: [
             { ROW: [
               { GRID_CELL: [
                 { TEXT_LEAF: [ ] }
               ] }
             ] }
           ] },
         ] };
 
       testAccessibleTree("grid", accTree);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // crazy grids (mad mix of ARIA and HTML tables)
 
       accTree = {
         role: ROLE_TABLE,
         children: [
           { // div@role="row"
             role: ROLE_ROW,
             tagName: "DIV",
@@ -166,17 +166,17 @@
               }
             ]
           }
         ]
       };
 
       testAccessibleTree("crazy_grid4", accTree);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // grids that could contain whitespace accessibles but shouldn't.
 
       var accTree =
         { TREE_TABLE: [
           { ROW: [
             { GRID_CELL: [
               { TEXT_LEAF: [ ] }
             ] },
--- a/accessible/tests/mochitest/tree/test_aria_imgmap.html
+++ b/accessible/tests/mochitest/tree/test_aria_imgmap.html
@@ -14,17 +14,17 @@
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-  //gA11yEventDumpToConsole = true;
+  // gA11yEventDumpToConsole = true;
   function doPreTest()
   {
     waitForImageMap("imagemap", doTest);
   }
 
   function doTest()
   {
     var accTree = {
--- a/accessible/tests/mochitest/tree/test_aria_list.html
+++ b/accessible/tests/mochitest/tree/test_aria_list.html
@@ -11,29 +11,29 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // list
 
       var accTree =
         { LIST: [
           { LISTITEM: [
             { TEXT_LEAF: [ ] }
           ] }
         ] };
 
       testAccessibleTree("list", accTree);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // crazy list (mad mix of ARIA and HTML)
 
       accTree = { // div@role="list"
         role: ROLE_LIST,
         children: [
           { // li
             role: ROLE_TEXT_CONTAINER,
             children: [
--- a/accessible/tests/mochitest/tree/test_aria_owns.html
+++ b/accessible/tests/mochitest/tree/test_aria_owns.html
@@ -11,21 +11,21 @@
           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
 
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Tests
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
-    //enableLogging("tree,verbose"); // debug stuff
+    // enableLogging("tree,verbose"); // debug stuff
 
     var gQueue = null;
 
     function doTest()
     {
       var tree =
         { SECTION: [ // t1_1
           { HEADING: [ // t1_2
--- a/accessible/tests/mochitest/tree/test_aria_table.html
+++ b/accessible/tests/mochitest/tree/test_aria_table.html
@@ -11,17 +11,17 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table having rowgroups
 
       var accTree =
         { TABLE: [
           { GROUPING: [
             { ROW: [
               { CELL: [
                 { TEXT_LEAF: [ ] }
--- a/accessible/tests/mochitest/tree/test_brokencontext.html
+++ b/accessible/tests/mochitest/tree/test_brokencontext.html
@@ -30,17 +30,17 @@
   }
   function checkIfTDGeneric(aID)
   {
     ok(isTDGeneric(aID), "'" + aID + "' shouldn't have cell accessible");
   }
 
   function doTest()
   {
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // HTML table elements outside table context.
 
     // HTML table role="presentation"
     checkIfNotAccessible("tr_in_presentation_table");
     checkIfTDGeneric("th_in_presentation_table");
     checkIfTDGeneric("td_in_presentation_table");
 
     // HTML table role="button"
@@ -70,17 +70,17 @@
     checkIfNotAccessible("tr_in_inline_table2");
     checkIfTDGeneric("td_in_inline_table2");
 
     // HTML table display:block inside table.
     checkIfNotAccessible("block_table");
     checkIfNotAccessible("tr_in_block_table");
     checkIfTDGeneric("td_in_block_table");
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // HTML list elements outside list context.
 
     ok(!isAccessible("presentation_ul"),
                      "presentational ul shouldn't be accessible");
     ok(isAccessible("item_in_presentation_ul"),
                     "li in presentational ul should have generic accessible");
     ok(isAccessible("styleditem_in_presentation_ul"),
                     "list styled span in presentational ul should have generic accessible");
@@ -125,17 +125,17 @@
           { TEXT_LEAF: [ ] }
         ] },
         { NOTHING: [ // dd
           { TEXT_LEAF: [ ] }
         ] }
       ] };
     testAccessibleTree("button_dl", tree);
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Styled as HTML table elements, accessible is created by tag name
 
     tree =
       { LINK: [ // a
         { TEXT_LEAF: [ ] }
       ] };
     testAccessibleTree("a_as_td", tree);
 
--- a/accessible/tests/mochitest/tree/test_canvas.html
+++ b/accessible/tests/mochitest/tree/test_canvas.html
@@ -40,16 +40,16 @@ https://bugzilla.mozilla.org/show_bug.cg
   <p id="display"></p>
   <div id="content" style="display: none"></div>
   <pre id="test">
   </pre>
 
   <canvas id="canvas" tabindex="0"><input type="checkbox"><input></canvas>
 
   <script type="text/javascript">
-    var c=document.getElementById("canvas");
-    var cxt=c.getContext("2d");
-    cxt.fillStyle="#005500";
+    var c = document.getElementById("canvas");
+    var cxt = c.getContext("2d");
+    cxt.fillStyle = "#005500";
     cxt.fillRect(0,0,150,75);
   </script>  
 
 </body>
 </html>
--- a/accessible/tests/mochitest/tree/test_cssoverflow.html
+++ b/accessible/tests/mochitest/tree/test_cssoverflow.html
@@ -18,17 +18,17 @@
           src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
 
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function focusAnchor(aID)
     {
       this.linkNode = getNode(aID);
       this.link = getAccessible(this.linkNode);
 
       this.eventSeq = [
@@ -73,22 +73,22 @@
       }
 
       this.getID = function tabAnchor_getID()
       {
         return "focus a:focus{overflow:scroll} #2";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
 
     var gQueue = null;
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       // Shift+Tab not working, and a test timeout, bug 746977
       if (MAC) {
         todo(false, "Shift+tab isn't working on OS X, needs to be disabled until bug 746977 is fixed!");
         SimpleTest.finish();
         return;
--- a/accessible/tests/mochitest/tree/test_dockids.html
+++ b/accessible/tests/mochitest/tree/test_dockids.html
@@ -11,18 +11,18 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
-  //gA11yEventDumpToConsole = true;
-  //enableLogging("tree,verbose");
+  // gA11yEventDumpToConsole = true;
+  // enableLogging("tree,verbose");
   function doTest()
   {
     var tree =
      { DOCUMENT: [
        { TEXT_CONTAINER: [ // head
          { TEXT_CONTAINER: [ // link
            { STATICTEXT: [] }, // generated content
            { STATICTEXT: [] } // generated content
--- a/accessible/tests/mochitest/tree/test_img.html
+++ b/accessible/tests/mochitest/tree/test_img.html
@@ -13,17 +13,17 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
     function doPreTest()
     {
       waitForImageMap("imgmap", doTest);
     }
 
     function doTest()
     {
       // image map
--- a/accessible/tests/mochitest/tree/test_media.html
+++ b/accessible/tests/mochitest/tree/test_media.html
@@ -16,17 +16,17 @@ https://bugzilla.mozilla.org/show_bug.cg
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
 
   <script type="application/javascript">
 
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // test the accessible tree
 
       var accTree = {
         role: ROLE_GROUPING,
         children: [
           { // start/stop button
             role: ROLE_PUSHBUTTON,
             name: "Play",
@@ -37,17 +37,17 @@ https://bugzilla.mozilla.org/show_bug.cg
             children: []
           },
           { // progress bar
             role: ROLE_PROGRESSBAR,
             children: []
           },
           { // slider of progress bar
             role: ROLE_SLIDER,
-            //name: "0:00 of 0:02 elapsed",
+            // name: "0:00 of 0:02 elapsed",
             children: []
           },
           {
             role: ROLE_TEXT_CONTAINER,
             children: [
               {
                 role: ROLE_TEXT_LEAF, // position text
               },
--- a/accessible/tests/mochitest/tree/test_table.html
+++ b/accessible/tests/mochitest/tree/test_table.html
@@ -11,17 +11,17 @@
   <script type="application/javascript"
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
 
   <script type="application/javascript">
     function doTest()
     {
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // tables having captions
 
       // Two captions, first is used, second is ignored.
       var accTree =
         { TABLE: [
           { CAPTION: [
             {
               role: ROLE_TEXT_LEAF,
@@ -82,17 +82,17 @@
           { ROW: [
             { CELL: [ { TEXT_LEAF: [ ] } ] },
             { CELL: [ { TEXT_LEAF: [ ] } ] }
           ] }
         ] };
 
       testAccessibleTree("table_caption_intheend", accTree);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table2 (consist of one column)
 
       accTree = {
         role: ROLE_TABLE,
         children: [
           {
             role: ROLE_ROW,
             children: [
@@ -109,17 +109,17 @@
               }
             ]
           }
         ]
       };
 
       testAccessibleTree("table2", accTree);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // table3 (consist of one row)
 
       accTree = {
         role: ROLE_TABLE,
         children: [
           {
             role: ROLE_ROW,
             children: [
@@ -131,43 +131,43 @@
               }
             ]
           }
         ]
       };
 
       testAccessibleTree("table3", accTree);
 
-      /////////////////////////////////////////////////////////////////////////
+      // ///////////////////////////////////////////////////////////////////////
       // table4 (display: table-row)
       accTree =
         { TABLE: [
           { ROW: [
             { CELL: [
               { TEXT_LEAF: [ ] }
             ] }
           ] } ]
         };
       testAccessibleTree("table4", accTree);
 
-      /////////////////////////////////////////////////////////////////////////
+      // ///////////////////////////////////////////////////////////////////////
       // table5 (intermediate accessible for tbody)
       accTree =
         { TABLE: [
           { TEXT_CONTAINER: [
             { ROW: [
               { CELL: [
                 { TEXT_LEAF: [ ] }
               ] }
             ] }
           ] } ]
         };
       testAccessibleTree("table5", accTree);
 
-      /////////////////////////////////////////////////////////////////////////
+      // ///////////////////////////////////////////////////////////////////////
       // log table
       accTree =
         { TABLE: [
           { ROW: [
             { CELL: [
               { TEXT_LEAF: [ ] }
             ] }
           ] }
--- a/accessible/tests/mochitest/treeupdate/test_ariadialog.html
+++ b/accessible/tests/mochitest/treeupdate/test_ariadialog.html
@@ -14,17 +14,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function showARIADialog(aID)
     {
       this.node = getNode(aID);
 
       this.eventSeq = [
         new invokerChecker(EVENT_SHOW, this.node)
@@ -57,27 +57,27 @@
       }
 
       this.getID = function showARIADialog_getID()
       {
         return "show ARIA dialog";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
-      //enableLogging("tree");
+      // enableLogging("tree");
       gQueue = new eventQueue();
 
       // make the accessible an inaccessible
       gQueue.push(new showARIADialog("dialog"));
 
       gQueue.invoke(); // SimpleTest.finish() will be called in the end
     }
 
--- a/accessible/tests/mochitest/treeupdate/test_ariaowns.html
+++ b/accessible/tests/mochitest/treeupdate/test_ariaowns.html
@@ -14,19 +14,19 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     function changeARIAOwns()
     {
       this.eventSeq = [
         new invokerChecker(EVENT_HIDE, getNode("t1_button")),
         // no hide for t1_subdiv because it is contained by hidden t1_checkbox
         new invokerChecker(EVENT_HIDE, getNode("t1_checkbox")),
         new invokerChecker(EVENT_SHOW, getNode("t1_checkbox")),
@@ -724,22 +724,22 @@
         todo(false, "Input accessible has be moved back in the tree");
       }
 
       this.getID = () => {
         return `Put aria owned child back when aria owner removed (finish test)`;
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
-    //gA11yEventDumpToConsole = true;
-    //enableLogging("tree,eventTree,verbose"); // debug stuff
+    // gA11yEventDumpToConsole = true;
+    // enableLogging("tree,eventTree,verbose"); // debug stuff
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       // test1
--- a/accessible/tests/mochitest/treeupdate/test_bug1189277.html
+++ b/accessible/tests/mochitest/treeupdate/test_bug1189277.html
@@ -41,17 +41,17 @@
       }
 
       this.getID = function runTest_getID()
       {
         return "check show events are not incorrectly coalesced";
       }
     }
 
-    //enableLogging("tree");
+    // enableLogging("tree");
     gA11yEventDumpToConsole = true;
     var gQueue = null;
     function doTest()
     {
       gQueue = new eventQueue();
       gQueue.push(new runTest());
       gQueue.invoke(); // SimpleTest.finish();
     }
--- a/accessible/tests/mochitest/treeupdate/test_bug1276857.html
+++ b/accessible/tests/mochitest/treeupdate/test_bug1276857.html
@@ -87,18 +87,18 @@
         testAccessibleTree("c2", tree);
       };
 
       this.getID = function runShadowTest_getID() {
         return "child DOM node is removed before the layout notifies the a11y about parent removal/show in shadow DOM";
       };
     }
 
-    //enableLogging("tree");
-    //gA11yEventDumpToConsole = true;
+    // enableLogging("tree");
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
     function doTest()
     {
       gQueue = new eventQueue();
       gQueue.push(new runTest());
       gQueue.push(new runShadowTest());
       gQueue.invoke(); // will call SimpleTest.finish();
--- a/accessible/tests/mochitest/treeupdate/test_canvas.html
+++ b/accessible/tests/mochitest/treeupdate/test_canvas.html
@@ -14,17 +14,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function addSubtree(aID)
     {
       this.node = getNode(aID);
 
       this.eventSeq = [
         new invokerChecker(EVENT_SHOW, this.node)
@@ -42,21 +42,21 @@
       }
 
       this.getID = function addSubtree_getID()
       {
         return "show canvas subdom";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       // make the subdom come alive!
--- a/accessible/tests/mochitest/treeupdate/test_cssoverflow.html
+++ b/accessible/tests/mochitest/treeupdate/test_cssoverflow.html
@@ -13,19 +13,19 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     /**
      * Change scroll range to not empty size and inserts a child into container
      * to trigger tree update of the container. Prior to bug 677154 not empty
      * size resulted to accessible creation for scroll area, container tree
      * update picked up that accessible unattaching scroll area accessible
      * subtree.
      */
@@ -96,23 +96,23 @@
       }
 
       this.getID = function changeScrollbarStyles_getID()
       {
         return "change scrollbar styles " + prettyName(aScrollAreaID);
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     var gQueue = null;
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new changeScrollRange("container", "scrollarea"));
       gQueue.push(new changeScrollbarStyles("container2", "scrollarea2"));
 
--- a/accessible/tests/mochitest/treeupdate/test_doc.html
+++ b/accessible/tests/mochitest/treeupdate/test_doc.html
@@ -15,17 +15,17 @@
           src="../role.js"></script>
   <script type="application/javascript"
           src="../states.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Helpers
 
     function getDocNode(aID)
     {
       return getNode(aID).contentDocument;
     }
     function getDocChildNode(aID)
     {
@@ -95,17 +95,17 @@
               name: aTextName
             }
           ]
         };
         testAccessibleTree(getDocNode(aID), tree);
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function writeIFrameDoc(aID)
     {
       this.__proto__ = new rootContentReplaced(aID, "hello");
 
       this.invoke = function writeIFrameDoc_invoke()
       {
@@ -402,21 +402,21 @@
       }
 
       this.getID = function changeSrc_getID()
       {
         return "change src on iframe";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpToConsole = true;
-    //enableLogging('tree,verbose');
+    // gA11yEventDumpToConsole = true;
+    // enableLogging('tree,verbose');
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new writeIFrameDoc("iframe"));
--- a/accessible/tests/mochitest/treeupdate/test_gencontent.html
+++ b/accessible/tests/mochitest/treeupdate/test_gencontent.html
@@ -22,19 +22,19 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     /**
      * Insert new node with CSS generated content style applied to container.
      */
     function insertNodeHavingGenContent(aContainerID)
     {
       this.containerNode = getNode(aContainerID);
       this.container = getAccessible(this.containerNode);
@@ -113,23 +113,23 @@
      * Target getters.
      */
     function getFirstChild(aAcc)
     {
       try { return aAcc.getChildAt(0); }
       catch (e) { return null; }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     var gQueue = null;
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new insertNodeHavingGenContent("container1"));
       gQueue.push(new addGenContent("container2", "container2_child"));
 
--- a/accessible/tests/mochitest/treeupdate/test_general.html
+++ b/accessible/tests/mochitest/treeupdate/test_general.html
@@ -13,19 +13,19 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     function prependAppend(aContainer)
     {
       this.eventSeq = [
         new invokerChecker(EVENT_REORDER, aContainer)
       ];
 
       this.invoke = function prependAppend_invoke()
@@ -107,23 +107,23 @@
       }
 
       this.getID = function insertInaccessibleAccessibleSiblings_getID()
       {
         return "insert inaccessible and then accessible siblings";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Do tests
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     var gQueue = null;
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     function doTests()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new prependAppend("c1"));
       gQueue.push(new removeRemove("c2"));
       gQueue.push(new insertInaccessibleAccessibleSiblings());
--- a/accessible/tests/mochitest/treeupdate/test_hidden.html
+++ b/accessible/tests/mochitest/treeupdate/test_hidden.html
@@ -14,19 +14,19 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
     /**
      * Set @hidden attribute
      */
     function setHiddenAttr(aContainerID, aChildID)
     {
       this.eventSeq = [
         new invokerChecker(EVENT_REORDER, getNode(aContainerID))
@@ -88,22 +88,22 @@
       }
 
       this.getID = function removeHiddenAttr_getID()
       {
         return "Remove @hidden attribute on input and test accessible tree for div";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new setHiddenAttr("container", "child"));
--- a/accessible/tests/mochitest/treeupdate/test_imagemap.html
+++ b/accessible/tests/mochitest/treeupdate/test_imagemap.html
@@ -376,17 +376,17 @@
       }
 
       this.getID = function hideImageMap_getID()
       {
         return "display:none image";
       }
     }
 
-    //gA11yEventDumpToConsole = true; // debug stuff
+    // gA11yEventDumpToConsole = true; // debug stuff
     function doPreTest()
     {
       waitForImageMap("imgmap", doTest);
     }
 
     var gQueue = null;
     function doTest()
     {
@@ -396,18 +396,18 @@
       gQueue.push(new appendArea("imgmap", "map"));
       gQueue.push(new removeArea("imgmap", "map"));
       gQueue.push(new removeNameOnMap("container", "imgmap", "map"));
       gQueue.push(new restoreNameOnMap("container", "imgmap", "map"));
       gQueue.push(new removeMap("container", "imgmap", "map"));
       gQueue.push(new insertMap("container", "imgmap"));
       gQueue.push(new hideImageMap("container", "imgmap"));
 
-      //enableLogging("tree"); // debug stuff
-      //gQueue.onFinish = function() { disableLogging("tree"); }
+      // enableLogging("tree"); // debug stuff
+      // gQueue.onFinish = function() { disableLogging("tree"); }
 
       gQueue.invoke(); // Will call SimpleTest.finish();
     }
 
     SimpleTest.waitForExplicitFinish();
     addA11yLoadEvent(doPreTest);
   </script>
 
--- a/accessible/tests/mochitest/treeupdate/test_list.html
+++ b/accessible/tests/mochitest/treeupdate/test_list.html
@@ -13,17 +13,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Helpers
 
     function testLiAccessibleTree()
     {
       // Test accessible tree.
       var accTree = {
         role: ROLE_LISTITEM,
         children: [
@@ -36,17 +36,17 @@
             children: []
           }
         ]
       };
 
       testAccessibleTree("li", accTree);
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Sequence item processors
 
     function hideProcessor()
     {
       this.liNode = getNode("li");
       this.li = getAccessible(this.liNode);
       this.bullet = this.li.firstChild;
 
@@ -103,20 +103,20 @@
             { TEXT_LEAF: [] }
           ]
         };
         testAccessibleTree(this.liNode, tree);
         SimpleTest.finish();
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     var gSequence = null;
     function doTest()
     {
       testLiAccessibleTree();
 
       gSequence = new sequence();
 
--- a/accessible/tests/mochitest/treeupdate/test_list_editabledoc.html
+++ b/accessible/tests/mochitest/treeupdate/test_list_editabledoc.html
@@ -13,17 +13,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function addLi(aID)
     {
       this.listNode = getNode(aID);
       this.liNode = document.createElement("li");
       this.liNode.textContent = "item";
 
@@ -62,20 +62,20 @@
       }
 
       this.getID = function addLi_getID()
       {
         return "add li";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpID = "eventdump"; // debug stuff
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new addLi("list"));
--- a/accessible/tests/mochitest/treeupdate/test_optgroup.html
+++ b/accessible/tests/mochitest/treeupdate/test_optgroup.html
@@ -97,17 +97,17 @@
       }
 
       this.getID = function removeOptGroup_getID()
       {
         return "test optgroup's removal from a select";
       }
     }
 
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpToConsole = true;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new addOptGroup("select"));
       gQueue.push(new removeOptGroup("select"));
 
--- a/accessible/tests/mochitest/treeupdate/test_recreation.html
+++ b/accessible/tests/mochitest/treeupdate/test_recreation.html
@@ -14,17 +14,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function recreateAccessible(aID, aWontBeAccessible)
     {
       this.node = getNode(aID);
       this.accessible =
         isAccessible(this.node) ? getAccessible(this.node) : null;
 
@@ -93,21 +93,21 @@
       this.__proto__ = new changeAttr(aID, "href", "www");
     }
 
     function changeMultiselectable(aID)
     {
       this.__proto__ = new changeAttr(aID, "aria-multiselectable", "true");
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       // make the accessible an inaccessible
--- a/accessible/tests/mochitest/treeupdate/test_textleaf.html
+++ b/accessible/tests/mochitest/treeupdate/test_textleaf.html
@@ -14,17 +14,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     function textLeafUpdate(aID, aIsTextLeafLinkable)
     {
       this.node = getNode(aID);
 
       this.eventSeq = [
         new invokerChecker(EVENT_REORDER, this.node.parentNode)
@@ -106,21 +106,21 @@
       }
 
       this.getID = function removeTextData_finalCheck()
       {
         return "remove text data of text node inside '" + aID + "'.";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       // adds onclick on element, text leaf should inherit its action
       setOnClickAttr("div");
       // remove onclick attribute, text leaf shouldn't have any action
--- a/accessible/tests/mochitest/treeupdate/test_visibility.html
+++ b/accessible/tests/mochitest/treeupdate/test_visibility.html
@@ -14,17 +14,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     /**
      * Hide parent while child stays visible.
      */
     function test1(aContainerID, aParentID, aChildID)
     {
       this.eventSeq = [
@@ -317,21 +317,21 @@
       }
 
       this.getID = function getID()
       {
         return "hide subcontainer while its child and child inside the nested table stays visible";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new test1("t1_container", "t1_parent", "t1_child"));
--- a/accessible/tests/mochitest/treeupdate/test_whitespace.html
+++ b/accessible/tests/mochitest/treeupdate/test_whitespace.html
@@ -14,17 +14,17 @@
           src="../common.js"></script>
   <script type="application/javascript"
           src="../role.js"></script>
   <script type="application/javascript"
           src="../events.js"></script>
 
   <script type="application/javascript">
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Invokers
 
     /**
      * Middle image accessible removal results in text accessible removal.
      *
      * Before:
      *   DOM: whitespace img1 whitespace img2 whitespace img3 whitespace,
      *   a11y: img1 whitespace img2 whitespace img3
@@ -139,21 +139,21 @@
       }
 
       this.getID = function appendImg_getID()
       {
         return "insert img into internal container";
       }
     }
 
-    ////////////////////////////////////////////////////////////////////////////
+    // //////////////////////////////////////////////////////////////////////////
     // Test
 
-    //gA11yEventDumpID = "eventdump"; // debug stuff
-    //gA11yEventDumpToConsole = true;
+    // gA11yEventDumpID = "eventdump"; // debug stuff
+    // gA11yEventDumpToConsole = true;
 
     var gQueue = null;
 
     function doTest()
     {
       gQueue = new eventQueue();
 
       gQueue.push(new removeImg());
--- a/accessible/tests/mochitest/treeview.js
+++ b/accessible/tests/mochitest/treeview.js
@@ -72,17 +72,17 @@ function nsTreeTreeView()
 function nsTreeView()
 {
   this.mTree = null;
   this.mData = [];
 }
 
 nsTreeView.prototype =
 {
-  //////////////////////////////////////////////////////////////////////////////
+  // ////////////////////////////////////////////////////////////////////////////
   // nsITreeView implementation
 
   get rowCount()
   {
     return this.getRowCountIntl(this.mData);
   },
   setTree: function setTree(aTree)
   {
@@ -178,25 +178,25 @@ nsTreeView.prototype =
     data.value = aValue;
 
     this.mTree.invalidateCell(aRow, aCol);
   },
   performAction: function performAction(aAction) {},
   performActionOnRow: function performActionOnRow(aAction, aRow) {},
   performActionOnCell: function performActionOnCell(aAction, aRow, aCol) {},
 
-  //////////////////////////////////////////////////////////////////////////////
+  // ////////////////////////////////////////////////////////////////////////////
   // public implementation
 
   appendItem: function appendItem(aText)
   {
     this.mData.push(new treeItem(aText));
   },
 
-  //////////////////////////////////////////////////////////////////////////////
+  // ////////////////////////////////////////////////////////////////////////////
   // private implementation
 
   getDataForIndex: function getDataForIndex(aRowIndex)
   {
     return this.getInfoByIndex(aRowIndex).data;
   },
 
   getInfoByIndex: function getInfoByIndex(aRowIndex)
--- a/accessible/tests/mochitest/value.js
+++ b/accessible/tests/mochitest/value.js
@@ -1,9 +1,9 @@
-////////////////////////////////////////////////////////////////////////////////
+// //////////////////////////////////////////////////////////////////////////////
 // Public methods
 
 /**
  * Tests nsIAccessibleValue interface.
  *
  * @param aAccOrElmOrId  [in] identifier of accessible
  * @param aValue         [in] accessible value (nsIAccessible::value)
  * @param aCurrValue     [in] current value (nsIAccessibleValue::currentValue)
--- a/accessible/tests/mochitest/value/test_general.html
+++ b/accessible/tests/mochitest/value/test_general.html
@@ -44,36 +44,36 @@
       testValue("aria_checkbox_link", "");
       testValue("aria_application_link", "");
 
       // roles that can live as HTMLLinkAccessibles
       testValue("aria_link_link", href);
       testValue("aria_main_link", href);
       testValue("aria_navigation_link", href);
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA textboxes
 
       testValue("aria_textbox1", "helo");
 
-      //////////////////////////////////////////////////////////////////////////
+      // ////////////////////////////////////////////////////////////////////////
       // ARIA comboboxes
 
       // aria-activedescendant defines a current item the value is computed from
       testValue("aria_combobox1", kDiscBulletText + "Zoom");
 
       // aria-selected defines a selected item the value is computed from,