Bug 1274274 - Update exported symbols and correct docs; r?automatedtester
MozReview-Commit-ID: 95ikD0oyrmy
--- 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",