Bug 1352802 - Typo fixes around 'accessible'. r=MattN
authorPaul Bignier <paul.bignier@gmail.com>
Mon, 03 Apr 2017 09:47:00 -0700
changeset 555401 ccc7dd000cc2e0087a156333bcc36979cae4d907
parent 555400 8605e9e4f7bb7a450337747f3fe62b139215073e
child 555402 d32b1a2deab12016f264786d2557848d1e445857
push id52236
push usercykesiopka.bmo@gmail.com
push dateTue, 04 Apr 2017 09:12:57 +0000
reviewersMattN
bugs1352802
milestone55.0a1
Bug 1352802 - Typo fixes around 'accessible'. r=MattN MozReview-Commit-ID: 27CyNOMXkRq
accessible/base/nsAccessibilityService.h
accessible/jsat/EventManager.jsm
accessible/tests/mochitest/attributes.js
accessible/tests/mochitest/name/markuprules.xml
accessible/tests/mochitest/states.js
browser/extensions/shield-recipe-client/test/browser/browser_ClientEnvironment.js
taskcluster/docs/taskgraph.rst
testing/marionette/accessibility.js
testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py
toolkit/components/find/nsWebBrowserFind.cpp
--- a/accessible/base/nsAccessibilityService.h
+++ b/accessible/base/nsAccessibilityService.h
@@ -101,17 +101,17 @@ public:
    * of the application accessible.
    */
   Accessible* AddNativeRootAccessible(void* aAtkAccessible);
   void RemoveNativeRootAccessible(Accessible* aRootAccessible);
 
   bool HasAccessible(nsIDOMNode* aDOMNode);
 
   /**
-   * Get a string equivalent for an accessilbe role value.
+   * Get a string equivalent for an accessible role value.
    */
   void GetStringRole(uint32_t aRole, nsAString& aString);
 
   /**
    * Get a string equivalent for an accessible state/extra state.
    */
   already_AddRefed<mozilla::dom::DOMStringList>
     GetStringStates(uint64_t aStates) const;
--- a/accessible/jsat/EventManager.jsm
+++ b/accessible/jsat/EventManager.jsm
@@ -283,17 +283,17 @@ this.EventManager.prototype = {
         this.sendMsgFunc("AccessFu:Focused");
        }
        break;
       }
       case Events.DOCUMENT_LOAD_COMPLETE:
       {
         let position = this.contentControl.vc.position;
         // Check if position is in the subtree of the DOCUMENT_LOAD_COMPLETE
-        // event's dialog accesible or accessible document
+        // event's dialog accessible or accessible document
         let subtreeRoot = aEvent.accessible.role === Roles.DIALOG ?
           aEvent.accessible : aEvent.accessibleDocument;
         if (aEvent.accessible === aEvent.accessibleDocument ||
             (position && Utils.isInSubtree(position, subtreeRoot))) {
           // Do not automove into the document if the virtual cursor is already
           // positioned inside it.
           break;
         }
--- a/accessible/tests/mochitest/attributes.js
+++ b/accessible/tests/mochitest/attributes.js
@@ -128,31 +128,31 @@ function testTextAttrs(aID, aOffset, aAt
 {
   var accessible = getAccessible(aID, [nsIAccessibleText]);
   if (!accessible)
     return;
 
   var startOffset = { value: -1 };
   var endOffset = { value: -1 };
 
-  // do not include attributes exposed on hyper text accessbile
+  // do not include attributes exposed on hyper text accessible
   var attrs = getTextAttributes(aID, accessible, false, aOffset,
                                 startOffset, endOffset);
 
   if (!attrs)
     return;
 
   var errorMsg = " for " + aID + " at offset " + aOffset;
 
   is(startOffset.value, aStartOffset, "Wrong start offset" + errorMsg);
   is(endOffset.value, aEndOffset, "Wrong end offset" + errorMsg);
 
   compareAttrs(errorMsg, attrs, aAttrs, aSkipUnexpectedAttrs);
 
-  // include attributes exposed on hyper text accessbile
+  // include attributes exposed on hyper text accessible
   var expectedAttrs = {};
   for (var name in aAttrs)
     expectedAttrs[name] = aAttrs[name];
 
   for (var name in aDefAttrs) {
     if (!(name in expectedAttrs))
       expectedAttrs[name] = aDefAttrs[name];
   }
--- a/accessible/tests/mochitest/name/markuprules.xml
+++ b/accessible/tests/mochitest/name/markuprules.xml
@@ -67,17 +67,17 @@
       <html:div aria-label="test1"
                 aria-labelledby="label">it's a div</html:div>
     </markup>
   </rulesample>
 
   Initially 'markup' element holds markup for all rules specified by 'ruleset'
   attribute. This allows us to check if the sequence of name computation rules
   is correct. Here 'ruleset' element defines two rules. We get the first rule
-  which means accesible name is computed from value of 'aria-label' attribute.
+  which means accessible name is computed from value of 'aria-label' attribute.
   Then we check accessible name for the test element and remove 'aria-label'
   attribute. After we get the second rule which means we should get IDs from
   'aria-labelledby' attribute and compose accessible name from values of
   'textequiv' attributes (that are supposed to give the desired name for each
   element that is being pointed to by aria-labelledby). Check accessible name
   and finish test.
 -->
 
--- a/accessible/tests/mochitest/states.js
+++ b/accessible/tests/mochitest/states.js
@@ -157,17 +157,17 @@ function testStates(aAccOrElmOrID, aStat
   // selected/selectable
   if (state & STATE_SELECTED) {
     isState(state & STATE_SELECTABLE, STATE_SELECTABLE, false,
             "Selected element must be selectable!");
   }
 }
 
 /**
- * Tests an acessible and its sub tree for the passed in state bits.
+ * Tests an accessible and its sub tree for the passed in state bits.
  * Used to make sure that states are propagated to descendants, for example the
  * STATE_UNAVAILABLE from a container to its children.
  *
  * @param aAccOrElmOrID  The accessible, DOM element or ID to be tested.
  * @param aState         The state bits that are wanted.
  * @param aExtraState    The extra state bits that are wanted.
  * @param aAbsentState   State bits that are not wanted.
  */
--- a/browser/extensions/shield-recipe-client/test/browser/browser_ClientEnvironment.js
+++ b/browser/extensions/shield-recipe-client/test/browser/browser_ClientEnvironment.js
@@ -10,17 +10,17 @@ Cu.import("resource://shield-recipe-clie
 add_task(function* testTelemetry() {
   // setup
   yield TelemetryController.submitExternalPing("testfoo", {foo: 1});
   yield TelemetryController.submitExternalPing("testbar", {bar: 2});
   const environment = ClientEnvironment.getEnvironment();
 
   // Test it can access telemetry
   const telemetry = yield environment.telemetry;
-  is(typeof telemetry, "object", "Telemetry is accesible");
+  is(typeof telemetry, "object", "Telemetry is accessible");
 
   // Test it reads different types of telemetry
   is(telemetry.testfoo.payload.foo, 1, "value 'foo' is in mock telemetry");
   is(telemetry.testbar.payload.bar, 2, "value 'bar' is in mock telemetry");
 });
 
 add_task(function* testUserId() {
   let environment = ClientEnvironment.getEnvironment();
--- a/taskcluster/docs/taskgraph.rst
+++ b/taskcluster/docs/taskgraph.rst
@@ -149,17 +149,17 @@ is re-used.
 Action Tasks are currently scheduled by
 [pulse_actions](https://github.com/mozilla/pulse_actions). This feature is only
 present on ``try`` pushes for now.
 
 Mach commands
 -------------
 
 A number of mach subcommands are available aside from ``mach taskgraph
-decision`` to make this complex system more accesssible to those trying to
+decision`` to make this complex system more accessible to those trying to
 understand or modify it.  They allow you to run portions of the
 graph-generation process and output the results.
 
 ``mach taskgraph tasks``
    Get the full task set
 
 ``mach taskgraph full``
    Get the full task graph
--- a/testing/marionette/accessibility.js
+++ b/testing/marionette/accessibility.js
@@ -222,17 +222,17 @@ accessibility.Checks = class {
 
   /**
    * Test if an accessible has a {@code hidden} attribute.
    *
    * @param {nsIAccessible} accessible
    *     Accessible object.
    *
    * @return {boolean}
-   *     True if the accesible object has a {@code hidden} attribute,
+   *     True if the accessible object has a {@code hidden} attribute,
    *     false otherwise.
    */
   hasHiddenAttribute(accessible) {
     let hidden = false;
     try {
       hidden = accessible.attributes.getStringProperty("hidden");
     } finally {
       // if the property is missing, error will be thrown
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_accessibility.py
@@ -42,17 +42,17 @@ class TestAccessibility(MarionetteTestCa
     invalid_elementIDs = [
         # Button3 does not have an accessible object
         "button3",
         # Button4 does not support any accessible actions
         "button4",
         # Button5 does not have a correct accessibility role and may not be
         # manipulated via the accessibility API
         "button5",
-        # Button6 is missing an accesible name
+        # Button6 is missing an accessible name
         "button6",
         # Button7 is not currently visible via the accessibility API and may
         # not be manipulated by it
         "button7",
         # Button8 is not currently visible via the accessibility API and may
         # not be manipulated by it (in hidden subtree)
         "button8",
         # Button14 is accessible button but is not explorable because of lack
--- a/toolkit/components/find/nsWebBrowserFind.cpp
+++ b/toolkit/components/find/nsWebBrowserFind.cpp
@@ -693,17 +693,17 @@ nsWebBrowserFind::SearchInFrame(nsPIDOMW
                                 bool* aDidFind)
 {
   NS_ENSURE_ARG(aWindow);
   NS_ENSURE_ARG_POINTER(aDidFind);
 
   *aDidFind = false;
 
   // Do security check, to ensure that the frame we're searching is
-  // acccessible from the frame where the Find is being run.
+  // accessible from the frame where the Find is being run.
 
   // get a uri for the window
   nsCOMPtr<nsIDocument> theDoc = aWindow->GetDoc();
   if (!theDoc) {
     return NS_ERROR_FAILURE;
   }
 
   if (!nsContentUtils::SubjectPrincipal()->Subsumes(theDoc->NodePrincipal())) {