Bug 1274274 - Update exported symbols and correct docs; r?automatedtester draft
authorAndreas Tolfsen <ato@mozilla.com>
Fri, 20 May 2016 16:52:01 +0100
changeset 370723 6bb733848672c52b84fac55aa06cc7c6ec2d31bc
parent 370722 322e00b1f661a56c800ce120831818d335888d4b
child 370724 2bce063962801f3a7ccb3d6ffcfc45f0ee0ecdca
push id19137
push userbmo:ato@mozilla.com
push dateWed, 25 May 2016 09:03:54 +0000
reviewersautomatedtester
bugs1274274
milestone49.0a1
Bug 1274274 - Update exported symbols and correct docs; r?automatedtester MozReview-Commit-ID: 95ikD0oyrmy
testing/marionette/element.js
--- a/testing/marionette/element.js
+++ b/testing/marionette/element.js
@@ -9,47 +9,44 @@ const {classes: Cc, interfaces: Ci, util
 Cu.import("resource://gre/modules/Log.jsm");
 
 Cu.import("chrome://marionette/content/atom.js");
 Cu.import("chrome://marionette/content/error.js");
 
 const logger = Log.repository.getLogger("Marionette");
 
 /**
- * The ElementManager manages DOM element references and
- * interactions with elements.
+ * This module provides shared functionality for dealing with DOM-
+ * and web elements in Marionette.
  *
  * A web element is an abstraction used to identify an element when it
  * is transported across the protocol, between remote- and local ends.
  *
  * Each element has an associated web element reference (a UUID) that
  * uniquely identifies the the element across all browsing contexts. The
  * web element reference for every element representing the same element
  * is the same.
  *
- * The element manager provides a mapping between web element references
- * and DOM elements for each browsing context.  It also provides
+ * The @code{element.Store} provides a mapping between web element
+ * references and DOM elements for each browsing context.  It also provides
  * functionality for looking up and retrieving elements.
  */
 
-this.EXPORTED_SYMBOLS = [
-  "element",
-  "ElementManager",
-];
+this.EXPORTED_SYMBOLS = ["element"];
 
 const DOCUMENT_POSITION_DISCONNECTED = 1;
 const XMLNS = "http://www.w3.org/1999/xhtml";
 
 const uuidGen = Cc["@mozilla.org/uuid-generator;1"]
     .getService(Ci.nsIUUIDGenerator);
 
 this.element = {};
 
+element.Key = "element-6066-11e4-a52e-4f735466cecf";
 element.LegacyKey = "ELEMENT";
-element.Key = "element-6066-11e4-a52e-4f735466cecf";
 
 element.Strategy = {
   ClassName: "class name",
   Selector: "css selector",
   ID: "id",
   Name: "name",
   LinkText: "link text",
   PartialLinkText: "partial link text",