Bug 1274274 - Update exported symbols and correct docs; r=automatedtester a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Fri, 20 May 2016 16:52:01 +0100
changeset 333262 4581f4f403ce437151b36e91044cfb64beeeb69f
parent 333261 734a33b1908f070ed228c4ef3f2ff99d95eedb80
child 333263 3f4ba9dccbd7d1f1a28e213985f6408adf92e498
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester, test-only
bugs1274274
milestone48.0a2
Bug 1274274 - Update exported symbols and correct docs; r=automatedtester a=test-only 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",