Error extension that includes error status codes from the WebDriver wire
protocol:
- http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Flag used for duck-typing when this code is embedded in a Firefox extension.
+ http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Flag used for duck-typing when this code is embedded in a Firefox extension.
This is required since an Error thrown in one component and then reported
- to another will fail instanceof checks in the second component.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_Disposable.html b/docs/api/javascript/class_goog_Disposable.html
new file mode 100644
index 0000000000000..0ab639e550ff8
--- /dev/null
+++ b/docs/api/javascript/class_goog_Disposable.html
@@ -0,0 +1,37 @@
+goog.Disposable
Class that provides the basic implementation for disposable objects. If your
+ class holds one or more references to COM objects, DOM nodes, or other
+ disposable objects, it should extend this class or implement the disposable
+ interface (defined in goog.disposable.IDisposable).
Disposes of the object. If the object hasn't already been disposed of, calls
+ #disposeInternal. Classes that extend goog.Disposable should
+ override #disposeInternal in order to delete references to COM
+ objects, DOM nodes, and other disposable objects. Reentrant.
Deletes or nulls out any references to COM objects, DOM nodes, or other
+ disposable objects. Classes that extend goog.Disposable should
+ override this method.
+ Not reentrant. To avoid calling it twice, it must only be called from the
+ subclass' disposeInternal method. Everywhere else the public
+ dispose method must be used.
+ For example:
+
+ mypackage.MyClass = function() {
+ mypackage.MyClass.base(this, 'constructor');
+ // Constructor logic specific to MyClass.
+ ...
+ };
+ goog.inherits(mypackage.MyClass, goog.Disposable);
+
+ mypackage.MyClass.prototype.disposeInternal = function() {
+ // Dispose logic specific to MyClass.
+ ...
+ // Call superclass's disposeInternal at the end of the subclass's, like
+ // in C++, to avoid hard-to-catch issues.
+ mypackage.MyClass.base(this, 'disposeInternal');
+ };
+
Returns True if we can verify the object is disposed.
+ Calls isDisposed on the argument if it supports it. If obj
+ is not an object with an isDisposed() method, return false.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_Uri.html b/docs/api/javascript/class_goog_Uri.html
index 37ab0402a060a..1474bcbff21d3 100644
--- a/docs/api/javascript/class_goog_Uri.html
+++ b/docs/api/javascript/class_goog_Uri.html
@@ -1,8 +1,14 @@
-goog.Uri
This class contains setters and getters for the parts of the URI.
The getXyz/setXyz methods return the decoded part
-- sogoog.Uri.parse('/foo%20bar').getPath() will return the
decoded path, /foo bar.
+ Reserved characters (see RFC 3986 section 2.2) can be present in
+ their percent-encoded form in scheme, domain, and path URI components and
+ will not be auto-decoded. For example:
+ goog.Uri.parse('rel%61tive/path%2fto/resource').getPath() will
+ return relative/path%2fto/resource.
+
The constructor accepts an optional unparsed, raw URI string. The parser
is relaxed, so special characters that aren't escaped but don't cause
ambiguities will not cause parse failures.
@@ -11,16 +17,16 @@
goog.Uri.parse('/foo').setFragment('part').toString().
Constructor
goog.Uri ( opt_uri, opt_ignoreCase )
Parameters
opt_uri: *=
Optional string URI to parse
(use goog.Uri.create() to create a URI from parts), or if
a goog.Uri is passed, a clone is created.
Resolves the given relative URI (a goog.Uri object), using the URI
represented by this instance as the base URI.
There are several kinds of relative URIs:
@@ -31,27 +37,29 @@
5. #foo - replace the fragment only
Additionally, if relative URI has a non-empty path, all ".." and "."
- segments will be resolved, as described in RFC 3986.
Sets whether to ignore case.
NOTE: If there are already key/value pairs in the QueryData, and
- ignoreCase_ is set to false, the keys will all be lower-cased.
Sets the values of the named query parameters, clearing previous values for
that key. Not new values will currently be moved to the end of the query
string.
So, goog.Uri.parse('foo?a=b&c=d&e=f').setParameterValues('c', ['new'])
yields foo?a=b&e=f&c=new.
If unescapedPart is non null, then escapes any characters in it that aren't
valid characters in a url and also escapes any special characters that
- appear in extra.
Creates a uri from the string form. Basically an alias of new goog.Uri().
If a Uri object is passed to parse then it will return a clone of the object.
If true, we preserve the type of query parameters set programmatically.
This means that if you set a parameter to a boolean, and then call
getParameterValue, you will get a boolean back.
@@ -59,5 +67,6 @@
If false, we will coerce parameters to strings, just as they would
appear in real URIs.
- TODO(nicksantos): Remove this once people have time to fix all tests.
Regular expression for characters that are disallowed in the scheme or
+ userInfo part of the URI.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_Uri_QueryData.html b/docs/api/javascript/class_goog_Uri_QueryData.html
index 4e5c64f93bf3c..f24f8dd4b0b09 100644
--- a/docs/api/javascript/class_goog_Uri_QueryData.html
+++ b/docs/api/javascript/class_goog_Uri_QueryData.html
@@ -1,34 +1,34 @@
-goog.Uri.QueryData
Class used to represent URI query parameters. It is essentially a hash of
name-value pairs, though a name can be present more than once.
Has the same interface as the collections in goog.structs.
Returns all the values of the parameters with the given name. If the query
data has no such key this will return an empty array. If no key is given
- all values wil be returned.
Ignore case in parameter names.
NOTE: If there are already key/value pairs in the QueryData, and
- ignoreCase_ is set to false, the keys will all be lower-cased.
The map containing name/value or name/array-of-values pairs.
May be null if it requires parsing from the query string.
We need to use a Map because we cannot guarantee that the key names will
- not be problematic for IE.
Creates a new query data instance from parallel arrays of parameter names
and values. Allows for duplicate parameter names. Throws an error if the
lengths of the arrays differ.
Map of string parameter
names to parameter value. If parameter value is an array, it is
treated as if the key maps to each individual value in the
array.
If true, ignore the case of the parameter
- name in #get.
Returns
The populated query data instance.
\ No newline at end of file
+ name in #get.
Returns
The populated query data instance.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_asserts_AssertionError.html b/docs/api/javascript/class_goog_asserts_AssertionError.html
index a435077782f26..9b81597a86e74 100644
--- a/docs/api/javascript/class_goog_asserts_AssertionError.html
+++ b/docs/api/javascript/class_goog_asserts_AssertionError.html
@@ -1,4 +1,4 @@
goog.asserts.AssertionError
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_async_run_WorkItem_.html b/docs/api/javascript/class_goog_async_run_WorkItem_.html
new file mode 100644
index 0000000000000..4cb9c4dc280bb
--- /dev/null
+++ b/docs/api/javascript/class_goog_async_run_WorkItem_.html
@@ -0,0 +1 @@
+goog.async.run.WorkItem_
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_debug_Error.html b/docs/api/javascript/class_goog_debug_Error.html
index 15eb56f7014be..0cf370c077303 100644
--- a/docs/api/javascript/class_goog_debug_Error.html
+++ b/docs/api/javascript/class_goog_debug_Error.html
@@ -1,2 +1,2 @@
goog.debug.Error
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_debug_LogBuffer.html b/docs/api/javascript/class_goog_debug_LogBuffer.html
new file mode 100644
index 0000000000000..51f289c253ae1
--- /dev/null
+++ b/docs/api/javascript/class_goog_debug_LogBuffer.html
@@ -0,0 +1,2 @@
+goog.debug.LogBuffer
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_debug_LogRecord.html b/docs/api/javascript/class_goog_debug_LogRecord.html
new file mode 100644
index 0000000000000..32c248eab93f0
--- /dev/null
+++ b/docs/api/javascript/class_goog_debug_LogRecord.html
@@ -0,0 +1,12 @@
+goog.debug.LogRecord
+ Sequence numbers are normally assigned in the LogRecord
+ constructor, which assigns unique sequence numbers to
+ each new LogRecord in increasing order.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_debug_Logger.html b/docs/api/javascript/class_goog_debug_Logger.html
new file mode 100644
index 0000000000000..6d70260a296e1
--- /dev/null
+++ b/docs/api/javascript/class_goog_debug_Logger.html
@@ -0,0 +1,59 @@
+goog.debug.Logger
The Logger is an object used for logging debug messages. Loggers are
+ normally named, using a hierarchical dot-separated namespace. Logger names
+ can be arbitrary strings, but they should normally be based on the package
+ name or class name of the logged component, such as goog.net.BrowserChannel.
+
+ The Logger object is loosely based on the java class
+ java.util.logging.Logger. It supports different levels of filtering for
+ different loggers.
+
+ The logger object should never be instantiated by application code. It
+ should always use the goog.debug.Logger.getLogger function.
Logs a message at the Logger.Level.CONFIG level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Logs a message at the Logger.Level.FINE level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Logs a message at the Logger.Level.FINER level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Logs a message at the Logger.Level.FINEST level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Gets the log level specifying which message levels will be logged by this
+ logger. Message levels lower than this value will be discarded.
+ The level value Level.OFF can be used to turn off logging. If the level
+ is null, it means that this node should inherit its level from its nearest
+ ancestor with a specific (non-null) level value.
Logs a message at the Logger.Level.INFO level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Checks if a message of the given level would actually be logged by this
+ logger. This check is based on the Loggers effective level, which may be
+ inherited from its parent.
Logs a message. If the logger is currently enabled for the
+ given message level then the given message is forwarded to all the
+ registered output Handler objects.
Logs a LogRecord. If the logger is currently enabled for the
+ given message level then the given message is forwarded to all the
+ registered output Handler objects.
Set the log level specifying which message levels will be logged by this
+ logger. Message levels lower than this value will be discarded.
+ The level value Level.OFF can be used to turn off logging. If the new level
+ is null, it means that this node should inherit its level from its nearest
+ ancestor with a specific (non-null) level value.
Logs a message at the Logger.Level.SEVERE level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Logs a message at the Logger.Level.SHOUT level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Logs a message at the Logger.Level.WARNING level.
+ If the logger is currently enabled for the given message level then the
+ given message is forwarded to all the registered output Handler objects.
Deprecated: use goog.log instead. http://go/goog-debug-logger-deprecated
Finds or creates a logger for a named subsystem. If a logger has already been
+ created with the given name it is returned. Otherwise a new logger is
+ created. If a new logger is created its log level will be configured based
+ on the LogManager configuration and it will configured to also send logging
+ output to its parent's handlers. It will be registered in the LogManager
+ global namespace.
A name for the logger. This should be a dot-separated
+ name and should normally be based on the package name or class name of the
+ subsystem, such as goog.net.BrowserChannel.
Logs a message to profiling tools, if available.
+ https://developers.google.com/web-toolkit/speedtracer/logging-api
+ http://msdn.microsoft.com/en-us/library/dd433074(VS.85).aspx
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_debug_Logger_Level.html b/docs/api/javascript/class_goog_debug_Logger_Level.html
new file mode 100644
index 0000000000000..3454ffdc60aa8
--- /dev/null
+++ b/docs/api/javascript/class_goog_debug_Logger_Level.html
@@ -0,0 +1,32 @@
+goog.debug.Logger.Level
The Level class defines a set of standard logging levels that
+ can be used to control logging output. The logging Level objects
+ are ordered and are specified by ordered integers. Enabling logging
+ at a given level also enables logging at all higher levels.
+
+ Clients should normally use the predefined Level constants such
+ as Level.SEVERE.
+
+ The levels in descending order are:
+
+
SEVERE (highest value)
+
WARNING
+
INFO
+
CONFIG
+
FINE
+
FINER
+
FINEST (lowest value)
+
+ In addition there is a level OFF that can be used to turn
+ off logging, and a level ALL that can be used to enable
+ logging of all messages.
A lookup map used to find the level object based on the name or value of
+ the level object.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_dom_DomHelper.html b/docs/api/javascript/class_goog_dom_DomHelper.html
new file mode 100644
index 0000000000000..caa6f2e78c94d
--- /dev/null
+++ b/docs/api/javascript/class_goog_dom_DomHelper.html
@@ -0,0 +1,104 @@
+goog.dom.DomHelper
The things to append to the node.
+ If this is a Node it is appended as is.
+ If this is a string then a text node is appended.
+ If this is an array like object then fields 0 to length - 1 are appended.
Compares the document order of two nodes, returning 0 if they are the same
+ node, a negative number if node1 is before node2, and a positive number if
+ node2 is before node1. Note that we compare the order the tags appear in the
+ document so in the tree text the B node is considered to be
+ before the I node.
Returns a dom node with a set of attributes. This function accepts varargs
+ for subsequent nodes to be added. Subsequent nodes will be added to the
+ first node as childNodes.
+
+ So:
+ createDom('div', null, createDom('p'), createDom('p'));
+ would return a div with two child paragraphs
+
+ An easy way to move all child nodes of an existing element to a new parent
+ element is:
+ createDom('div', null, oldElement.childNodes);
+ which will remove all child nodes from the old element and add them as
+ child nodes of the new DIV.
Walks up the DOM hierarchy returning the first ancestor that has the passed
+ class name. If the passed element matches the specified criteria, the
+ element itself is returned.
Walks up the DOM hierarchy returning the first ancestor that has the passed
+ tag name and/or class name. If the passed element matches the specified
+ criteria, the element itself is returned.
Looks up elements by both tag and class name, using browser native functions
+ (querySelectorAll, getElementsByTagName or
+ getElementsByClassName) where possible. The returned array is a live
+ NodeList or a static list depending on the code path taken.
Returns the node at a given offset in a parent node. If an object is
+ provided for the optional third parameter, the node and the remainder of the
+ offset will stored as properties of this object.
Object to be used to store the return value. The
+ return value will be stored in the form {node: Node, remainder: number}
+ if this object is provided.
Returns the text length of the text contained in a node, without markup. This
+ is equivalent to the selection length if the node was selected, or the number
+ of cursor movements to traverse the node. Images & BRs take one space. New
+ lines are ignored.
Returns the text offset of a node relative to one of its ancestors. The text
+ length is the same as the length calculated by
+ goog.dom.getNodeTextLength.
Gets an element by id, asserting that the element is found.
+
+ This is used when an element is expected to exist, and should fail with
+ an assertion error if it does not (if assertions are enabled).
Returns the text contents of the current node, without markup. New lines are
+ stripped and whitespace is collapsed, such that each character would be
+ visible.
+
+ In browsers that support it, innerText is used. Other browsers attempt to
+ simulate it via node traversal. Line breaks are canonicalized in IE.
Converts an HTML string into a node or a document fragment. A single Node
+ is used if the htmlString only generates a single node. If the
+ htmlString generates multiple nodes then these are put inside a
+ DocumentFragment.
Insert a child at a given index. If index is larger than the number of child
+ nodes that the parent currently has, the node is inserted as the last child
+ node.
Returns true if the element can be focused, i.e. it has a tab index that
+ allows it to receive keyboard focus (tabIndex >= 0), or it is an element
+ that natively supports keyboard focus.
Returns true if the element has a tab index that allows it to receive
+ keyboard focus (tabIndex >= 0), false otherwise. Note that some elements
+ natively support keyboard focus, even if they have no tab index.
Returns true if the object is a NodeList. To qualify as a NodeList,
+ the object must have a numeric length property and an item function (which
+ has type 'string' on IE for some reason).
Enables or disables keyboard focus support on the element via its tab index.
+ Only elements for which goog.dom.isFocusableTabIndex returns true
+ (or elements that natively support keyboard focus, like form elements) can
+ receive keyboard focus. See http://go/tabindex for more info.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_events_BrowserEvent.html b/docs/api/javascript/class_goog_events_BrowserEvent.html
new file mode 100644
index 0000000000000..ed9fdc9ef5482
--- /dev/null
+++ b/docs/api/javascript/class_goog_events_BrowserEvent.html
@@ -0,0 +1,25 @@
+goog.events.BrowserEvent
Accepts a browser event object and creates a patched, cross browser event
+ object.
+ The content of this object will not be initialized if no event object is
+ provided. If this is the case, init() needs to be invoked separately.
Tests to see which button was pressed during the event. This is really only
+ useful in IE and Gecko browsers. And in IE, it's only useful for
+ mousedown/mouseup events, because click only fires for the left mouse button.
+
+ Safari 2 only reports the left button being clicked, and uses the value '1'
+ instead of 0. Opera only reports a mousedown event for the middle button, and
+ no mouse events for the right button. Opera has default behavior for left and
+ middle click that can only be overridden via a configuration setting.
+
+ There's a nice table of this mess at http://www.unixpapa.com/js/mouse.html.
Whether this has an "action"-producing mouse button.
+
+ By definition, this includes left-click on windows/linux, and left-click
+ without the ctrl key on Macs.
Whether the default action has been prevented.
+ This is a property to match the W3C specification at
+ #events-event-type-defaultPrevented.
+ Must be treated as read-only outside the class.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_events_Event.html b/docs/api/javascript/class_goog_events_Event.html
new file mode 100644
index 0000000000000..654a97da64664
--- /dev/null
+++ b/docs/api/javascript/class_goog_events_Event.html
@@ -0,0 +1,16 @@
+goog.events.Event
Whether the default action has been prevented.
+ This is a property to match the W3C specification at
+ #events-event-type-defaultPrevented.
+ Must be treated as read-only outside the class.
Prevents the default action. It is equivalent to
+ e.preventDefault(), but can be used as the callback argument of
+ goog.events.listen without declaring another function.
Stops the propagation of the event. It is equivalent to
+ e.stopPropagation(), but can be used as the callback argument of
+ goog.events.listen without declaring another function.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_events_EventId.html b/docs/api/javascript/class_goog_events_EventId.html
new file mode 100644
index 0000000000000..451152687b027
--- /dev/null
+++ b/docs/api/javascript/class_goog_events_EventId.html
@@ -0,0 +1,10 @@
+goog.events.EventId
A templated class that is used when registering for events. Typical usage:
+
+ /** @type {goog.events.EventId.}
+ var myEventId = new goog.events.EventId(
+ goog.events.getUniqueId(('someEvent'));
+
+ // No need to cast or declare here since the compiler knows the correct
+ // type of 'evt' (MyEventObj).
+ something.listen(myEventId, function(evt) {});
+
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_events_EventTarget.html b/docs/api/javascript/class_goog_events_EventTarget.html
new file mode 100644
index 0000000000000..2cc42c83dab93
--- /dev/null
+++ b/docs/api/javascript/class_goog_events_EventTarget.html
@@ -0,0 +1,68 @@
+goog.events.EventTarget
An implementation of goog.events.Listenable with full W3C
+ EventTarget-like support (capture/bubble mechanism, stopping event
+ propagation, preventing default actions).
+
+ You may subclass this class to turn your class into a Listenable.
+
+ Unless propagation is stopped, an event dispatched by an
+ EventTarget will bubble to the parent returned by
+ getParentEventTarget. To set the parent, call
+ setParentEventTarget. Subclasses that don't support
+ changing the parent can override the setter to throw an error.
+
+ Example usage:
+
Deprecated: Use #listen instead, when possible. Otherwise, use
+ goog.events.listen if you are passing Object
+ (instead of Function) as handler.
Adds an event listener to the event target. The same handler can only be
+ added once per the type. Even if you add the same handler multiple times
+ using the same type then it will only be called once when the event is
+ dispatched.
The function
+ to handle the event. The handler can also be an object that implements
+ the handleEvent method which takes the event object as argument.
Removes listeners from this object. Classes that extend EventTarget may
+ need to override this method in order to remove references to DOM Elements
+ and additional listeners.
Deprecated: Use #unlisten instead, when possible. Otherwise, use
+ goog.events.unlisten if you are passing Object
+ (instead of Function) as handler.
Removes an event listener from the event target. The handler must be the
+ same object as the one added. If the handler has not been added then
+ nothing is done.
The function
+ to handle the event. The handler can also be an object that implements
+ the handleEvent method which takes the event object as argument.
Disposes of the object. If the object hasn't already been disposed of, calls
+ #disposeInternal. Classes that extend goog.Disposable should
+ override #disposeInternal in order to delete references to COM
+ objects, DOM nodes, and other disposable objects. Reentrant.
Parent event target, used during event bubbling.
+
+ TODO(user): Change this to goog.events.Listenable. This
+ currently breaks people who expect getParentEventTarget to return
+ goog.events.EventTarget.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_events_Listener.html b/docs/api/javascript/class_goog_events_Listener.html
new file mode 100644
index 0000000000000..7b718bc56740c
--- /dev/null
+++ b/docs/api/javascript/class_goog_events_Listener.html
@@ -0,0 +1,6 @@
+goog.events.Listener
A wrapper over the original listener. This is used solely to
+ handle native browser events (it is used to simulate the capture
+ phase and to patch the event object).
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_events_ListenerMap.html b/docs/api/javascript/class_goog_events_ListenerMap.html
new file mode 100644
index 0000000000000..2e5abb3ed4662
--- /dev/null
+++ b/docs/api/javascript/class_goog_events_ListenerMap.html
@@ -0,0 +1,23 @@
+goog.events.ListenerMap
Adds an event listener. A listener can only be added once to an
+ object and if it is added again the key for the listener is
+ returned.
+
+ Note that a one-off listener will not change an existing listener,
+ if any. On the other hand a normal listener will change existing
+ one-off listener to become a normal listener.
The index of the matching listener within the
+ listenerArray.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_iter_GroupByIterator_.html b/docs/api/javascript/class_goog_iter_GroupByIterator_.html
index 6331c61fcbd56..c2e0c02287c20 100644
--- a/docs/api/javascript/class_goog_iter_GroupByIterator_.html
+++ b/docs/api/javascript/class_goog_iter_GroupByIterator_.html
@@ -9,4 +9,4 @@
to only return the values. This is being used by the for-in loop (true)
and the for-each-in loop (false). Even though the param gives a hint
about what the iterator will return there is no guarantee that it will
- return the keys when true is passed.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_iter_Iterator.html b/docs/api/javascript/class_goog_iter_Iterator.html
index 9a08d8ff837e7..c1ed2cdc307ce 100644
--- a/docs/api/javascript/class_goog_iter_Iterator.html
+++ b/docs/api/javascript/class_goog_iter_Iterator.html
@@ -8,4 +8,4 @@
and the for-each-in loop (false). Even though the param gives a hint
about what the iterator will return there is no guarantee that it will
return the keys when true is passed.
Returns the next value of the iteration. This will throw the object
- goog.iter#StopIteration when the iteration passes the end.
Returns
Any object or value.
\ No newline at end of file
+ goog.iter#StopIteration when the iteration passes the end.
Returns
Any object or value.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_json_Serializer.html b/docs/api/javascript/class_goog_json_Serializer.html
index cb17974567047..9b83d58328ee3 100644
--- a/docs/api/javascript/class_goog_json_Serializer.html
+++ b/docs/api/javascript/class_goog_json_Serializer.html
@@ -1,4 +1,4 @@
-goog.json.Serializer
Regular expression used to match characters that need to be replaced.
The S60 browser has a bug where unicode characters are not matched by
regular expressions. The condition below detects such behaviour and
- adjusts the regular expression accordingly.
\ No newline at end of file
+ adjusts the regular expression accordingly.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_AllOfMatcher.html b/docs/api/javascript/class_goog_labs_testing_AllOfMatcher.html
index a8abeeb35580d..b407e608a27ae 100644
--- a/docs/api/javascript/class_goog_labs_testing_AllOfMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_AllOfMatcher.html
@@ -1,2 +1,2 @@
goog.labs.testing.AllOfMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_AnyOfMatcher.html b/docs/api/javascript/class_goog_labs_testing_AnyOfMatcher.html
index 69104a3e87acd..dfa33315f7223 100644
--- a/docs/api/javascript/class_goog_labs_testing_AnyOfMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_AnyOfMatcher.html
@@ -1 +1 @@
-goog.labs.testing.AnyOfMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_CloseToMatcher.html b/docs/api/javascript/class_goog_labs_testing_CloseToMatcher.html
index 6ba10dd700025..790d379926623 100644
--- a/docs/api/javascript/class_goog_labs_testing_CloseToMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_CloseToMatcher.html
@@ -1 +1 @@
-goog.labs.testing.CloseToMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_ContainsStringMatcher.html b/docs/api/javascript/class_goog_labs_testing_ContainsStringMatcher.html
index 0cff10fd5bca7..772335e2e1df5 100644
--- a/docs/api/javascript/class_goog_labs_testing_ContainsStringMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_ContainsStringMatcher.html
@@ -1 +1 @@
-goog.labs.testing.ContainsStringMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_EndsWithMatcher.html b/docs/api/javascript/class_goog_labs_testing_EndsWithMatcher.html
index 3a8150c400a77..b6e434f6d7b82 100644
--- a/docs/api/javascript/class_goog_labs_testing_EndsWithMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_EndsWithMatcher.html
@@ -1 +1 @@
-goog.labs.testing.EndsWithMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_EqualToIgnoringWhitespaceMatcher.html b/docs/api/javascript/class_goog_labs_testing_EqualToIgnoringWhitespaceMatcher.html
index de9baf2299bfc..f82d5983168e3 100644
--- a/docs/api/javascript/class_goog_labs_testing_EqualToIgnoringWhitespaceMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_EqualToIgnoringWhitespaceMatcher.html
@@ -1 +1 @@
-goog.labs.testing.EqualToIgnoringWhitespaceMatcher
Class goog.labs.testing.EqualToIgnoringWhitespaceMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_EqualToMatcher.html b/docs/api/javascript/class_goog_labs_testing_EqualToMatcher.html
index cab42687cfff9..81c5dcbdf611c 100644
--- a/docs/api/javascript/class_goog_labs_testing_EqualToMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_EqualToMatcher.html
@@ -1 +1 @@
-goog.labs.testing.EqualToMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_EqualsMatcher.html b/docs/api/javascript/class_goog_labs_testing_EqualsMatcher.html
index bec6a9e1866e7..ab302cc419e97 100644
--- a/docs/api/javascript/class_goog_labs_testing_EqualsMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_EqualsMatcher.html
@@ -1 +1 @@
-goog.labs.testing.EqualsMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_GreaterThanEqualToMatcher.html b/docs/api/javascript/class_goog_labs_testing_GreaterThanEqualToMatcher.html
index dc0eef558076e..75cfdab953da7 100644
--- a/docs/api/javascript/class_goog_labs_testing_GreaterThanEqualToMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_GreaterThanEqualToMatcher.html
@@ -1 +1 @@
-goog.labs.testing.GreaterThanEqualToMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_GreaterThanMatcher.html b/docs/api/javascript/class_goog_labs_testing_GreaterThanMatcher.html
index d6833fc8ceb05..841df16fabf9f 100644
--- a/docs/api/javascript/class_goog_labs_testing_GreaterThanMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_GreaterThanMatcher.html
@@ -1 +1 @@
-goog.labs.testing.GreaterThanMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_HasPropertyMatcher.html b/docs/api/javascript/class_goog_labs_testing_HasPropertyMatcher.html
index 20cbe1b194ec9..457b6c5b3651a 100644
--- a/docs/api/javascript/class_goog_labs_testing_HasPropertyMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_HasPropertyMatcher.html
@@ -1 +1 @@
-goog.labs.testing.HasPropertyMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_InstanceOfMatcher.html b/docs/api/javascript/class_goog_labs_testing_InstanceOfMatcher.html
index 28672ce494617..255bd2e2f737c 100644
--- a/docs/api/javascript/class_goog_labs_testing_InstanceOfMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_InstanceOfMatcher.html
@@ -1 +1 @@
-goog.labs.testing.InstanceOfMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_IsNotMatcher.html b/docs/api/javascript/class_goog_labs_testing_IsNotMatcher.html
index 3900ba621391e..a36c7ceb8145f 100644
--- a/docs/api/javascript/class_goog_labs_testing_IsNotMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_IsNotMatcher.html
@@ -1 +1 @@
-goog.labs.testing.IsNotMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_IsNullMatcher.html b/docs/api/javascript/class_goog_labs_testing_IsNullMatcher.html
index 2f49dbb692f59..2873c4fc56dca 100644
--- a/docs/api/javascript/class_goog_labs_testing_IsNullMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_IsNullMatcher.html
@@ -1 +1 @@
-goog.labs.testing.IsNullMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_IsNullOrUndefinedMatcher.html b/docs/api/javascript/class_goog_labs_testing_IsNullOrUndefinedMatcher.html
index 6dfc0164b9c44..40eff3573d0ce 100644
--- a/docs/api/javascript/class_goog_labs_testing_IsNullOrUndefinedMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_IsNullOrUndefinedMatcher.html
@@ -1 +1 @@
-goog.labs.testing.IsNullOrUndefinedMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_IsUndefinedMatcher.html b/docs/api/javascript/class_goog_labs_testing_IsUndefinedMatcher.html
index 195756d210a23..e5414711e5d88 100644
--- a/docs/api/javascript/class_goog_labs_testing_IsUndefinedMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_IsUndefinedMatcher.html
@@ -1 +1 @@
-goog.labs.testing.IsUndefinedMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_LessThanEqualToMatcher.html b/docs/api/javascript/class_goog_labs_testing_LessThanEqualToMatcher.html
index c2b056d1e153d..ffd26c372779b 100644
--- a/docs/api/javascript/class_goog_labs_testing_LessThanEqualToMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_LessThanEqualToMatcher.html
@@ -1 +1 @@
-goog.labs.testing.LessThanEqualToMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_LessThanMatcher.html b/docs/api/javascript/class_goog_labs_testing_LessThanMatcher.html
index d6ef5aa532ed4..3dc64a1e5f5c7 100644
--- a/docs/api/javascript/class_goog_labs_testing_LessThanMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_LessThanMatcher.html
@@ -1 +1 @@
-goog.labs.testing.LessThanMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_MatcherError.html b/docs/api/javascript/class_goog_labs_testing_MatcherError.html
index d59d8cd09a416..8edf8d8d8b508 100644
--- a/docs/api/javascript/class_goog_labs_testing_MatcherError.html
+++ b/docs/api/javascript/class_goog_labs_testing_MatcherError.html
@@ -1,3 +1,3 @@
goog.labs.testing.MatcherError
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_ObjectEqualsMatcher.html b/docs/api/javascript/class_goog_labs_testing_ObjectEqualsMatcher.html
index c1866469f6346..12d8f280ad10e 100644
--- a/docs/api/javascript/class_goog_labs_testing_ObjectEqualsMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_ObjectEqualsMatcher.html
@@ -1 +1 @@
-goog.labs.testing.ObjectEqualsMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_RegexMatcher.html b/docs/api/javascript/class_goog_labs_testing_RegexMatcher.html
index a2c868ff9df6e..db2df2ee4193a 100644
--- a/docs/api/javascript/class_goog_labs_testing_RegexMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_RegexMatcher.html
@@ -1 +1 @@
-goog.labs.testing.RegexMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_StartsWithMatcher.html b/docs/api/javascript/class_goog_labs_testing_StartsWithMatcher.html
index d365ba056bdc6..df9f7381e6f82 100644
--- a/docs/api/javascript/class_goog_labs_testing_StartsWithMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_StartsWithMatcher.html
@@ -1 +1 @@
-goog.labs.testing.StartsWithMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_labs_testing_StringContainsInOrderMatcher.html b/docs/api/javascript/class_goog_labs_testing_StringContainsInOrderMatcher.html
index 8b3943844f30a..02b0b872a6a82 100644
--- a/docs/api/javascript/class_goog_labs_testing_StringContainsInOrderMatcher.html
+++ b/docs/api/javascript/class_goog_labs_testing_StringContainsInOrderMatcher.html
@@ -1 +1 @@
-goog.labs.testing.StringContainsInOrderMatcher
Class goog.labs.testing.StringContainsInOrderMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_math_Box.html b/docs/api/javascript/class_goog_math_Box.html
new file mode 100644
index 0000000000000..84531c7dd9379
--- /dev/null
+++ b/docs/api/javascript/class_goog_math_Box.html
@@ -0,0 +1,23 @@
+goog.math.Box
Class for representing a box. A box is specified as a top, right, bottom,
+ and left. A box is useful for representing margins and padding.
+
+ This class assumes 'screen coordinates': larger Y coordinates are further
+ from the top of the screen.
Expand this box to include another box.
+ NOTE(user): This is used in code that needs to be very fast, please don't
+ add functionality to this function at the expense of speed (variable
+ arguments, accepting multiple argument types, etc).
Scales this coordinate by the given scale factors. The x and y dimension
+ values are scaled by sx and opt_sy respectively.
+ If opt_sy is not given, then sx is used for both x and y.
Translates this box by the given offsets. If a goog.math.Coordinate
+ is given, then the left and right values are translated by the coordinate's
+ x value and the top and bottom values are translated by the coordinate's y
+ value. Otherwise, tx and opt_ty are used to translate the x
+ and y dimension values.
The y position of coord relative to the nearest
+ side of box, or zero if coord is inside box.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_math_Coordinate.html b/docs/api/javascript/class_goog_math_Coordinate.html
new file mode 100644
index 0000000000000..c1e4989638e73
--- /dev/null
+++ b/docs/api/javascript/class_goog_math_Coordinate.html
@@ -0,0 +1,22 @@
+goog.math.Coordinate
Scales this coordinate by the given scale factors. The x and y values are
+ scaled by sx and opt_sy respectively. If opt_sy
+ is not given, then sx is used for both x and y.
Translates this box by the given offsets. If a goog.math.Coordinate
+ is given, then the x and y values are translated by the coordinate's x and y.
+ Otherwise, x and y are translated by tx and opt_ty
+ respectively.
Returns the squared distance between two coordinates. Squared distances can
+ be used for comparisons when the actual value is not required.
+
+ Performance note: eliminating the square root is an optimization often used
+ in lower-level languages, but the speed difference is not nearly as
+ pronounced in JavaScript (only a few percent.)
A Coordinate representing the sum of the two
+ coordinates.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_math_Rect.html b/docs/api/javascript/class_goog_math_Rect.html
new file mode 100644
index 0000000000000..3b077ebbe0151
--- /dev/null
+++ b/docs/api/javascript/class_goog_math_Rect.html
@@ -0,0 +1,34 @@
+goog.math.Rect
Computes the difference regions between this rectangle and rect. The
+ return value is an array of 0 to 4 rectangles defining the remaining regions
+ of this rectangle after the other has been subtracted.
Scales this rectangle by the given scale factors. The left and width values
+ are scaled by sx and the top and height values are scaled by
+ opt_sy. If opt_sy is not given, then all fields are scaled
+ by sx.
Translates this rectangle by the given offsets. If a
+ goog.math.Coordinate is given, then the left and top values are
+ translated by the coordinate's x and y values. Otherwise, top and left are
+ translated by tx and opt_ty respectively.
Computes the difference regions between two rectangles. The return value is
+ an array of 0 to 4 rectangles defining the remaining regions of the first
+ rectangle after the second has been subtracted.
Returns the intersection of two rectangles. Two rectangles intersect if they
+ touch at all, for example, two zero width and height rectangles would
+ intersect if they had the same top and left.
Returns whether two rectangles intersect. Two rectangles intersect if they
+ touch at all, for example, two zero width and height rectangles would
+ intersect if they had the same top and left.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_math_Size.html b/docs/api/javascript/class_goog_math_Size.html
new file mode 100644
index 0000000000000..efb7ff6aee44b
--- /dev/null
+++ b/docs/api/javascript/class_goog_math_Size.html
@@ -0,0 +1,10 @@
+goog.math.Size
Scales this size by the given scale factors. The width and height are scaled
+ by sx and opt_sy respectively. If opt_sy is not
+ given, then sx is used for both the width and height.
Uniformly scales the size to fit inside the dimensions of a given size. The
+ original aspect ratio will be preserved.
+
+ This function assumes that both Sizes contain strictly positive dimensions.
True iff the sizes have equal widths and equal
+ heights, or if both are null.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_net_DefaultXmlHttpFactory.html b/docs/api/javascript/class_goog_net_DefaultXmlHttpFactory.html
index 926ca60f70604..054fd935d1e1d 100644
--- a/docs/api/javascript/class_goog_net_DefaultXmlHttpFactory.html
+++ b/docs/api/javascript/class_goog_net_DefaultXmlHttpFactory.html
@@ -1,4 +1,4 @@
goog.net.DefaultXmlHttpFactory
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_net_WrapperXmlHttpFactory.html b/docs/api/javascript/class_goog_net_WrapperXmlHttpFactory.html
index aee1ef2e393a6..927086d689ed0 100644
--- a/docs/api/javascript/class_goog_net_WrapperXmlHttpFactory.html
+++ b/docs/api/javascript/class_goog_net_WrapperXmlHttpFactory.html
@@ -4,4 +4,4 @@
with an unchanged signature.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_net_XmlHttpFactory.html b/docs/api/javascript/class_goog_net_XmlHttpFactory.html
index fb9ff8d08c40b..849e5eec4897f 100644
--- a/docs/api/javascript/class_goog_net_XmlHttpFactory.html
+++ b/docs/api/javascript/class_goog_net_XmlHttpFactory.html
@@ -1,4 +1,4 @@
goog.net.XmlHttpFactory
Cache of options - we only actually call internalGetOptions once.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_structs_Map.html b/docs/api/javascript/class_goog_structs_Map.html
index 161f995c9994d..68fa850f4d91c 100644
--- a/docs/api/javascript/class_goog_structs_Map.html
+++ b/docs/api/javascript/class_goog_structs_Map.html
@@ -25,4 +25,4 @@
This array can contain deleted keys so it's necessary to check the map
as well to see if the key is still in the map (this doesn't require a
memory allocation in IE).
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_structs_Set.html b/docs/api/javascript/class_goog_structs_Set.html
new file mode 100644
index 0000000000000..306ff303be1ff
--- /dev/null
+++ b/docs/api/javascript/class_goog_structs_Set.html
@@ -0,0 +1,28 @@
+goog.structs.Set
A set that can contain both primitives and objects. Adding and removing
+ elements is O(1). Primitives are treated as identical if they have the same
+ type and convert to the same string. Objects are treated as identical only
+ if they are references to the same object. WARNING: A goog.structs.Set can
+ contain both 1 and (new Number(1)), because they are not the same. WARNING:
+ Adding (new Number(1)) twice will yield two distinct elements, because they
+ are two different objects. WARNING: Any object that is added to a
+ goog.structs.Set will be modified! Because goog.getUid() is used to
+ identify objects, every object in the set will be mutated.
Tests whether this set contains all the values in a given collection.
+ Repeated elements in the collection are ignored, e.g. (new
+ goog.structs.Set([1, 2])).containsAll([1, 1]) is True.
Tests whether the given collection consists of the same elements as this set,
+ regardless of order, without repetition. Primitives are treated as equal if
+ they have the same type and convert to the same string; objects are treated
+ as equal if they are references to the same object. This operation is O(n).
Tests whether the given collection contains all the elements in this set.
+ Primitives are treated as equal if they have the same type and convert to the
+ same string; objects are treated as equal if they are references to the same
+ object. This operation is O(n).
Obtains a unique key for an element of the set. Primitives will yield the
+ same key if they have the same type and convert to the same string. Object
+ references will yield the same key only if they refer to the same object.
Parameters
val: *
Object or primitive value to get a key for.
Returns
A unique key for this value/object.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_AsyncTestCase.html b/docs/api/javascript/class_goog_testing_AsyncTestCase.html
new file mode 100644
index 0000000000000..22a3b14900c2c
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_AsyncTestCase.html
@@ -0,0 +1,81 @@
+goog.testing.AsyncTestCase
Informs the testcase not to continue to the next step in the test cycle
+ until signal is called the specified number of times. Within a test, this
+ function behaves additively if called multiple times; the number of signals
+ to wait for will be the sum of all expected number of signals this function
+ was called with.
Adds any functions defined in the global scope that correspond to
+ lifecycle events for the test case. Overrides setUp, tearDown, setUpPage,
+ tearDownPage and runTests if they are defined.
Gets list of objects that potentially contain test cases. For IE 8 and below,
+ this is the global "this" (for properties set directly on the global this or
+ window) and the RuntimeObject (for global variables and functions). For all
+ other browsers, the array simply contains the global this.
An optional prefix. If specified, only get things
+ under this prefix. Note that the prefix is only honored in IE, since it
+ supports the RuntimeObject:
+ http://msdn.microsoft.com/en-us/library/ff521039%28VS.85%29.aspx
+ TODO: Remove this option.
Checks to see if the test should be marked as failed before it is run.
+
+ If there was an error in setUpPage, we treat that as a failure for all tests
+ and mark them all as having failed.
Can be overridden in test classes to indicate whether the tests in a case
+ should be run in that particular situation. For example, this could be used
+ to stop tests running in a particular browser, where browser support for
+ the class under test was absent.
Returns
Whether any of the tests in the case should be run.
The number of times we have thrown a ControlBreakingException so that we
+ know not to complain in our window.onerror handler. In Webkit, window.onerror
+ is not supported, and so this counter will keep going up but we won't care
+ about it.
How long to wait after a failed test before moving onto the next one.
+ The purpose of this is to allow any pending async callbacks from the failing
+ test to finish up and not cause the next test to fail.
Time since the last batch of tests was started, if batchTime exceeds
+ #maxRunTime a timeout will be used to stop the tests blocking the
+ browser and a new batch will be started.
Set of test names and/or indices to execute, or null if all tests should
+ be executed.
+
+ Indices are included to allow automation tools to run a subset of the
+ tests without knowing the exact contents of the test file.
+
+ Indices should only be used with SORTED ordering.
+
+ Example valid values:
+
+
[testName]
+
[testName1, testName2]
+
[2] - will run the 3rd test in the order specified
+
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_AsyncTestCase_ControlBreakingException.html b/docs/api/javascript/class_goog_testing_AsyncTestCase_ControlBreakingException.html
new file mode 100644
index 0000000000000..1336ae2689c18
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_AsyncTestCase_ControlBreakingException.html
@@ -0,0 +1 @@
+goog.testing.AsyncTestCase.ControlBreakingException
Class goog.testing.AsyncTestCase.ControlBreakingException
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_FunctionCall.html b/docs/api/javascript/class_goog_testing_FunctionCall.html
new file mode 100644
index 0000000000000..1b6b6e8254f1d
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_FunctionCall.html
@@ -0,0 +1,2 @@
+goog.testing.FunctionCall
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_JsUnitException.html b/docs/api/javascript/class_goog_testing_JsUnitException.html
new file mode 100644
index 0000000000000..2b0f8ae5acde7
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_JsUnitException.html
@@ -0,0 +1,2 @@
+goog.testing.JsUnitException
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_LooseExpectationCollection.html b/docs/api/javascript/class_goog_testing_LooseExpectationCollection.html
new file mode 100644
index 0000000000000..cf6bd5247927b
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_LooseExpectationCollection.html
@@ -0,0 +1,4 @@
+goog.testing.LooseExpectationCollection
This class is an ordered collection of expectations for one method. Since
+ the loose mock does most of its verification at the time of $verify, this
+ class is necessary to manage the return/throw behavior when the mock is
+ being called.
The list of expectations. All of these should have the same name.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_LooseMock.html b/docs/api/javascript/class_goog_testing_LooseMock.html
new file mode 100644
index 0000000000000..c08bb544fc8bd
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_LooseMock.html
@@ -0,0 +1,25 @@
+goog.testing.LooseMock
This is a mock that does not care about the order of method calls. As a
+ result, it won't throw exceptions until verify() is called. The only
+ exception is that if a method is called that has no expectations, then an
+ exception will be thrown.
If this expectation defines a function to be called,
+ it will be called and its result will be returned.
+ Otherwise, if the expectation expects to throw, it will throw.
+ Otherwise, this method will return defined value.
Specifies a function to call for currently pending expectation.
+ Note, that using this method overrides declarations made
+ using $returns() and $throws() methods.
The calls that have been made; we cache them to verify at the end. Each
+ element is an array where the first element is the name, and the second
+ element is the arguments.
The expectation currently being created. All methods that modify the
+ current expectation return the Mock object for easy chaining, so this is
+ where we keep track of the expectation that's currently being modified.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_Mock.html b/docs/api/javascript/class_goog_testing_Mock.html
new file mode 100644
index 0000000000000..6cfe20de9e347
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_Mock.html
@@ -0,0 +1,29 @@
+goog.testing.Mock
If this expectation defines a function to be called,
+ it will be called and its result will be returned.
+ Otherwise, if the expectation expects to throw, it will throw.
+ Otherwise, this method will return defined value.
Specifies a function to call for currently pending expectation.
+ Note, that using this method overrides declarations made
+ using $returns() and $throws() methods.
Records an actual method call, intended to be overridden by a
+ subclass. The subclass must find the pending expectation and return the
+ correct value.
The expectation currently being created. All methods that modify the
+ current expectation return the Mock object for easy chaining, so this is
+ where we keep track of the expectation that's currently being modified.
Option that may be passed when constructing function, method, and
+ constructor mocks. Indicates that the expected calls should be accepted in
+ any order.
Option that may be passed when constructing function, method, and
+ constructor mocks. Indicates that the expected calls should be accepted in
+ the recorded order only.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_MockClock.html b/docs/api/javascript/class_goog_testing_MockClock.html
new file mode 100644
index 0000000000000..894cd5571a925
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_MockClock.html
@@ -0,0 +1,66 @@
+goog.testing.MockClock
Class for unit testing code that uses setTimeout and clearTimeout.
+
+ NOTE: If you are using MockClock to test code that makes use of
+ goog.fx.Animation, then you must either:
+
+ 1. Install and dispose of the MockClock in setUpPage() and tearDownPage()
+ respectively (rather than setUp()/tearDown()).
+
+ or
+
+ 2. Ensure that every test clears the animation queue by calling
+ mockClock.tick(x) at the end of each test function (where `x` is large
+ enough to complete all animations).
+
+ Otherwise, if any animation is left pending at the time that
+ MockClock.dispose() is called, that will permanently prevent any future
+ animations from playing on the page.
Whether the timer has been set and not cleared,
+ independent of the timeout's expiration. In other words, the timeout
+ could have passed or could be scheduled for the future. Either way,
+ this function returns true or false depending only on whether the
+ provided timeoutKey represents a timeout that has been set and not
+ cleared.
Disposes of the object. If the object hasn't already been disposed of, calls
+ #disposeInternal. Classes that extend goog.Disposable should
+ override #disposeInternal in order to delete references to COM
+ objects, DOM nodes, and other disposable objects. Reentrant.
Reverse-order queue of timers to fire.
+
+ The last item of the queue is popped off. Insertion happens from the
+ right. For example, the expiration times for each element of the queue
+ might be in the order 300, 200, 200.
Additional delay between the time a timeout was set to fire, and the time
+ it actually fires. Useful for testing workarounds for this Firefox 2 bug:
+ https://bugzilla.mozilla.org/show_bug.cgi?id=291386
+ May be negative.
Inserts a timer descriptor into a descending-order queue.
+
+ Later-inserted duplicates appear at lower indices. For example, the
+ asterisk in (5,4,*,3,2,1) would be the insertion point for 3.
Maximum 32-bit signed integer.
+
+ Timeouts over this time return immediately in many browsers, due to integer
+ overflow. Such known browsers include Firefox, Chrome, and Safari, but not
+ IE.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_MockControl.html b/docs/api/javascript/class_goog_testing_MockControl.html
new file mode 100644
index 0000000000000..661a96c45bd99
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_MockControl.html
@@ -0,0 +1,22 @@
+goog.testing.MockControl
Creates a controlled MethodMock for a constructor. Passes its arguments
+ through to the MethodMock constructor. See
+ goog.testing.createConstructorMock for details.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_MockExpectation.html b/docs/api/javascript/class_goog_testing_MockExpectation.html
new file mode 100644
index 0000000000000..261918026d807
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_MockExpectation.html
@@ -0,0 +1,3 @@
+goog.testing.MockExpectation
The function which will be executed when this method is called.
+ Method arguments will be passed to this function, and return value
+ of this function will be returned by the method.
The number of times this method is called during the verification phase.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_ObjectPropertyString.html b/docs/api/javascript/class_goog_testing_ObjectPropertyString.html
new file mode 100644
index 0000000000000..4195cc7e764d0
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_ObjectPropertyString.html
@@ -0,0 +1,3 @@
+goog.testing.ObjectPropertyString
Object to pass a property name as a string literal and its containing object
+ when the JSCompiler is rewriting these names. This should only be used in
+ test code.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_PropertyReplacer.html b/docs/api/javascript/class_goog_testing_PropertyReplacer.html
new file mode 100644
index 0000000000000..14dd9134cab3e
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_PropertyReplacer.html
@@ -0,0 +1,46 @@
+goog.testing.PropertyReplacer
Helper class for stubbing out variables and object properties for unit tests.
+ This class can change the value of some variables before running the test
+ cases, and to reset them in the tearDown phase.
+ See googletest.StubOutForTesting as an analogy in Python:
+ http://protobuf.googlecode.com/svn/trunk/python/stubout.py
+
+ Example usage:
+
var stubs = new goog.testing.PropertyReplacer();
+
+ function setUp() {
+ // Mock functions used in all test cases.
+ stubs.set(Math, 'random', function() {
+ return 4; // Chosen by fair dice roll. Guaranteed to be random.
+ });
+ }
+
+ function tearDown() {
+ stubs.reset();
+ }
+
+ function testThreeDice() {
+ // Mock a constant used only in this test case.
+ stubs.set(goog.global, 'DICE_COUNT', 3);
+ assertEquals(12, rollAllDice());
+ }
+
+ Constraints on altered objects:
+
+
DOM subclasses aren't supported.
+
The value of the objects' constructor property must either be equal to
+ the real constructor or kept untouched.
+
Changes an existing value in an object to another one of the same type while
+ saving its original state. The advantage of replace over #set
+ is that replace protects against typos and erroneously passing tests
+ after some members have been renamed during a refactoring.
Stores the values changed by the set() method in chronological order.
+ Its items are objects with 3 fields: 'object', 'key', 'value'. The
+ original value for the given key in the given object is stored under the
+ 'value' key.
Indicates that a key didn't exist before having been set by the set() method.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_StrictMock.html b/docs/api/javascript/class_goog_testing_StrictMock.html
new file mode 100644
index 0000000000000..aae28140333ee
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_StrictMock.html
@@ -0,0 +1,23 @@
+goog.testing.StrictMock
This is a mock that verifies that methods are called in the order that they
+ are specified during the recording phase. Since it verifies order, it
+ follows 'fail fast' semantics. If it detects a deviation from the
+ expectations, it will throw an exception and not wait for verify to be
+ called.
If this expectation defines a function to be called,
+ it will be called and its result will be returned.
+ Otherwise, if the expectation expects to throw, it will throw.
+ Otherwise, this method will return defined value.
Specifies a function to call for currently pending expectation.
+ Note, that using this method overrides declarations made
+ using $returns() and $throws() methods.
The expectation currently being created. All methods that modify the
+ current expectation return the Mock object for easy chaining, so this is
+ where we keep track of the expectation that's currently being modified.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_TestCase.html b/docs/api/javascript/class_goog_testing_TestCase.html
new file mode 100644
index 0000000000000..cd35ab84e374f
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_TestCase.html
@@ -0,0 +1,85 @@
+goog.testing.TestCase
A class representing a JsUnit test case. A TestCase is made up of a number
+ of test functions which can be run. Individual test cases can override the
+ following functions to set up their test environment:
+ - runTests - completely override the test's runner
+ - setUpPage - called before any of the test functions are run
+ - tearDownPage - called after all tests are finished
+ - setUp - called before each of the test functions
+ - tearDown - called after each of the test functions
+ - shouldRunTests - called before a test run, all tests are skipped if it
+ returns false. Can be used to disable tests on browsers
+ where they aren't expected to pass.
+
+ Use #autoDiscoverLifecycle and #autoDiscoverTests
Adds any functions defined in the global scope that correspond to
+ lifecycle events for the test case. Overrides setUp, tearDown, setUpPage,
+ tearDownPage and runTests if they are defined.
Gets list of objects that potentially contain test cases. For IE 8 and below,
+ this is the global "this" (for properties set directly on the global this or
+ window) and the RuntimeObject (for global variables and functions). For all
+ other browsers, the array simply contains the global this.
An optional prefix. If specified, only get things
+ under this prefix. Note that the prefix is only honored in IE, since it
+ supports the RuntimeObject:
+ http://msdn.microsoft.com/en-us/library/ff521039%28VS.85%29.aspx
+ TODO: Remove this option.
Checks to see if the test should be marked as failed before it is run.
+
+ If there was an error in setUpPage, we treat that as a failure for all tests
+ and mark them all as having failed.
Executes each of the tests.
+ Overridable by the individual test case. This allows test cases to defer
+ when the test is actually started. If overridden, finalize must be called
+ by the test to indicate it has finished.
Can be overridden in test classes to indicate whether the tests in a case
+ should be run in that particular situation. For example, this could be used
+ to stop tests running in a particular browser, where browser support for
+ the class under test was absent.
Returns
Whether any of the tests in the case should be run.
Time since the last batch of tests was started, if batchTime exceeds
+ #maxRunTime a timeout will be used to stop the tests blocking the
+ browser and a new batch will be started.
Set of test names and/or indices to execute, or null if all tests should
+ be executed.
+
+ Indices are included to allow automation tools to run a subset of the
+ tests without knowing the exact contents of the test file.
+
+ Indices should only be used with SORTED ordering.
+
+ Example valid values:
+
+
[testName]
+
[testName1, testName2]
+
[2] - will run the 3rd test in the order specified
+
Gets list of objects that potentially contain test cases. For IE 8 and below,
+ this is the global "this" (for properties set directly on the global this or
+ window) and the RuntimeObject (for global variables and functions). For all
+ other browsers, the array simply contains the global this.
An optional prefix. If specified, only get things
+ under this prefix. Note that the prefix is only honored in IE, since it
+ supports the RuntimeObject:
+ http://msdn.microsoft.com/en-us/library/ff521039%28VS.85%29.aspx
+ TODO: Remove this option.
The maximum amount of time that the test can run before we force it to be
+ async. This prevents the test runner from blocking the browser and
+ potentially hurting the Selenium test harness.
Saved string referencing goog.global.setTimeout's string serialization. IE
+ sometimes fails to uphold equality for setTimeout, but the string version
+ stays the same.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_TestCase_Error.html b/docs/api/javascript/class_goog_testing_TestCase_Error.html
new file mode 100644
index 0000000000000..dbe77b29fb4e3
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_TestCase_Error.html
@@ -0,0 +1 @@
+goog.testing.TestCase.Error
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_TestCase_Result.html b/docs/api/javascript/class_goog_testing_TestCase_Result.html
new file mode 100644
index 0000000000000..094cf67a31eea
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_TestCase_Result.html
@@ -0,0 +1,5 @@
+goog.testing.TestCase.Result
Test results for each test that was run. The test name is always added
+ as the key in the map, and the array of strings is an optional list
+ of failure messages. If the array is empty, the test passed. Otherwise,
+ the test failed.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_TestCase_Test.html b/docs/api/javascript/class_goog_testing_TestCase_Test.html
new file mode 100644
index 0000000000000..16aac26f1bd28
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_TestCase_Test.html
@@ -0,0 +1,2 @@
+goog.testing.TestCase.Test
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_TestCase_protectedDate_.html b/docs/api/javascript/class_goog_testing_TestCase_protectedDate_.html
new file mode 100644
index 0000000000000..3087ec288c2a8
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_TestCase_protectedDate_.html
@@ -0,0 +1,3 @@
+goog.testing.TestCase.protectedDate_
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_TestRunner.html b/docs/api/javascript/class_goog_testing_TestRunner.html
new file mode 100644
index 0000000000000..c3cde335720b7
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_TestRunner.html
@@ -0,0 +1,17 @@
+goog.testing.TestRunner
Construct a test runner.
+
+ NOTE(user): This is currently pretty weird, I'm essentially trying to
+ create a wrapper that the Selenium test can hook into to query the state of
+ the running test case, while making goog.testing.TestCase general.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_events_Event.html b/docs/api/javascript/class_goog_testing_events_Event.html
new file mode 100644
index 0000000000000..4c0df8e09fd49
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_events_Event.html
@@ -0,0 +1,6 @@
+goog.testing.events.Event
goog.events.BrowserEvent expects an Event so we provide one for JSCompiler.
+
+ This clones a lot of the functionality of goog.events.Event. This used to
+ use a mixin, but the mixin results in confusing the two types when compiled.
Return value for in internal capture/bubble processing for IE.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_mockmatchers_ArgumentMatcher.html b/docs/api/javascript/class_goog_testing_mockmatchers_ArgumentMatcher.html
new file mode 100644
index 0000000000000..ffc68fdb9cade
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_mockmatchers_ArgumentMatcher.html
@@ -0,0 +1,9 @@
+goog.testing.mockmatchers.ArgumentMatcher
A simple interface for executing argument matching. A match in this case is
+ testing to see if a supplied object fits a given criteria. True is returned
+ if the given criteria is met.
A function that takes a match argument and an optional MockExpectation
+ which (if provided) will get error information and returns whether or
+ not it matches.
A string indicating the match intent (e.g. isBoolean or isString).
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_mockmatchers_IgnoreArgument.html b/docs/api/javascript/class_goog_testing_mockmatchers_IgnoreArgument.html
new file mode 100644
index 0000000000000..4d325c4afccab
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_mockmatchers_IgnoreArgument.html
@@ -0,0 +1,8 @@
+goog.testing.mockmatchers.IgnoreArgument
A matcher that always returns true. It is useful when the user does not care
+ for some arguments.
+ For example: mockFunction('username', 'password', IgnoreArgument);
A function that takes a match argument and an optional MockExpectation
+ which (if provided) will get error information and returns whether or
+ not it matches.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_mockmatchers_InstanceOf.html b/docs/api/javascript/class_goog_testing_mockmatchers_InstanceOf.html
new file mode 100644
index 0000000000000..a5f073b098819
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_mockmatchers_InstanceOf.html
@@ -0,0 +1,6 @@
+goog.testing.mockmatchers.InstanceOf
A function that takes a match argument and an optional MockExpectation
+ which (if provided) will get error information and returns whether or
+ not it matches.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_mockmatchers_ObjectEquals.html b/docs/api/javascript/class_goog_testing_mockmatchers_ObjectEquals.html
new file mode 100644
index 0000000000000..967af0423ec7b
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_mockmatchers_ObjectEquals.html
@@ -0,0 +1,5 @@
+goog.testing.mockmatchers.ObjectEquals
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_mockmatchers_RegexpMatch.html b/docs/api/javascript/class_goog_testing_mockmatchers_RegexpMatch.html
new file mode 100644
index 0000000000000..641c947579f45
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_mockmatchers_RegexpMatch.html
@@ -0,0 +1,6 @@
+goog.testing.mockmatchers.RegexpMatch
A function that takes a match argument and an optional MockExpectation
+ which (if provided) will get error information and returns whether or
+ not it matches.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_mockmatchers_SaveArgument.html b/docs/api/javascript/class_goog_testing_mockmatchers_SaveArgument.html
new file mode 100644
index 0000000000000..54da2714679b6
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_mockmatchers_SaveArgument.html
@@ -0,0 +1,8 @@
+goog.testing.mockmatchers.SaveArgument
A matcher that saves the argument that it is verifying so that your unit test
+ can perform extra tests with this argument later. For example, if the
+ argument is a callback method, the unit test can then later call this
+ callback to test the asynchronous portion of the call.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_mockmatchers_TypeOf.html b/docs/api/javascript/class_goog_testing_mockmatchers_TypeOf.html
new file mode 100644
index 0000000000000..8835d33ee43f9
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_mockmatchers_TypeOf.html
@@ -0,0 +1,6 @@
+goog.testing.mockmatchers.TypeOf
A function that takes a match argument and an optional MockExpectation
+ which (if provided) will get error information and returns whether or
+ not it matches.
\ No newline at end of file
diff --git a/docs/api/javascript/class_goog_testing_stacktrace_Frame.html b/docs/api/javascript/class_goog_testing_stacktrace_Frame.html
new file mode 100644
index 0000000000000..460cb267c81fb
--- /dev/null
+++ b/docs/api/javascript/class_goog_testing_stacktrace_Frame.html
@@ -0,0 +1,6 @@
+goog.testing.stacktrace.Frame
Alias of the function if available. For example the
+ function name will be 'c' and the alias will be 'b' if the function is
+ defined as a.b = function c() {};.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_AbstractBuilder.html b/docs/api/javascript/class_webdriver_AbstractBuilder.html
index a8dc544aeaa99..1b1363e74bf88 100644
--- a/docs/api/javascript/class_webdriver_AbstractBuilder.html
+++ b/docs/api/javascript/class_webdriver_AbstractBuilder.html
@@ -5,10 +5,12 @@
Defines the remote WebDriver server that should be used for command
command execution; may be overridden using
webdriver.AbstractBuilder.prototype.usingServer.
Configures which WebDriver server should be used for new sessions. Overrides
the value loaded from the webdriver.AbstractBuilder.SERVER_URL_ENV
upon creation of this instance.
Environment variable that defines the URL of the WebDriver server that
should be used for all new WebDriver clients. This setting may be overridden
- using #usingServer(url).
\ No newline at end of file
+ using #usingServer(url).
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_ActionSequence.html b/docs/api/javascript/class_webdriver_ActionSequence.html
index 86ec373ff4bd7..084051b9693c2 100644
--- a/docs/api/javascript/class_webdriver_ActionSequence.html
+++ b/docs/api/javascript/class_webdriver_ActionSequence.html
@@ -84,4 +84,4 @@
provided as a button.
Simulates typing multiple keys. Each modifier key encountered in the
sequence will not be released until it is encountered again. All key events
- will be targetted at the currently focused element.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_Alert.html b/docs/api/javascript/class_webdriver_Alert.html
index 4778843dbc2d9..581819e679b6f 100644
--- a/docs/api/javascript/class_webdriver_Alert.html
+++ b/docs/api/javascript/class_webdriver_Alert.html
@@ -1,85 +1,12 @@
-webdriver.Alert
Represents a modal dialog such as alert, confirm, or
prompt. Provides functions to retrieve the message displayed with
the alert, accept or dismiss the alert, and set the response text (in the
case of prompt).
Sets the response text on this alert. This command will return an error if
the underlying alert does not support response text (e.g. window.alert and
window.confirm).
Resolves this promise with the given value. If the value is itself a
- promise and not a reference to this deferred, this instance will wait for
- it before resolving.
Registers a listener to invoke when this promise is resolved, regardless
- of whether the promise's value was successfully computed. This function
- is synonymous with the finally clause in a synchronous API:
-
-
- Note: similar to the finally clause, if the registered
- callback returns a rejected promise or throws an error, it will silently
- replace the rejection error (if any) from this promise:
-
Represents the eventual value of a completed operation. Each promise may be
- in one of three states: pending, resolved, or rejected. Each promise starts
- in the pending state and may make a single transition to either a
- fulfilled or failed state.
-
-
This class is based on the Promise/A proposal from CommonJS. Additional
- functions are provided for API compatibility with Dojo Deferred objects.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_AlertPromise.html b/docs/api/javascript/class_webdriver_AlertPromise.html
new file mode 100644
index 0000000000000..d3793cb3ded15
--- /dev/null
+++ b/docs/api/javascript/class_webdriver_AlertPromise.html
@@ -0,0 +1,20 @@
+webdriver.AlertPromise
AlertPromise is a promise that will be fulfilled with an Alert. This promise
+ serves as a forward proxy on an Alert, allowing calls to be scheduled
+ directly on this instance before the underlying Alert has been fulfilled. In
+ other words, the following two statements are equivalent:
+
Sets the response text on this alert. This command will return an error if
+ the underlying alert does not support response text (e.g. window.alert and
+ window.confirm).
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_Builder.html b/docs/api/javascript/class_webdriver_Builder.html
index f650658502444..a67f28c4f54f0 100644
--- a/docs/api/javascript/class_webdriver_Builder.html
+++ b/docs/api/javascript/class_webdriver_Builder.html
@@ -3,7 +3,9 @@
to reuse.
Configures which WebDriver server should be used for new sessions. Overrides
the value loaded from the webdriver.AbstractBuilder.SERVER_URL_ENV
upon creation of this instance.
The desired
@@ -19,4 +21,4 @@
default to creating clients that use this session. To create a new session,
use #useExistingSession(boolean). The use of this environment
variable requires that webdriver.AbstractBuilder.SERVER_URL_ENV also
- be set.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_Capabilities.html b/docs/api/javascript/class_webdriver_Capabilities.html
index 12d3834d9807b..ee5d1f143d034 100644
--- a/docs/api/javascript/class_webdriver_Capabilities.html
+++ b/docs/api/javascript/class_webdriver_Capabilities.html
@@ -1,9 +1,15 @@
-webdriver.Capabilities
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_Command.html b/docs/api/javascript/class_webdriver_Command.html
index 77ec1daf7b2ba..2b7442bc4d8f0 100644
--- a/docs/api/javascript/class_webdriver_Command.html
+++ b/docs/api/javascript/class_webdriver_Command.html
@@ -1 +1 @@
-webdriver.Command
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_EventEmitter.html b/docs/api/javascript/class_webdriver_EventEmitter.html
index 0289852279a2a..411f1921049c9 100644
--- a/docs/api/javascript/class_webdriver_EventEmitter.html
+++ b/docs/api/javascript/class_webdriver_EventEmitter.html
@@ -4,4 +4,4 @@
the first event is fired.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_FirefoxDomExecutor.html b/docs/api/javascript/class_webdriver_FirefoxDomExecutor.html
index 2e72f35605344..6057523d80233 100644
--- a/docs/api/javascript/class_webdriver_FirefoxDomExecutor.html
+++ b/docs/api/javascript/class_webdriver_FirefoxDomExecutor.html
@@ -1,2 +1,2 @@
webdriver.FirefoxDomExecutor
Whether the current environment supports the
- FirefoxDomExecutor.
\ No newline at end of file
+ FirefoxDomExecutor.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_Locator.html b/docs/api/javascript/class_webdriver_Locator.html
index c6876e32f58bc..0b349d8aee6ed 100644
--- a/docs/api/javascript/class_webdriver_Locator.html
+++ b/docs/api/javascript/class_webdriver_Locator.html
@@ -1,2 +1,2 @@
webdriver.Locator
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_Session.html b/docs/api/javascript/class_webdriver_Session.html
index 5aa83a40ddcbe..220d7a570743e 100644
--- a/docs/api/javascript/class_webdriver_Session.html
+++ b/docs/api/javascript/class_webdriver_Session.html
@@ -1,3 +1,3 @@
webdriver.Session
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_UnhandledAlertError.html b/docs/api/javascript/class_webdriver_UnhandledAlertError.html
index 6162b910cdf5a..f3f06da71eb0c 100644
--- a/docs/api/javascript/class_webdriver_UnhandledAlertError.html
+++ b/docs/api/javascript/class_webdriver_UnhandledAlertError.html
@@ -1,6 +1,7 @@
-webdriver.UnhandledAlertError
Flag used for duck-typing when this code is embedded in a Firefox extension.
This is required since an Error thrown in one component and then reported
- to another will fail instanceof checks in the second component.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebDriver.html b/docs/api/javascript/class_webdriver_WebDriver.html
index d49e341886632..8d793ce942813 100644
--- a/docs/api/javascript/class_webdriver_WebDriver.html
+++ b/docs/api/javascript/class_webdriver_WebDriver.html
@@ -1,4 +1,4 @@
-webdriver.WebDriver
Creates a new WebDriver client, which provides control over a browser.
Every WebDriver command returns a webdriver.promise.Promise that
represents the result of that command. Callbacks may be registered on this
@@ -17,7 +17,7 @@
Creates a new action sequence using this driver. The sequence will not be
scheduled for execution until webdriver.ActionSequence#perform is
called. Example:
Schedules a command to execute asynchronous JavaScript in the context of the
currently selected frame or window. The script fragment will be executed as
the body of an anonymous function. If the script is provided as a function
object, that function will be converted to a string for injection into the
@@ -79,7 +79,7 @@
'var callback = arguments[arguments.length - 1];' +
'mailClient.getComposeWindowWidget().onload(callback);');
driver.switchTo().frame('composeWidget');
- driver.findElement(By.id('to')).sendKEys('dog@example.com');
+ driver.findElement(By.id('to')).sendKeys('dog@example.com');
Example #3: Injecting a XMLHttpRequest and waiting for the result. In this
@@ -94,7 +94,7 @@
xhr.open("GET", "/resource/data.json", true);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
- callback(xhr.resposneText);
+ callback(xhr.responseText);
}
}
xhr.send('');
@@ -102,7 +102,7 @@
console.log(JSON.parse(str)['food']);
});
Schedules a command to execute JavaScript in the context of the currently
selected frame or window. The script fragment will be executed as the body
of an anonymous function. If the script is provided as a function object,
that function will be converted to a string for injection into the target
@@ -132,14 +132,14 @@
For arrays and objects, each member item will be converted according to
the rules above
Locates a DOM element so that commands may be issued against it using the
webdriver.WebElement class. This is accomplished by storing a
reference to the element in an object on the element's ownerDocument.
#executeScript will then be used to create a WebElement from this
reference. This requires this driver to currently be focused on the
ownerDocument's window+frame.
Schedule a command to find an element on the page. If the element cannot be
found, a bot.ErrorCode.NO_SUCH_ELEMENT result will be returned
by the driver. Unlike other commands, this error cannot be suppressed. In
other words, scheduling a command to find an element doubles as an assert
@@ -182,39 +182,39 @@
bot.ErrorCode.NO_SUCH_ELEMENT error will be returned.
A WebElement that can be used to issue
commands against the located element. If the element is not found, the
- element will be invalidated and all scheduled commands aborted.
Schedules a command to retrieve the current page's source. The page source
returned is a representation of the underlying DOM: do not expect it to be
formatted or escaped in the same way as the response sent from the web
server.
Returns
A promise that will be
- resolved with the current page source.
Schedules a command to test if an element is present on the page.
If given a DOM element, this function will check if it belongs to the
document the driver is currently focused on. Otherwise, the function will
test if at least one element can be found with the given search criteria.
Schedules a command to quit the current session. After calling quit, this
instance will be invalidated and may no longer be used to issue commands
against the browser.
Returns
A promise that will be resolved
- when the command has completed.
Schedules a command to wait for a condition to hold, as defined by some
user supplied function. If any errors occur while evaluating the wait, they
will be allowed to propagate.
-
In the event a condition returns a webdriver.promise.Promise, the
- polling loop will wait for it to be resolved and use the resolved value for
+
In the event a condition returns a webdriver.promise.Promise, the
+ polling loop will wait for it to be resolved and use the resolved value for
evaluating whether the condition has been satisfied. The resolution time for
a promise is factored into whether a wait has timed out.
Sends a command to the server that is expected to return the details for a
webdriver.Session. This may either be an existing session, or a
newly created one.
The control flow all driver
+ commands should execute under, including the initial session creation.
+ Defaults to the currently active
+ control flow.
Converts a value from its JSON representation according to the WebDriver wire
protocol. Any JSON object containing a
webdriver.WebElement.ELEMENT_KEY key will be decoded to a
webdriver.WebElement object. All other values will be passed through
as is.
Converts an object to its JSON representation in the WebDriver wire protocol.
When converting values of type object, the following steps will be taken:
-
if the object provides a "toWireValue" function, the return value will
- be returned in its fully resolved state (e.g. this function may return
- promise values)
+
if the object is a WebElement, the return value will be the element's
+ server ID
if the object provides a "toJSON" function, the return value of this
function will be returned
otherwise, the value of each key will be recursively converted according
to the rules above.
Parameters
obj: *
The object to convert.
Returns
A promise that will resolve to the
- input value's JSON representation.
\ No newline at end of file
+ input value's JSON representation.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebDriver_Logs.html b/docs/api/javascript/class_webdriver_WebDriver_Logs.html
index a4976c6d71116..8c5295bda3b45 100644
--- a/docs/api/javascript/class_webdriver_WebDriver_Logs.html
+++ b/docs/api/javascript/class_webdriver_WebDriver_Logs.html
@@ -1,4 +1,4 @@
-webdriver.WebDriver.Logs
Note that log buffers are reset after each call, meaning that
available log entries correspond to those entries not yet returned for a
@@ -6,5 +6,5 @@
available log entries since the last call, or from the start of the
session.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebDriver_Navigation.html b/docs/api/javascript/class_webdriver_WebDriver_Navigation.html
index d2ac0dbaedd33..864fb17629597 100644
--- a/docs/api/javascript/class_webdriver_WebDriver_Navigation.html
+++ b/docs/api/javascript/class_webdriver_WebDriver_Navigation.html
@@ -1,5 +1,5 @@
-webdriver.WebDriver.Navigation
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebDriver_Options.html b/docs/api/javascript/class_webdriver_WebDriver_Options.html
index 3e4e2f12badd6..f3025663723eb 100644
--- a/docs/api/javascript/class_webdriver_WebDriver_Options.html
+++ b/docs/api/javascript/class_webdriver_WebDriver_Options.html
@@ -1,17 +1,17 @@
-webdriver.WebDriver.Options
Schedules a command to delete the cookie with the given name. This command is
a no-op if there is no cookie with the given name visible to the current
page.
Schedules a command to retrieve the cookie with the given name. Returns null
if there is no such cookie. The cookie will be returned as a JSON object as
described by the WebDriver wire protocol.
Schedules a command to retrieve all cookies visible to the current page.
Each cookie will be returned as a JSON object as described by the WebDriver
wire protocol.
Returns
A promise that will be
- resolved with the cookies visible to the current page.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebDriver_TargetLocator.html b/docs/api/javascript/class_webdriver_WebDriver_TargetLocator.html
index b63420e12a413..65817d5587062 100644
--- a/docs/api/javascript/class_webdriver_WebDriver_TargetLocator.html
+++ b/docs/api/javascript/class_webdriver_WebDriver_TargetLocator.html
@@ -1,10 +1,10 @@
-webdriver.WebDriver.TargetLocator
Schedules a command to change focus to the active alert dialog. This command
- will return a bot.ErrorCode.NO_MODAL_DIALOG_OPEN error if a modal
- dialog is not currently open.
Schedules a command to change focus to the active alert dialog. This command
+ will return a bot.ErrorCode.NO_SUCH_ALERT error if an alert dialog
+ is not currently open.
Schedules a command to switch the focus of all future commands to another
frame on the page.
If the frame is specified by a number, the command will switch to the frame
@@ -17,11 +17,11 @@
If the specified frame can not be found, the deferred result will errback
with a bot.ErrorCode.NO_SUCH_FRAME error.
Schedules a command to switch the focus of all future commands to another
window. Windows may be specified by their window.name attribute or
by its handle (as returned by webdriver.WebDriver#getWindowHandles).
If the specificed window can not be found, the deferred result will errback
with a bot.ErrorCode.NO_SUCH_WINDOW error.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebDriver_Timeouts.html b/docs/api/javascript/class_webdriver_WebDriver_Timeouts.html
index 918a6bc798388..2f074f05777c4 100644
--- a/docs/api/javascript/class_webdriver_WebDriver_Timeouts.html
+++ b/docs/api/javascript/class_webdriver_WebDriver_Timeouts.html
@@ -1,4 +1,4 @@
-webdriver.WebDriver.Timeouts
Specifies the amount of time the driver should wait when searching for an
element if it is not immediately present.
When searching for a single element, the driver should poll the page
@@ -13,9 +13,9 @@
Increasing the implicit wait timeout should be used judiciously as it
will have an adverse effect on test run time, especially when used with
slower location strategies like XPath.
Sets the amount of time to wait, in milliseconds, for an asynchronous script
to finish execution before returning an error. If the timeout is less than or
equal to 0, the script will be allowed to run indefinitely.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebDriver_Window.html b/docs/api/javascript/class_webdriver_WebDriver_Window.html
index 16c11836f3b9e..b06f8cc7faa35 100644
--- a/docs/api/javascript/class_webdriver_WebDriver_Window.html
+++ b/docs/api/javascript/class_webdriver_WebDriver_Window.html
@@ -1,11 +1,11 @@
-webdriver.WebDriver.Window
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebElement.html b/docs/api/javascript/class_webdriver_WebElement.html
index 4f34f4126d720..f0435375eed75 100644
--- a/docs/api/javascript/class_webdriver_WebElement.html
+++ b/docs/api/javascript/class_webdriver_WebElement.html
@@ -1,6 +1,4 @@
-webdriver.WebElement
Represents a DOM element. WebElements can be found by searching from the
document root using a webdriver.WebDriver instance, or by searching
under another webdriver.WebElement:
@@ -21,13 +19,12 @@
alert('The element was not found, as expected');
});
Schedules a command to clear the value of this element. This command
has no effect if the underlying DOM element is neither a text INPUT element
nor a TEXTAREA element.
Returns
A promise that will be resolved
- when the element has been cleared.
Schedule a command to find a descendant of this element. If the element
cannot be found, a bot.ErrorCode.NO_SUCH_ELEMENT result will
be returned by the driver. Unlike other commands, this error cannot be
suppressed. In other words, scheduling a command to find an element doubles
@@ -61,10 +58,10 @@
The
locator strategy to use when searching for the element.
Returns
A WebElement that can be used to issue
commands against the located element. If the element is not found, the
- element will be invalidated and all scheduled commands aborted.
Schedules a command to query for the value of the given attribute of the
element. Will return the current value, even if it has been modified after
the page has been loaded. More exactly, this method will return the value of
the given attribute, unless that attribute is not present, in which case the
@@ -88,7 +85,7 @@
Schedules a command to query for the computed style of the element
represented by this instance. If the element inherits the named style from
its parent, the parent will be queried for its value. Where possible, color
values will be converted to their hex representation (e.g. #00ff00 instead of
@@ -97,27 +94,29 @@
Warning: the value returned will be as the browser interprets it, so
it may be tricky to form a proper assertion.
Schedules a command that targets this element with the parent WebDriver
instance. Will ensure this element's ID is included in the command parameters
under the "id" key.
Schedules a command to submit the form containing this element (or this
element if it is a FORM element). This command is a no-op if the element is
not contained in a form.
Returns
A promise that will be resolved
- when the form has been submitted.
Resolves this promise with the given value. If the value is itself a
- promise and not a reference to this deferred, this instance will wait for
- it before resolving.
Registers a listener to invoke when this promise is resolved, regardless
- of whether the promise's value was successfully computed. This function
- is synonymous with the finally clause in a synchronous API:
-
-
- Note: similar to the finally clause, if the registered
- callback returns a rejected promise or throws an error, it will silently
- replace the rejection error (if any) from this promise:
-
Represents the eventual value of a completed operation. Each promise may be
- in one of three states: pending, resolved, or rejected. Each promise starts
- in the pending state and may make a single transition to either a
- fulfilled or failed state.
-
-
This class is based on the Promise/A proposal from CommonJS. Additional
- functions are provided for API compatibility with Dojo Deferred objects.
The property key used in the wire protocol to indicate that a JSON object
+ contains the ID of a WebElement.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_WebElementPromise.html b/docs/api/javascript/class_webdriver_WebElementPromise.html
new file mode 100644
index 0000000000000..6c6f9aa31c8fd
--- /dev/null
+++ b/docs/api/javascript/class_webdriver_WebElementPromise.html
@@ -0,0 +1,147 @@
+webdriver.WebElementPromise
WebElementPromise is a promise that will be fulfilled with a WebElement.
+ This serves as a forward proxy on WebElement, allowing calls to be
+ scheduled without directly on this instance before the underlying
+ WebElement has been fulfilled. In other words, the following two statements
+ are equivalent:
+
Schedules a command to clear the value of this element. This command
+ has no effect if the underlying DOM element is neither a text INPUT element
+ nor a TEXTAREA element.
Returns
A promise that will be resolved
+ when the element has been cleared.
Schedule a command to find a descendant of this element. If the element
+ cannot be found, a bot.ErrorCode.NO_SUCH_ELEMENT result will
+ be returned by the driver. Unlike other commands, this error cannot be
+ suppressed. In other words, scheduling a command to find an element doubles
+ as an assert that the element is present on the page. To test whether an
+ element is present on the page, use #isElementPresent instead.
+
+
The search criteria for an element may be defined using one of the
+ factories in the webdriver.By namespace, or as a short-hand
+ webdriver.By.Hash object. For example, the following two statements
+ are equivalent:
+
+ var e1 = element.findElement(By.id('foo'));
+ var e2 = element.findElement({id:'foo'});
+
+
+
You may also provide a custom locator function, which takes as input
+ this WebDriver instance and returns a webdriver.WebElement, or a
+ promise that will resolve to a WebElement. For example, to find the first
+ visible link on a page, you could write:
+
+ var link = element.findElement(firstVisibleLink);
+
+ function firstVisibleLink(element) {
+ var links = element.findElements(By.tagName('a'));
+ return webdriver.promise.filter(links, function(link) {
+ return links.isDisplayed();
+ }).then(function(visibleLinks) {
+ return visibleLinks[0];
+ });
+ }
+
The
+ locator strategy to use when searching for the element.
Returns
A WebElement that can be used to issue
+ commands against the located element. If the element is not found, the
+ element will be invalidated and all scheduled commands aborted.
Schedules a command to query for the value of the given attribute of the
+ element. Will return the current value, even if it has been modified after
+ the page has been loaded. More exactly, this method will return the value of
+ the given attribute, unless that attribute is not present, in which case the
+ value of the property with the same name is returned. If neither value is
+ set, null is returned (for example, the "value" property of a textarea
+ element). The "style" attribute is converted as best can be to a
+ text representation with a trailing semi-colon. The following are deemed to
+ be "boolean" attributes and will return either "true" or null:
+
+
Schedules a command to query for the computed style of the element
+ represented by this instance. If the element inherits the named style from
+ its parent, the parent will be queried for its value. Where possible, color
+ values will be converted to their hex representation (e.g. #00ff00 instead of
+ rgb(0, 255, 0)).
+
+ Warning: the value returned will be as the browser interprets it, so
+ it may be tricky to form a proper assertion.
Schedules a command that targets this element with the parent WebDriver
+ instance. Will ensure this element's ID is included in the command parameters
+ under the "id" key.
Schedules a command to type a sequence on the DOM element represented by this
+ instance.
+
+ Modifier keys (SHIFT, CONTROL, ALT, META) are stateful; once a modifier is
+ processed in the keysequence, that key state is toggled until one of the
+ following occurs:
+
+
The modifier key is encountered again in the sequence. At this point the
+ state of the key is toggled (along with the appropriate keyup/down events).
+
+
The webdriver.Key.NULL key is encountered in the sequence. When
+ this key is encountered, all modifier keys current in the down state are
+ released (with accompanying keyup events). The NULL key can be used to
+ simulate common keyboard shortcuts:
+
The end of the keysequence is encountered. When there are no more keys
+ to type, all depressed modifier keys are released (with accompanying keyup
+ events).
+
+
+ Note: On browsers where native keyboard events are not yet
+ supported (e.g. Firefox on OS X), key events will be synthesized. Special
+ punctionation keys will be synthesized according to a standard QWERTY en-us
+ keyboard layout.
Schedules a command to submit the form containing this element (or this
+ element if it is a FORM element). This command is a no-op if the element is
+ not contained in a form.
Returns
A promise that will be resolved
+ when the form has been submitted.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_http_CorsClient.html b/docs/api/javascript/class_webdriver_http_CorsClient.html
index 7a7b1f118af24..cbffd877677dd 100644
--- a/docs/api/javascript/class_webdriver_http_CorsClient.html
+++ b/docs/api/javascript/class_webdriver_http_CorsClient.html
@@ -30,4 +30,4 @@
onerror handler, but without the corresponding response text returned by
the server. This renders IE and Opera incapable of handling command
failures in the standard JSON protocol.
-
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_http_Executor.html b/docs/api/javascript/class_webdriver_http_Executor.html
index 1e656a36c529e..6082a43df5d5c 100644
--- a/docs/api/javascript/class_webdriver_http_Executor.html
+++ b/docs/api/javascript/class_webdriver_http_Executor.html
@@ -5,4 +5,4 @@
corresponding parameter. All parameters spliced into the path will be
removed from the parameter map.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_http_Request.html b/docs/api/javascript/class_webdriver_http_Request.html
index 2c4efb5e9bba6..d5619977966ec 100644
--- a/docs/api/javascript/class_webdriver_http_Request.html
+++ b/docs/api/javascript/class_webdriver_http_Request.html
@@ -1,4 +1,4 @@
webdriver.http.Request
Describes a partial HTTP request. This class is a "partial" request and only
defines the path on the server to send a request to. It is each
webdriver.http.Client's responsibility to build the full URL for the
- final request.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_http_Response.html b/docs/api/javascript/class_webdriver_http_Response.html
index c39d270d72653..6c4b1d483a700 100644
--- a/docs/api/javascript/class_webdriver_http_Response.html
+++ b/docs/api/javascript/class_webdriver_http_Response.html
@@ -1,3 +1,3 @@
webdriver.http.Response
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_http_XhrClient.html b/docs/api/javascript/class_webdriver_http_XhrClient.html
index d53dfaa096929..1ed338f5a30d4 100644
--- a/docs/api/javascript/class_webdriver_http_XhrClient.html
+++ b/docs/api/javascript/class_webdriver_http_XhrClient.html
@@ -1 +1 @@
-webdriver.http.XhrClient
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_logging_Entry.html b/docs/api/javascript/class_webdriver_logging_Entry.html
index c6f0822e0d666..dc38ad599f43b 100644
--- a/docs/api/javascript/class_webdriver_logging_Entry.html
+++ b/docs/api/javascript/class_webdriver_logging_Entry.html
@@ -1,4 +1,4 @@
-webdriver.logging.Entry
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_logging_Preferences.html b/docs/api/javascript/class_webdriver_logging_Preferences.html
new file mode 100644
index 0000000000000..cc633e8b9617e
--- /dev/null
+++ b/docs/api/javascript/class_webdriver_logging_Preferences.html
@@ -0,0 +1,2 @@
+webdriver.logging.Preferences
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_promise_CanceledTaskError_.html b/docs/api/javascript/class_webdriver_promise_CanceledTaskError_.html
index 5c5061396cdc2..95c978bb2b50f 100644
--- a/docs/api/javascript/class_webdriver_promise_CanceledTaskError_.html
+++ b/docs/api/javascript/class_webdriver_promise_CanceledTaskError_.html
@@ -1,4 +1,4 @@
-webdriver.promise.CanceledTaskError_
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_promise_ControlFlow.html b/docs/api/javascript/class_webdriver_promise_ControlFlow.html
index b76cc7e840c01..872a5ab005e87 100644
--- a/docs/api/javascript/class_webdriver_promise_ControlFlow.html
+++ b/docs/api/javascript/class_webdriver_promise_ControlFlow.html
@@ -1,4 +1,4 @@
-webdriver.promise.ControlFlow
Handles the execution of scheduled tasks, each of which may be an
asynchronous operation. The control flow will ensure tasks are executed in
the ordered scheduled, starting each task only once those before it have
@@ -23,44 +23,46 @@
webdriver.promise.ControlFlow.EventType.UNCAUGHT_EXCEPTION event. If
there are no listeners registered with the flow, the error will be
rethrown to the global error handler.
Aborts the current frame. The frame, and all of the tasks scheduled within it
will be discarded. If this instance does not have an active frame, it will
immediately terminate all execution.
Parameters
error: *
The reason the frame is being aborted; typically either
- an Error or string.
Aborts this flow, abandoning all remaining tasks. If there are
listeners registered, an UNCAUGHT_EXCEPTION will be emitted with the
offending error, otherwise, the error will be rethrown to the
global error handler.
Parameters
error: *
Object describing the error that caused the flow to
- abort; usually either an Error or string value.
Appends a summary of this instance's recent task history to the given
error's stack trace. This function will also ensure the error's stack trace
- is in canonical form.
Commences the shutdown sequence for this instance. After one turn of the
event loop, this object will emit the
webdriver.promise.ControlFlow.EventType.IDLE event to signal
listeners that it has completed. During this wait, if another task is
- scheduled, the shutdown will be aborted.
Schedules a task for execution. If there is nothing currently in the
+ queue, the task will be executed in the next turn of the event loop. If
+ the task function is a generator, the task will be executed using
+ webdriver.promise.consume.
The function to
call to start the task. If the function returns a
webdriver.promise.Promise, this instance will wait for it to be
resolved before starting the next task.
Returns a summary of the recent task activity for this instance. This
includes the most recently completed task, as well as any parent tasks. In
the returned summary, the task at index N is considered a sub-task of the
task at index N+1.
Returns
A summary of this instance's recent task
- activity.
Executes the next task for the current frame. If the current frame has no
more tasks, the frame's result will be resolved, returning control to the
frame's creator. This will terminate the flow if the completed frame was at
- the top of the stack.
Executes a function in a new frame. If the function does not schedule any new
tasks, the frame will be discarded and the function's result returned
immediately. Otherwise, a promise will be returned. This promise will be
resolved with the function's result once all of the tasks scheduled within
the function have been completed. If the function's frame is aborted, the
returned promise will be rejected.
A list of recent tasks. Each time a new task is started, or a frame is
completed, the previously recorded task is removed from this list. If
there are multiple tasks, task N+1 is considered a sub-task of task
- N.
Each time a promise is rejected and is not handled by a listener, it will
schedule a 0-based timeout to check if it is still unrejected in the next
@@ -96,11 +98,11 @@
When this flow's own event loop triggers, it will not run if there
are any outstanding promise rejections. This allows unhandled promises to
be reported before a new task is started, ensuring the error is reported to
- the current task queue.
A reference to the frame in which new tasks should be scheduled. If
null, tasks will be scheduled within the active frame. When forcing
a function to run in the context of a new frame, this pointer is used to
ensure tasks are scheduled within the newly created frame, even though it
- won't be active yet.
Timeout ID set when the flow is about to shutdown without any errors
being detected. Upon shutting down, the flow will emit an
webdriver.promise.ControlFlow.EventType.IDLE event. Idle events
always follow a brief timeout in order to catch latent errors from the last
@@ -113,5 +115,5 @@
function() { return webdriver.promise.rejected('failed'); });
// Set a callback on the result. This delays reporting the unhandled
// failure for 1 turn of the event loop.
- result.then(goog.nullFunction);
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_promise_Deferred.html b/docs/api/javascript/class_webdriver_promise_Deferred.html
index 97444694edf8e..430ae0c86187b 100644
--- a/docs/api/javascript/class_webdriver_promise_Deferred.html
+++ b/docs/api/javascript/class_webdriver_promise_Deferred.html
@@ -1,5 +1,5 @@
-webdriver.promise.Deferred
Represents a value that will be resolved at some point in the future. This
class represents the protected "producer" half of a Promise - each Deferred
has a promise property that may be returned to consumers for
registering callbacks, reserving the ability to resolve the deferred to the
@@ -14,73 +14,14 @@
truth-y value to override the reason provided for rejection.
Resolves this promise with the given value. If the value is itself a
promise and not a reference to this deferred, this instance will wait for
- it before resolving.
Registers a listener to invoke when this promise is resolved, regardless
- of whether the promise's value was successfully computed. This function
- is synonymous with the finally clause in a synchronous API:
-
-
- Note: similar to the finally clause, if the registered
- callback returns a rejected promise or throws an error, it will silently
- replace the rejection error (if any) from this promise:
-
Represents the eventual value of a completed operation. Each promise may be
in one of three states: pending, resolved, or rejected. Each promise starts
in the pending state and may make a single transition to either a
- fulfilled or failed state.
-
-
This class is based on the Promise/A proposal from CommonJS. Additional
- functions are provided for API compatibility with Dojo Deferred objects.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_promise_Frame_.html b/docs/api/javascript/class_webdriver_promise_Frame_.html
index a13555e573ee9..19134a691caa9 100644
--- a/docs/api/javascript/class_webdriver_promise_Frame_.html
+++ b/docs/api/javascript/class_webdriver_promise_Frame_.html
@@ -1,14 +1,14 @@
-webdriver.promise.Frame_
Marks all of the tasks that are descendants of this frame in the execution
tree as cancelled. This is necessary for callbacks scheduled asynchronous.
For example:
@@ -27,71 +27,14 @@
// flow failed: Error: boom
// task failed! CanceledTaskError: Task discarded due to a previous
// task failure: Error: boom
Resolves this promise with the given value. If the value is itself a
promise and not a reference to this deferred, this instance will wait for
- it before resolving.
Registers a listener to invoke when this promise is resolved, regardless
- of whether the promise's value was successfully computed. This function
- is synonymous with the finally clause in a synchronous API:
-
-
- Note: similar to the finally clause, if the registered
- callback returns a rejected promise or throws an error, it will silently
- replace the rejection error (if any) from this promise:
-
Whether this frame is active. A frame is considered active once one of its
descendants has been removed for execution.
Adding a sub-frame as a child to an active frame is an indication that
@@ -104,15 +47,13 @@
flow.execute('this should execute 2nd', goog.nullFunction);
});
flow.execute('this should execute last', goog.nullFunction);
-
Whether this frame is currently locked. A locked frame represents a callback
or task function which has run to completion and scheduled all of its tasks.
Once a frame becomes active, any new frames which are
added represent callbacks on a webdriver.promise.Deferred, whose
- tasks must be given priority over previously scheduled tasks.
Represents the eventual value of a completed operation. Each promise may be
in one of three states: pending, resolved, or rejected. Each promise starts
in the pending state and may make a single transition to either a
- fulfilled or failed state.
-
-
This class is based on the Promise/A proposal from CommonJS. Additional
- functions are provided for API compatibility with Dojo Deferred objects.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_promise_Node_.html b/docs/api/javascript/class_webdriver_promise_Node_.html
index f3df4ae674023..666e39a0f52af 100644
--- a/docs/api/javascript/class_webdriver_promise_Node_.html
+++ b/docs/api/javascript/class_webdriver_promise_Node_.html
@@ -1,73 +1,14 @@
-webdriver.promise.Node_
Resolves this promise with the given value. If the value is itself a
promise and not a reference to this deferred, this instance will wait for
- it before resolving.
Registers a listener to invoke when this promise is resolved, regardless
- of whether the promise's value was successfully computed. This function
- is synonymous with the finally clause in a synchronous API:
-
-
- Note: similar to the finally clause, if the registered
- callback returns a rejected promise or throws an error, it will silently
- replace the rejection error (if any) from this promise:
-
Represents the eventual value of a completed operation. Each promise may be
in one of three states: pending, resolved, or rejected. Each promise starts
in the pending state and may make a single transition to either a
- fulfilled or failed state.
-
-
This class is based on the Promise/A proposal from CommonJS. Additional
- functions are provided for API compatibility with Dojo Deferred objects.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_promise_Promise.html b/docs/api/javascript/class_webdriver_promise_Promise.html
index ed14e51b3588d..691829b7feb75 100644
--- a/docs/api/javascript/class_webdriver_promise_Promise.html
+++ b/docs/api/javascript/class_webdriver_promise_Promise.html
@@ -1,64 +1,5 @@
-webdriver.promise.Promise
Represents the eventual value of a completed operation. Each promise may be
in one of three states: pending, resolved, or rejected. Each promise starts
in the pending state and may make a single transition to either a
- fulfilled or failed state.
-
-
This class is based on the Promise/A proposal from CommonJS. Additional
- functions are provided for API compatibility with Dojo Deferred objects.
Registers a listener to invoke when this promise is resolved, regardless
- of whether the promise's value was successfully computed. This function
- is synonymous with the finally clause in a synchronous API:
-
-
- Note: similar to the finally clause, if the registered
- callback returns a rejected promise or throws an error, it will silently
- replace the rejection error (if any) from this promise:
-
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_promise_Task_.html b/docs/api/javascript/class_webdriver_promise_Task_.html
index 3400fedb85bef..f226db6a328d3 100644
--- a/docs/api/javascript/class_webdriver_promise_Task_.html
+++ b/docs/api/javascript/class_webdriver_promise_Task_.html
@@ -1,77 +1,18 @@
-webdriver.promise.Task_
The function to call when the task executes. If it
returns a webdriver.promise.Promise, the flow will wait
for it to be resolved before starting the next task.
Resolves this promise with the given value. If the value is itself a
promise and not a reference to this deferred, this instance will wait for
- it before resolving.
Registers a listener to invoke when this promise is resolved, regardless
- of whether the promise's value was successfully computed. This function
- is synonymous with the finally clause in a synchronous API:
-
-
- Note: similar to the finally clause, if the registered
- callback returns a rejected promise or throws an error, it will silently
- replace the rejection error (if any) from this promise:
-
Represents the eventual value of a completed operation. Each promise may be
in one of three states: pending, resolved, or rejected. Each promise starts
in the pending state and may make a single transition to either a
- fulfilled or failed state.
-
-
This class is based on the Promise/A proposal from CommonJS. Additional
- functions are provided for API compatibility with Dojo Deferred objects.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_stacktrace_Frame.html b/docs/api/javascript/class_webdriver_stacktrace_Frame.html
index 68edecc93af94..7ca7c92d025c4 100644
--- a/docs/api/javascript/class_webdriver_stacktrace_Frame.html
+++ b/docs/api/javascript/class_webdriver_stacktrace_Frame.html
@@ -5,4 +5,4 @@
function is defined as a.b = function c() {};.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_stacktrace_Snapshot.html b/docs/api/javascript/class_webdriver_stacktrace_Snapshot.html
index 0484ea1b8f121..479f5d719ae18 100644
--- a/docs/api/javascript/class_webdriver_stacktrace_Snapshot.html
+++ b/docs/api/javascript/class_webdriver_stacktrace_Snapshot.html
@@ -2,4 +2,4 @@
The stack trace will always be adjusted to exclude this function call.
The error's stacktrace. This must be accessed immediately to ensure Opera
- computes the context correctly.
\ No newline at end of file
+ computes the context correctly.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_testing_Assertion.html b/docs/api/javascript/class_webdriver_testing_Assertion.html
index 8aee79ed24e20..0a27496909d22 100644
--- a/docs/api/javascript/class_webdriver_testing_Assertion.html
+++ b/docs/api/javascript/class_webdriver_testing_Assertion.html
@@ -29,4 +29,4 @@
accept the value wrapped by this assertion.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_testing_Assertion_DelegatingMatcher_.html b/docs/api/javascript/class_webdriver_testing_Assertion_DelegatingMatcher_.html
index 22a3d65299bac..1b3117692dac8 100644
--- a/docs/api/javascript/class_webdriver_testing_Assertion_DelegatingMatcher_.html
+++ b/docs/api/javascript/class_webdriver_testing_Assertion_DelegatingMatcher_.html
@@ -1,3 +1,3 @@
webdriver.testing.Assertion.DelegatingMatcher_
Class webdriver.testing.Assertion.DelegatingMatcher_
Wraps an object literal implementing the Matcher interface. This is used
to appease the Closure compiler, which will not treat an object literal as
- implementing an interface.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_testing_ContainsMatcher.html b/docs/api/javascript/class_webdriver_testing_ContainsMatcher.html
index d56b8a3109862..3de5f5f8145c1 100644
--- a/docs/api/javascript/class_webdriver_testing_ContainsMatcher.html
+++ b/docs/api/javascript/class_webdriver_testing_ContainsMatcher.html
@@ -1 +1 @@
-webdriver.testing.ContainsMatcher
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_testing_NegatedAssertion.html b/docs/api/javascript/class_webdriver_testing_NegatedAssertion.html
index 6a7d0736735db..cf528bd8c12f0 100644
--- a/docs/api/javascript/class_webdriver_testing_NegatedAssertion.html
+++ b/docs/api/javascript/class_webdriver_testing_NegatedAssertion.html
@@ -23,4 +23,4 @@
accept the value wrapped by this assertion.
\ No newline at end of file
diff --git a/docs/api/javascript/class_webdriver_testing_TestCase.html b/docs/api/javascript/class_webdriver_testing_TestCase.html
new file mode 100644
index 0000000000000..071792f9357f9
--- /dev/null
+++ b/docs/api/javascript/class_webdriver_testing_TestCase.html
@@ -0,0 +1,76 @@
+webdriver.testing.TestCase
Executes a single test, scheduling each phase with the global application.
+ Each phase will wait for the application to go idle before moving on to the
+ next test phase. This function models the follow basic test flow:
+
+ try {
+ this.setUp.call(test.scope);
+ test.ref.call(test.scope);
+ } catch (ex) {
+ onError(ex);
+ } finally {
+ try {
+ this.tearDown.call(test.scope);
+ } catch (e) {
+ onError(e);
+ }
+ }
Adds any functions defined in the global scope that correspond to
+ lifecycle events for the test case. Overrides setUp, tearDown, setUpPage,
+ tearDownPage and runTests if they are defined.
Gets list of objects that potentially contain test cases. For IE 8 and below,
+ this is the global "this" (for properties set directly on the global this or
+ window) and the RuntimeObject (for global variables and functions). For all
+ other browsers, the array simply contains the global this.
An optional prefix. If specified, only get things
+ under this prefix. Note that the prefix is only honored in IE, since it
+ supports the RuntimeObject:
+ http://msdn.microsoft.com/en-us/library/ff521039%28VS.85%29.aspx
+ TODO: Remove this option.
Checks to see if the test should be marked as failed before it is run.
+
+ If there was an error in setUpPage, we treat that as a failure for all tests
+ and mark them all as having failed.
Executes each of the tests.
+ Overridable by the individual test case. This allows test cases to defer
+ when the test is actually started. If overridden, finalize must be called
+ by the test to indicate it has finished.
Can be overridden in test classes to indicate whether the tests in a case
+ should be run in that particular situation. For example, this could be used
+ to stop tests running in a particular browser, where browser support for
+ the class under test was absent.
Returns
Whether any of the tests in the case should be run.
Time since the last batch of tests was started, if batchTime exceeds
+ #maxRunTime a timeout will be used to stop the tests blocking the
+ browser and a new batch will be started.
Set of test names and/or indices to execute, or null if all tests should
+ be executed.
+
+ Indices are included to allow automation tools to run a subset of the
+ tests without knowing the exact contents of the test file.
+
+ Indices should only be used with SORTED ordering.
+
+ Example valid values:
+
+
[testName]
+
[testName1, testName2]
+
[2] - will run the 3rd test in the order specified
+
\ No newline at end of file
diff --git a/docs/api/javascript/enum_bot_Error_State.html b/docs/api/javascript/enum_bot_Error_State.html
index 49054c1dcb1fd..7b80a02e7de00 100644
--- a/docs/api/javascript/enum_bot_Error_State.html
+++ b/docs/api/javascript/enum_bot_Error_State.html
@@ -1 +1 @@
-bot.Error.State
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_Disposable_MonitoringMode.html b/docs/api/javascript/enum_goog_Disposable_MonitoringMode.html
new file mode 100644
index 0000000000000..14cbf0487c6df
--- /dev/null
+++ b/docs/api/javascript/enum_goog_Disposable_MonitoringMode.html
@@ -0,0 +1,6 @@
+goog.Disposable.MonitoringMode
INTERACTIVE mode can be switched on and off on the fly without producing
+ errors. It also doesn't warn if the disposable objects don't call the
+ goog.Disposable base constructor.
Creating and disposing the goog.Disposable instances is monitored. All
+ disposable objects need to call the goog.Disposable base
+ constructor. The PERMANENT mode must be switched on before creating any
+ goog.Disposable instances.
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_dom_BrowserFeature.html b/docs/api/javascript/enum_goog_dom_BrowserFeature.html
new file mode 100644
index 0000000000000..9aa63db72f6ee
--- /dev/null
+++ b/docs/api/javascript/enum_goog_dom_BrowserFeature.html
@@ -0,0 +1,8 @@
+goog.dom.BrowserFeature
Whether we can use element.children to access an element's Element
+ children. Available since Gecko 1.9.1, IE 9. (IE<9 also includes comment
+ nodes in the collection.)
Whether NoScope elements need a scoped element written before them in
+ innerHTML.
+ MSDN: http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx#1
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_dom_NodeType.html b/docs/api/javascript/enum_goog_dom_NodeType.html
index a85c299eecddf..d90609874b3cd 100644
--- a/docs/api/javascript/enum_goog_dom_NodeType.html
+++ b/docs/api/javascript/enum_goog_dom_NodeType.html
@@ -7,4 +7,4 @@
In some browsers (early IEs), these are not defined on the Node object,
so they are provided here.
- See http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1950641247
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_dom_TagName.html b/docs/api/javascript/enum_goog_dom_TagName.html
new file mode 100644
index 0000000000000..7e46c2dddabea
--- /dev/null
+++ b/docs/api/javascript/enum_goog_dom_TagName.html
@@ -0,0 +1,2 @@
+goog.dom.TagName
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_events_BrowserEvent_MouseButton.html b/docs/api/javascript/enum_goog_events_BrowserEvent_MouseButton.html
new file mode 100644
index 0000000000000..01bc09bdc379f
--- /dev/null
+++ b/docs/api/javascript/enum_goog_events_BrowserEvent_MouseButton.html
@@ -0,0 +1 @@
+goog.events.BrowserEvent.MouseButton
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_events_BrowserFeature.html b/docs/api/javascript/enum_goog_events_BrowserFeature.html
new file mode 100644
index 0000000000000..3bb8a01463623
--- /dev/null
+++ b/docs/api/javascript/enum_goog_events_BrowserFeature.html
@@ -0,0 +1,4 @@
+goog.events.BrowserFeature
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_events_CaptureSimulationMode.html b/docs/api/javascript/enum_goog_events_CaptureSimulationMode.html
new file mode 100644
index 0000000000000..81b2ea689c3f8
--- /dev/null
+++ b/docs/api/javascript/enum_goog_events_CaptureSimulationMode.html
@@ -0,0 +1,3 @@
+goog.events.CaptureSimulationMode
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_events_EventType.html b/docs/api/javascript/enum_goog_events_EventType.html
new file mode 100644
index 0000000000000..0315e7f21c7a1
--- /dev/null
+++ b/docs/api/javascript/enum_goog_events_EventType.html
@@ -0,0 +1 @@
+goog.events.EventType
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_events_KeyCodes.html b/docs/api/javascript/enum_goog_events_KeyCodes.html
new file mode 100644
index 0000000000000..ffa4f95a4db3b
--- /dev/null
+++ b/docs/api/javascript/enum_goog_events_KeyCodes.html
@@ -0,0 +1,22 @@
+goog.events.KeyCodes
Key codes for common characters.
+
+ This list is not localized and therefore some of the key codes are not
+ correct for non US keyboard layouts. See comments below.
Returns true if the key fires a keypress event in the current browser.
+
+ Accoridng to MSDN [1] IE only fires keypress events for the following keys:
+ - Letters: A - Z (uppercase and lowercase)
+ - Numerals: 0 - 9
+ - Symbols: ! @ # $ % ^ & * ( ) _ - + = < [ ] { } , . / ? \ | ' ` " ~
+ - System: ESC, SPACEBAR, ENTER
+
+ That's not entirely correct though, for instance there's no distinction
+ between upper and lower case letters.
+
+ [1] http://msdn2.microsoft.com/en-us/library/ms536939(VS.85).aspx)
+
+ Safari is similar to IE, but does not fire keypress for ESC.
+
+ Additionally, IE6 does not fire keydown or keypress events for letters when
+ the control or alt keys are held down and the shift key is not. IE7 does
+ fire keydown in these cases, though, but not keypress.
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_net_XmlHttp_OptionType.html b/docs/api/javascript/enum_goog_net_XmlHttp_OptionType.html
index 0a54e805c0542..32b87263bf864 100644
--- a/docs/api/javascript/enum_goog_net_XmlHttp_OptionType.html
+++ b/docs/api/javascript/enum_goog_net_XmlHttp_OptionType.html
@@ -1,4 +1,4 @@
goog.net.XmlHttp.OptionType
NOTE(user): In IE if send() errors on a *local* request the readystate
is still changed to COMPLETE. We need to ignore it and allow the
try/catch around send() to pick up the error.
Whether a goog.nullFunction should be used to clear the onreadystatechange
- handler instead of null.
Show:
\ No newline at end of file
+ handler instead of null.
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_net_XmlHttp_ReadyState.html b/docs/api/javascript/enum_goog_net_XmlHttp_ReadyState.html
index 34c76b333eff4..7c4404e188c6b 100644
--- a/docs/api/javascript/enum_goog_net_XmlHttp_ReadyState.html
+++ b/docs/api/javascript/enum_goog_net_XmlHttp_ReadyState.html
@@ -1,3 +1,3 @@
goog.net.XmlHttp.ReadyState
Status constants for XMLHTTP, matches:
http://msdn.microsoft.com/library/default.asp?url=/library/
- en-us/xmlsdk/html/0e6a34e4-f90c-489d-acff-cb44242fafc6.asp
Constant for when xmlhttprequest.readyState is uninitialized
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_string_Unicode.html b/docs/api/javascript/enum_goog_string_Unicode.html
index becb661424cf7..e0c16832e3bf2 100644
--- a/docs/api/javascript/enum_goog_string_Unicode.html
+++ b/docs/api/javascript/enum_goog_string_Unicode.html
@@ -1 +1 @@
-goog.string.Unicode
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_testing_TestCase_Order.html b/docs/api/javascript/enum_goog_testing_TestCase_Order.html
new file mode 100644
index 0000000000000..efa7872e6b8a5
--- /dev/null
+++ b/docs/api/javascript/enum_goog_testing_TestCase_Order.html
@@ -0,0 +1,2 @@
+goog.testing.TestCase.Order
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_uri_utils_CharCode_.html b/docs/api/javascript/enum_goog_uri_utils_CharCode_.html
index 4c9fb9e9627e6..473287aa1ad5b 100644
--- a/docs/api/javascript/enum_goog_uri_utils_CharCode_.html
+++ b/docs/api/javascript/enum_goog_uri_utils_CharCode_.html
@@ -1 +1 @@
-goog.uri.utils.CharCode_
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_uri_utils_ComponentIndex.html b/docs/api/javascript/enum_goog_uri_utils_ComponentIndex.html
index 82afbbb582823..61588febc74f9 100644
--- a/docs/api/javascript/enum_goog_uri_utils_ComponentIndex.html
+++ b/docs/api/javascript/enum_goog_uri_utils_ComponentIndex.html
@@ -1 +1 @@
-goog.uri.utils.ComponentIndex
\ No newline at end of file
diff --git a/docs/api/javascript/enum_goog_uri_utils_StandardQueryParam.html b/docs/api/javascript/enum_goog_uri_utils_StandardQueryParam.html
index ced027a958962..2ae6cf5df9a05 100644
--- a/docs/api/javascript/enum_goog_uri_utils_StandardQueryParam.html
+++ b/docs/api/javascript/enum_goog_uri_utils_StandardQueryParam.html
@@ -1 +1 @@
-goog.uri.utils.StandardQueryParam
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_Browser.html b/docs/api/javascript/enum_webdriver_Browser.html
index a50d5662f33c0..37a7bb640b837 100644
--- a/docs/api/javascript/enum_webdriver_Browser.html
+++ b/docs/api/javascript/enum_webdriver_Browser.html
@@ -1 +1 @@
-webdriver.Browser
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_Button.html b/docs/api/javascript/enum_webdriver_Button.html
index 7b2018b04706f..8d5524f466a5d 100644
--- a/docs/api/javascript/enum_webdriver_Button.html
+++ b/docs/api/javascript/enum_webdriver_Button.html
@@ -1 +1 @@
-webdriver.Button
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_Capability.html b/docs/api/javascript/enum_webdriver_Capability.html
index a16afd9eef51c..a6bbb7f122d97 100644
--- a/docs/api/javascript/enum_webdriver_Capability.html
+++ b/docs/api/javascript/enum_webdriver_Capability.html
@@ -1,14 +1,16 @@
-webdriver.Capability
Indicates whether a driver should accept all SSL certs by default. This
capability only applies when requesting a new session. To query whether
a driver can handle insecure SSL certs, see
webdriver.Capability.SECURE_SSL.
Defines how elements should be scrolled into the viewport for interaction.
+ This capability will be set to zero (0) if elements are aligned with the
+ top of the viewport, or one (1) if aligned with the bottom. The default
+ behavior is to align with the top of the viewport.
Whether the driver is capable of handling modal alerts (e.g. alert,
confirm, prompt). To define how a driver should handle alerts,
- use webdriver.Capability.UNEXPECTED_ALERT_BEHAVIOR.
Describes the platform the browser is running on. Will be one of
ANDROID, IOS, LINUX, MAC, UNIX, or WINDOWS. When requesting a
session, ANY may be used to indicate no platform preference (this is
semantically equivalent to omitting the platform capability).
Whether a driver is only capable of handling secure SSL certs. To request
that a driver accept insecure SSL certs by default, use
- webdriver.Capability.ACCEPT_SSL_CERTS.
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_CommandName.html b/docs/api/javascript/enum_webdriver_CommandName.html
index 51e2c1bbe6711..5449a9dbcb31e 100644
--- a/docs/api/javascript/enum_webdriver_CommandName.html
+++ b/docs/api/javascript/enum_webdriver_CommandName.html
@@ -1,2 +1,2 @@
webdriver.CommandName
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_Attribute_.html b/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_Attribute_.html
index 991d820ee56fd..e8dddada19702 100644
--- a/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_Attribute_.html
+++ b/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_Attribute_.html
@@ -1 +1 @@
-webdriver.FirefoxDomExecutor.Attribute_
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_EventType_.html b/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_EventType_.html
index 77449ebcb0683..f59505ece8d74 100644
--- a/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_EventType_.html
+++ b/docs/api/javascript/enum_webdriver_FirefoxDomExecutor_EventType_.html
@@ -1 +1 @@
-webdriver.FirefoxDomExecutor.EventType_
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_Key.html b/docs/api/javascript/enum_webdriver_Key.html
index 68acdcf10dd5e..afa2867ee2596 100644
--- a/docs/api/javascript/enum_webdriver_Key.html
+++ b/docs/api/javascript/enum_webdriver_Key.html
@@ -1,9 +1,9 @@
webdriver.Key
Representations of pressable keys that aren't text. These are stored in
the Unicode PUA (Private Use Area) code points, 0xE000-0xF8FF. Refer to
- http://www.google.com.au/search?&q=unicode+pua&btnG=Search
Simulate pressing many keys at once in a "chord". Takes a sequence of
webdriver.Keys or strings, appends each of the values to a string,
and adds the chord termination key (webdriver.Key.NULL) and returns
the resultant string.
Note: when the low-level webdriver key handlers see Keys.NULL, active
- modifier keys (CTRL/ALT/SHIFT/etc) release via a keyup event.
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_logging_Level.html b/docs/api/javascript/enum_webdriver_logging_Level.html
index 96cce56872fba..be4d5554b2629 100644
--- a/docs/api/javascript/enum_webdriver_logging_Level.html
+++ b/docs/api/javascript/enum_webdriver_logging_Level.html
@@ -1 +1 @@
-webdriver.logging.Level
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_logging_Type.html b/docs/api/javascript/enum_webdriver_logging_Type.html
index c69f77797bd0b..c4657a140da2d 100644
--- a/docs/api/javascript/enum_webdriver_logging_Type.html
+++ b/docs/api/javascript/enum_webdriver_logging_Type.html
@@ -1 +1 @@
-webdriver.logging.Type
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_promise_ControlFlow_EventType.html b/docs/api/javascript/enum_webdriver_promise_ControlFlow_EventType.html
index 0375949b6e305..f0bb243a1d662 100644
--- a/docs/api/javascript/enum_webdriver_promise_ControlFlow_EventType.html
+++ b/docs/api/javascript/enum_webdriver_promise_ControlFlow_EventType.html
@@ -1,4 +1,4 @@
-webdriver.promise.ControlFlow.EventType
Emitted whenever a control flow aborts due to an unhandled promise
rejection. This event will be emitted along with the offending rejection
reason. Upon emitting this event, the control flow will empty its task
- queue and revert to its initial state.
Show:
\ No newline at end of file
+ queue and revert to its initial state.
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/enum_webdriver_promise_Deferred_State_.html b/docs/api/javascript/enum_webdriver_promise_Deferred_State_.html
index cab3b5ada8603..80ca09e80c88b 100644
--- a/docs/api/javascript/enum_webdriver_promise_Deferred_State_.html
+++ b/docs/api/javascript/enum_webdriver_promise_Deferred_State_.html
@@ -1 +1 @@
-webdriver.promise.Deferred.State_
\ No newline at end of file
diff --git a/docs/api/javascript/index.html b/docs/api/javascript/index.html
index 9ae9991837e35..e8228624ef72f 100644
--- a/docs/api/javascript/index.html
+++ b/docs/api/javascript/index.html
@@ -59,4 +59,4 @@
License
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_debug_EntryPointMonitor.html b/docs/api/javascript/interface_goog_debug_EntryPointMonitor.html
new file mode 100644
index 0000000000000..e730ac1128662
--- /dev/null
+++ b/docs/api/javascript/interface_goog_debug_EntryPointMonitor.html
@@ -0,0 +1,11 @@
+goog.debug.EntryPointMonitor
Try to remove an instrumentation wrapper created by this monitor.
+ If the function passed to unwrap is not a wrapper created by this
+ monitor, then we will do nothing.
+
+ Notice that some wrappers may not be unwrappable. For example, if other
+ monitors have applied their own wrappers, then it will be impossible to
+ unwrap them because their wrappers will have captured our wrapper.
+
+ So it is important that entry points are unwrapped in the reverse
+ order that they were wrapped.
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_disposable_IDisposable.html b/docs/api/javascript/interface_goog_disposable_IDisposable.html
new file mode 100644
index 0000000000000..54a34115ed98d
--- /dev/null
+++ b/docs/api/javascript/interface_goog_disposable_IDisposable.html
@@ -0,0 +1,3 @@
+goog.disposable.IDisposable
Interface for a disposable object. If a instance requires cleanup
+ (references COM objects, DOM notes, or other disposable objects), it should
+ implement this interface (it may subclass goog.Disposable).
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_events_Listenable.html b/docs/api/javascript/interface_goog_events_Listenable.html
new file mode 100644
index 0000000000000..e5837e8e03479
--- /dev/null
+++ b/docs/api/javascript/interface_goog_events_Listenable.html
@@ -0,0 +1,84 @@
+goog.events.Listenable
A listenable interface. A listenable is an object with the ability
+ to dispatch/broadcast events to "event listeners" registered via
+ listen/listenOnce.
+
+ The interface allows for an event propagation mechanism similar
+ to one offered by native browser event targets, such as
+ capture/bubble mechanism, stopping propagation, and preventing
+ default actions. Capture/bubble mechanism depends on the ancestor
+ tree constructed via #getParentEventTarget; this tree
+ must be directed acyclic graph. The meaning of default action(s)
+ in preventDefault is specific to a particular use case.
+
+ Implementations that do not support capture/bubble or can not have
+ a parent listenable can simply not implement any ability to set the
+ parent listenable (and have #getParentEventTarget return
+ null).
+
+ Implementation of this class can be used with or independently from
+ goog.events.
+
+ Implementation must call #addImplementation(implClass).
Dispatches an event (or event like object) and calls all listeners
+ listening for events of this type. The type of the event is decided by the
+ type property on the event object.
+
+ If any of the listeners returns false OR calls preventDefault then this
+ function will return false. If one of the capture listeners calls
+ stopPropagation, then the bubble listeners won't fire.
Fires all registered listeners in this listenable for the given
+ type and capture mode, passing them the given eventObject. This
+ does not perform actual capture/bubble. Only implementors of the
+ interface should be using this.
Whether all listeners succeeded without
+ attempting to prevent default behavior. If any listener returns
+ false or called goog.events.Event#preventDefault, this returns
+ false.
Returns the parent of this event target to use for capture/bubble
+ mechanism.
+
+ NOTE(user): The name reflects the original implementation of
+ custom event target (goog.events.EventTarget). We decided
+ that changing the name is not worth it.
Returns
The parent EventTarget or null if
+ there is no parent.
Whether there is any active listeners matching the specified
+ signature. If either the type or capture parameters are
+ unspecified, the function will match on the remaining criteria.
Adds an event listener. A listener can only be added once to an
+ object and if it is added again the key for the listener is
+ returned. Note that if the existing listener is a one-off listener
+ (registered via listenOnce), it will no longer be a one-off
+ listener after a call to listen().
Adds an event listener that is removed automatically after the
+ listener fired once.
+
+ If an existing listener already exists, listenOnce will do
+ nothing. In particular, if the listener was previously registered
+ via listen(), listenOnce() will not turn the listener into a
+ one-off listener. Similarly, if there is already an existing
+ one-off listener, listenOnce does not modify the listeners (it is
+ still a once listener).
Removes all listeners from this listenable. If type is specified,
+ it will only remove listeners of the particular type. otherwise all
+ registered listeners will be removed.
Marks a given class (constructor) as an implementation of
+ Listenable, do that we can query that fact at runtime. The class
+ must have already implemented the interface.
An expando property to indicate that an object implements
+ goog.events.Listenable.
+
+ See addImplementation/isImplementedBy.
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_events_ListenableKey.html b/docs/api/javascript/interface_goog_events_ListenableKey.html
new file mode 100644
index 0000000000000..53fd38b0e280d
--- /dev/null
+++ b/docs/api/javascript/interface_goog_events_ListenableKey.html
@@ -0,0 +1,2 @@
+goog.events.ListenableKey
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_labs_testing_Matcher.html b/docs/api/javascript/interface_goog_labs_testing_Matcher.html
index fb8e889593247..9495c9b1164c7 100644
--- a/docs/api/javascript/interface_goog_labs_testing_Matcher.html
+++ b/docs/api/javascript/interface_goog_labs_testing_Matcher.html
@@ -1,2 +1,2 @@
goog.labs.testing.Matcher
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_net_XhrLike.html b/docs/api/javascript/interface_goog_net_XhrLike.html
index 38583289d9f08..ebff7e3475fa1 100644
--- a/docs/api/javascript/interface_goog_net_XhrLike.html
+++ b/docs/api/javascript/interface_goog_net_XhrLike.html
@@ -1,3 +1,3 @@
goog.net.XhrLike
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_structs_Collection.html b/docs/api/javascript/interface_goog_structs_Collection.html
new file mode 100644
index 0000000000000..e94fe4809440d
--- /dev/null
+++ b/docs/api/javascript/interface_goog_structs_Collection.html
@@ -0,0 +1 @@
+goog.structs.Collection
\ No newline at end of file
diff --git a/docs/api/javascript/interface_goog_testing_MockInterface.html b/docs/api/javascript/interface_goog_testing_MockInterface.html
new file mode 100644
index 0000000000000..c5af2d40f7542
--- /dev/null
+++ b/docs/api/javascript/interface_goog_testing_MockInterface.html
@@ -0,0 +1,3 @@
+goog.testing.MockInterface
Write down all the expected functions that have been called on the
+ mock so far. From here on out, future function calls will be
+ compared against this list.
Assert that the expected function calls match the actual calls.
\ No newline at end of file
diff --git a/docs/api/javascript/interface_webdriver_CommandExecutor.html b/docs/api/javascript/interface_webdriver_CommandExecutor.html
index 9b45f411a9e0b..d70a6bc694ca4 100644
--- a/docs/api/javascript/interface_webdriver_CommandExecutor.html
+++ b/docs/api/javascript/interface_webdriver_CommandExecutor.html
@@ -2,4 +2,4 @@
command, the provided callback will be invoked with the offending error.
Otherwise, the callback will be invoked with a null Error and non-null
bot.response.ResponseObject object.
the function
- to invoke when the command response is ready.
\ No newline at end of file
+ to invoke when the command response is ready.
\ No newline at end of file
diff --git a/docs/api/javascript/interface_webdriver_http_Client.html b/docs/api/javascript/interface_webdriver_http_Client.html
index 68f0fcce5a5a9..7d7ee7256407c 100644
--- a/docs/api/javascript/interface_webdriver_http_Client.html
+++ b/docs/api/javascript/interface_webdriver_http_Client.html
@@ -3,4 +3,4 @@
invoked with a non-null Error describing the error. Otherwise, when
the server's response has been received, the callback will be invoked with a
null Error and non-null webdriver.http.Response object.
the function to
- invoke when the server's response is ready.
\ No newline at end of file
+ invoke when the server's response is ready.
\ No newline at end of file
diff --git a/docs/api/javascript/interface_webdriver_promise_Thenable.html b/docs/api/javascript/interface_webdriver_promise_Thenable.html
new file mode 100644
index 0000000000000..aef12e5f5a5fa
--- /dev/null
+++ b/docs/api/javascript/interface_webdriver_promise_Thenable.html
@@ -0,0 +1,65 @@
+webdriver.promise.Thenable
Cancels the computation of this promise's value, rejecting the promise in the
+ process. This method is a no-op if the promise has alreayd been resolved.
Parameters
opt_reason: *=
The reason this promise is being cancelled. If not an
+ Error, one will be created using the value's string
+ representation.
Registers a listener to invoke when this promise is resolved, regardless
+ of whether the promise's value was successfully computed. This function
+ is synonymous with the finally clause in a synchronous API:
+
+
+ Note: similar to the finally clause, if the registered
+ callback returns a rejected promise or throws an error, it will silently
+ replace the rejection error (if any) from this promise:
+
Adds a property to a class prototype to allow runtime checks of whether
+ instances of that class implement the Thenable interface. This function will
+ also ensure the prototype's then function is exported from compiled
+ code.
Property used to flag constructor's as implementing the Thenable interface
+ for runtime type checking.
\ No newline at end of file
diff --git a/docs/api/javascript/license.html b/docs/api/javascript/license.html
index 962258d729a40..3c544de5efc34 100644
--- a/docs/api/javascript/license.html
+++ b/docs/api/javascript/license.html
@@ -202,4 +202,4 @@
See the License for the specific language governing permissions and
limitations under the License.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver.html b/docs/api/javascript/module_selenium-webdriver.html
index 2764d07aa8090..a1310c6e28852 100644
--- a/docs/api/javascript/module_selenium-webdriver.html
+++ b/docs/api/javascript/module_selenium-webdriver.html
@@ -1,4 +1,4 @@
selenium-webdriver
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver__base.html b/docs/api/javascript/module_selenium-webdriver__base.html
index 02cc0a118bc3b..453b4aa87a39b 100644
--- a/docs/api/javascript/module_selenium-webdriver__base.html
+++ b/docs/api/javascript/module_selenium-webdriver__base.html
@@ -7,8 +7,8 @@
This module will load all scripts from the "lib" subdirectory, unless the
SELENIUM_DEV_MODE environment variable has been set to 1, in which case all
- scripts will be loaded from the Selenium client containing this script.
Loads a symbol by name from the protected Closure context and exports its
public API to the provided object. This function relies on Closure code
conventions to define the public API of an object as those properties whose
name does not end with "_".
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver__base_class_Context.html b/docs/api/javascript/module_selenium-webdriver__base_class_Context.html
new file mode 100644
index 0000000000000..7737dc3bd3ee2
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver__base_class_Context.html
@@ -0,0 +1,3 @@
+Context
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_builder.html b/docs/api/javascript/module_selenium-webdriver_builder.html
index 6b208417b6d7b..5da6d3a54dd5e 100644
--- a/docs/api/javascript/module_selenium-webdriver_builder.html
+++ b/docs/api/javascript/module_selenium-webdriver_builder.html
@@ -1 +1 @@
-selenium-webdriver/builder
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_builder_class_Builder.html b/docs/api/javascript/module_selenium-webdriver_builder_class_Builder.html
index bac7e534aed25..fdf32f7147950 100644
--- a/docs/api/javascript/module_selenium-webdriver_builder_class_Builder.html
+++ b/docs/api/javascript/module_selenium-webdriver_builder_class_Builder.html
@@ -1,13 +1,56 @@
-Builder
Creates new WebDriver instances. The environment
+ variables listed below may be used to override a builder's configuration,
+ allowing quick runtime changes.
+
+
SELENIUM_REMOTE_URL: defines the remote URL for all builder
+ instances. This environment variable should be set to a fully qualified
+ URL for a WebDriver server (e.g. http://localhost:4444/wd/hub).
+
+
SELENIUM_BROWSER: defines the target browser in the form
+ browser[:version][:platform].
+
+
+
Suppose you had mytest.js that created WebDriver with
+ var driver = new webdriver.Builder().build();.
+
+ This test could be made to use Firefox on the local machine by running with
+ SELENIUM_BROWSER=firefox node mytest.js.
+
+
Alternatively, you could request Chrome 36 on Linux from a remote
+ server with SELENIUM_BROWSER=chrome:36:LINUX
+ SELENIUM_REMOTE_URL=http://www.example.com:4444/wd/hub
+ node mytest.js.
Configures the target browser for clients created by this instance.
+ Any calls to #withCapabilities after this function will
+ overwrite these settings.
+
+
You may also define the target browser using the SELENIUM_BROWSER
+ environment variable. If set, this environment variable should be of the
+ form browser[:[version][:platform]].
Sets Chrome-specific options for drivers created by this builder. Any
+ logging or proxy settings defined on the given options will take precedence
+ over those set through #setLoggingPrefs and #setProxy,
+ respectively.
Sets the control flow that created drivers should execute actions in. If
+ the flow is never set, or is set to null, it will use the active
+ flow at the time #build() is called.
Sets Firefox-specific options for drivers created by this builder. Any
+ logging or proxy settings defined on the given options will take precedence
+ over those set through #setLoggingPrefs and #setProxy,
+ respectively.
Sets the proxy configuration to use for WebDriver clients created by this
builder. Any calls to #withCapabilities after this function will
- overwrite these settings.
Configures which WebDriver server should be used for new sessions. Overrides
- the value loaded from the webdriver.AbstractBuilder.SERVER_URL_ENV
- upon creation of this instance.
Sets the URL of a remote WebDriver server to use. Once a remote URL has been
+ specified, the builder direct all new clients to that server. If this method
+ is never called, the Builder will attempt to create all clients locally.
+
+
As an alternative to this method, you may also set the
+ SELENIUM_REMOTE_URL environment variable.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_chrome.html b/docs/api/javascript/module_selenium-webdriver_chrome.html
index 3adf8b7b303d0..345345ac42a54 100644
--- a/docs/api/javascript/module_selenium-webdriver_chrome.html
+++ b/docs/api/javascript/module_selenium-webdriver_chrome.html
@@ -1,5 +1,6 @@
-selenium-webdriver/chrome
Returns the default ChromeDriver service. If such a service has not been
configured, one will be constructed using the default configuration for
- a ChromeDriver executable found on the system PATH.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_chrome_class_Driver.html b/docs/api/javascript/module_selenium-webdriver_chrome_class_Driver.html
new file mode 100644
index 0000000000000..b0db80c70264c
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_chrome_class_Driver.html
@@ -0,0 +1,5 @@
+Driver
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_chrome_class_Options.html b/docs/api/javascript/module_selenium-webdriver_chrome_class_Options.html
index 171be4f4a7891..61a188e6f5ee8 100644
--- a/docs/api/javascript/module_selenium-webdriver_chrome_class_Options.html
+++ b/docs/api/javascript/module_selenium-webdriver_chrome_class_Options.html
@@ -1,4 +1,4 @@
-Options
Add additional command line arguments to use when launching the Chrome
browser. Each argument may be specified with or without the "--" prefix
(e.g. "--foo" and "foo"). Arguments with an associated value should be
delimited by an "=": "foo=bar".
Add additional extensions to install when launching Chrome. Each extension
@@ -14,9 +14,9 @@
The binary path be absolute or relative to the chromedriver server
executable, but it must exist on the machine that will launch Chrome.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_chrome_class_ServiceBuilder.html b/docs/api/javascript/module_selenium-webdriver_chrome_class_ServiceBuilder.html
index 1b117df32a1e8..a53eee924d5f9 100644
--- a/docs/api/javascript/module_selenium-webdriver_chrome_class_ServiceBuilder.html
+++ b/docs/api/javascript/module_selenium-webdriver_chrome_class_ServiceBuilder.html
@@ -1,4 +1,4 @@
-ServiceBuilder
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_error.html b/docs/api/javascript/module_selenium-webdriver_error.html
index dc4ba906ccac8..8e7b2026a6276 100644
--- a/docs/api/javascript/module_selenium-webdriver_error.html
+++ b/docs/api/javascript/module_selenium-webdriver_error.html
@@ -1,4 +1,4 @@
selenium-webdriver/error
Error extension that includes error status codes from the WebDriver wire
protocol:
http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Error codes from the WebDriver wire protocol:
- http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Show:
\ No newline at end of file
+ http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_executors.html b/docs/api/javascript/module_selenium-webdriver_executors.html
index 4cd5307a8a31f..b5a7f02f58b05 100644
--- a/docs/api/javascript/module_selenium-webdriver_executors.html
+++ b/docs/api/javascript/module_selenium-webdriver_executors.html
@@ -1,3 +1,3 @@
selenium-webdriver/executors
The server's URL,
- or a promise that will resolve to that URL.
\ No newline at end of file
+ or a promise that will resolve to that URL.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox.html b/docs/api/javascript/module_selenium-webdriver_firefox.html
new file mode 100644
index 0000000000000..67a0749e90d84
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox.html
@@ -0,0 +1 @@
+selenium-webdriver/firefox
Models a Firefox proifle directory for use with the FirefoxDriver.
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox_binary.html b/docs/api/javascript/module_selenium-webdriver_firefox_binary.html
new file mode 100644
index 0000000000000..8b8d0a02b6eae
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox_binary.html
@@ -0,0 +1 @@
+selenium-webdriver/firefox/binary
Manages a Firefox subprocess configured for use with WebDriver.
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox_binary_class_Binary.html b/docs/api/javascript/module_selenium-webdriver_firefox_binary_class_Binary.html
new file mode 100644
index 0000000000000..207146a4895ae
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox_binary_class_Binary.html
@@ -0,0 +1,4 @@
+Binary
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox_class_Driver.html b/docs/api/javascript/module_selenium-webdriver_firefox_class_Driver.html
new file mode 100644
index 0000000000000..c53f20c11009c
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox_class_Driver.html
@@ -0,0 +1,6 @@
+Driver
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox_class_Options.html b/docs/api/javascript/module_selenium-webdriver_firefox_class_Options.html
new file mode 100644
index 0000000000000..6f08ef1f3ed5a
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox_class_Options.html
@@ -0,0 +1,4 @@
+Options
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox_extension.html b/docs/api/javascript/module_selenium-webdriver_firefox_extension.html
new file mode 100644
index 0000000000000..5e65963013af1
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox_extension.html
@@ -0,0 +1,3 @@
+selenium-webdriver/firefox/extension
Path to the directory to install the extension in.
Returns
A promise for the add-on ID once
+ installed.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox_profile.html b/docs/api/javascript/module_selenium-webdriver_firefox_profile.html
new file mode 100644
index 0000000000000..7ec6e53b70572
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox_profile.html
@@ -0,0 +1,4 @@
+selenium-webdriver/firefox/profile
A promise for the parsed preferences as
+ a JSON object. If the file does not exist, an empty object will be
+ returned.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_firefox_profile_class_Profile.html b/docs/api/javascript/module_selenium-webdriver_firefox_profile_class_Profile.html
new file mode 100644
index 0000000000000..7083b163ec733
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_firefox_profile_class_Profile.html
@@ -0,0 +1,18 @@
+Profile
Returns the currently configured value of a profile preference. This does
+ not include any defaults defined in the profile's template directory user.js
+ file (if a template were specified on construction).
Whether to exclude the WebDriver
+ extension from the generated profile. Used to reduce the size of an
+ encoded profile since the server will always install
+ the extension itself.
Returns
A promise for the path to the new
+ profile directory.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_http.html b/docs/api/javascript/module_selenium-webdriver_http.html
index a5b2f988b5146..2b4316b3418f2 100644
--- a/docs/api/javascript/module_selenium-webdriver_http.html
+++ b/docs/api/javascript/module_selenium-webdriver_http.html
@@ -1,4 +1,4 @@
selenium-webdriver/http
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_http_class_HttpClient.html b/docs/api/javascript/module_selenium-webdriver_http_class_HttpClient.html
index d61157e9c2b2b..e438a1f78ceea 100644
--- a/docs/api/javascript/module_selenium-webdriver_http_class_HttpClient.html
+++ b/docs/api/javascript/module_selenium-webdriver_http_class_HttpClient.html
@@ -1,2 +1,3 @@
-HttpClient
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_http_util.html b/docs/api/javascript/module_selenium-webdriver_http_util.html
index e85d1000b81be..d1065b22492c4 100644
--- a/docs/api/javascript/module_selenium-webdriver_http_util.html
+++ b/docs/api/javascript/module_selenium-webdriver_http_util.html
@@ -2,4 +2,4 @@
a hash of the server status.
A promise that will resolve when the
- URL responds with 2xx.
\ No newline at end of file
+ URL responds with 2xx.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_io.html b/docs/api/javascript/module_selenium-webdriver_io.html
index aabdf7fd0e1a5..fa50d71635113 100644
--- a/docs/api/javascript/module_selenium-webdriver_io.html
+++ b/docs/api/javascript/module_selenium-webdriver_io.html
@@ -1,4 +1,9 @@
-selenium-webdriver/io
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_io_exec.html b/docs/api/javascript/module_selenium-webdriver_io_exec.html
new file mode 100644
index 0000000000000..36bb4d59c39f2
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_io_exec.html
@@ -0,0 +1,10 @@
+selenium-webdriver/io/exec
A hash with configuration options for an executed command.
+
+
+
args - Command line arguments.
+
env - Command environment; will inherit from the current process
+ if missing.
+
stdio - IO configuration for the spawned server process. For
+ more information, refer to the documentation of
+ child_process.spawn.
+
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_net.html b/docs/api/javascript/module_selenium-webdriver_net.html
index 128d586e96d4e..9e0b3df4b912d 100644
--- a/docs/api/javascript/module_selenium-webdriver_net.html
+++ b/docs/api/javascript/module_selenium-webdriver_net.html
@@ -1 +1 @@
-selenium-webdriver/net
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_net_portprober.html b/docs/api/javascript/module_selenium-webdriver_net_portprober.html
index 0ae96a6780acb..9af4a4686b7ba 100644
--- a/docs/api/javascript/module_selenium-webdriver_net_portprober.html
+++ b/docs/api/javascript/module_selenium-webdriver_net_portprober.html
@@ -3,4 +3,4 @@
to a free port. If a port cannot be found, the promise will be
rejected.
The bound host to test the port against.
Defaults to INADDR_ANY.
Returns
A promise that will resolve
- with whether the port is free.
\ No newline at end of file
+ with whether the port is free.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_phantomjs.html b/docs/api/javascript/module_selenium-webdriver_phantomjs.html
index a4fd791508b45..53a46783aeb56 100644
--- a/docs/api/javascript/module_selenium-webdriver_phantomjs.html
+++ b/docs/api/javascript/module_selenium-webdriver_phantomjs.html
@@ -1 +1,2 @@
-selenium-webdriver/phantomjs
The control flow to use, or
+ null to use the currently active flow.
Returns
A new WebDriver instance.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_phantomjs_class_Driver.html b/docs/api/javascript/module_selenium-webdriver_phantomjs_class_Driver.html
new file mode 100644
index 0000000000000..2ad20b1ff799e
--- /dev/null
+++ b/docs/api/javascript/module_selenium-webdriver_phantomjs_class_Driver.html
@@ -0,0 +1,3 @@
+Driver
Manually configures the browser proxy. The following options are
supported:
ftp: Proxy host to use for FTP requests
@@ -20,5 +20,5 @@
Behavior is undefined for FTP, HTTP, and HTTPS requests if the
corresponding key is omitted from the configuration options.
Configures WebDriver to use the current system's proxy.
Returns
A new proxy configuration object.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_remote.html b/docs/api/javascript/module_selenium-webdriver_remote.html
index 1abf5aa3d2b7d..3078ff7f89208 100644
--- a/docs/api/javascript/module_selenium-webdriver_remote.html
+++ b/docs/api/javascript/module_selenium-webdriver_remote.html
@@ -1,4 +1,4 @@
-selenium-webdriver/remote
Configuration options for a DriverService instance.
loopback - Whether the service should only be accessed on this
@@ -16,4 +16,4 @@
stdio - IO configuration for the spawned server process. For
more information, refer to the documentation of
child_process.spawn.
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_remote_class_DriverService.html b/docs/api/javascript/module_selenium-webdriver_remote_class_DriverService.html
index 44a90b5348a95..7656f1fb51d9b 100644
--- a/docs/api/javascript/module_selenium-webdriver_remote_class_DriverService.html
+++ b/docs/api/javascript/module_selenium-webdriver_remote_class_DriverService.html
@@ -1,19 +1,21 @@
-DriverService
Manages the life and death of a native executable WebDriver server.
It is expected that the driver server implements the
WebDriver
Wire Protocol. Furthermore, the managed server should support multiple
- concurrent sessions, so that this class may be reused for multiple clients.
Stops the service if it is not currently running. This function will kill
+ concurrent sessions, so that this class may be reused for multiple clients.
Stops the service if it is not currently running. This function will kill
the server immediately. To synchronize with the active control flow, use
#stop().
Returns
A promise that will be resolved when
- the server has been stopped.
How long to wait, in milliseconds, for the
server to start accepting requests. Defaults to 30 seconds.
Returns
A promise that will resolve
to the server's base URL when it has started accepting requests. If the
timeout expires before the server has started, the promise will be
- rejected.
Promise that resolves to the server's address or null if the server has
+ not been started. This promise will be rejected if the server terminates
+ before it starts accepting WebDriver requests.
The default amount of time, in milliseconds, to wait for the server to
+ start.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_remote_class_SeleniumServer.html b/docs/api/javascript/module_selenium-webdriver_remote_class_SeleniumServer.html
index 0b5bcceb20085..951e0ebdc5584 100644
--- a/docs/api/javascript/module_selenium-webdriver_remote_class_SeleniumServer.html
+++ b/docs/api/javascript/module_selenium-webdriver_remote_class_SeleniumServer.html
@@ -1,7 +1,7 @@
-SeleniumServer
Manages the life and death of the Selenium standalone server. The server
may be obtained from http://selenium-release.storage.googleapis.com/index.html.
port - The port to start the server on (must be > 0). If the
port is provided as a promise, the service will wait for the promise to
@@ -16,16 +16,18 @@
stdio - IO configuration for the spawned server process. For
more information, refer to the documentation of
child_process.spawn.
-
Stops the service if it is not currently running. This function will kill
the server immediately. To synchronize with the active control flow, use
#stop().
Returns
A promise that will be resolved when
- the server has been stopped.
How long to wait, in milliseconds, for the
server to start accepting requests. Defaults to 30 seconds.
Returns
A promise that will resolve
to the server's base URL when it has started accepting requests. If the
timeout expires before the server has started, the promise will be
- rejected.
Promise that resolves to the server's address or null if the server has
+ not been started. This promise will be rejected if the server terminates
+ before it starts accepting WebDriver requests.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_testing.html b/docs/api/javascript/module_selenium-webdriver_testing.html
index ed26401633343..9b9c41efa5a44 100644
--- a/docs/api/javascript/module_selenium-webdriver_testing.html
+++ b/docs/api/javascript/module_selenium-webdriver_testing.html
@@ -11,8 +11,8 @@
xit
-
The provided wrappers leverage the webdriver.promise.ControlFlow to
- simplify writing asynchronous tests:
+
The test function, or undefined to define
+ a pending test case.
\ No newline at end of file
diff --git a/docs/api/javascript/module_selenium-webdriver_testing_assert.html b/docs/api/javascript/module_selenium-webdriver_testing_assert.html
index d214b1fcb0ff6..4984939e4b877 100644
--- a/docs/api/javascript/module_selenium-webdriver_testing_assert.html
+++ b/docs/api/javascript/module_selenium-webdriver_testing_assert.html
@@ -16,4 +16,4 @@
assert(driver.getTitle()).equalTo('Google');
Either the
- matcher constructor to use, or an object literal defining a matcher.
\ No newline at end of file
+ matcher constructor to use, or an object literal defining a matcher.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_PRIMITIVE_EQUALITY_PREDICATES.html b/docs/api/javascript/namespace_PRIMITIVE_EQUALITY_PREDICATES.html
new file mode 100644
index 0000000000000..55bf9cd1bfb02
--- /dev/null
+++ b/docs/api/javascript/namespace_PRIMITIVE_EQUALITY_PREDICATES.html
@@ -0,0 +1 @@
+PRIMITIVE_EQUALITY_PREDICATES
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_bot.html b/docs/api/javascript/namespace_bot.html
index b3d27b10a6d17..b31a7eb479a4b 100644
--- a/docs/api/javascript/namespace_bot.html
+++ b/docs/api/javascript/namespace_bot.html
@@ -1,4 +1,4 @@
bot
Error extension that includes error status codes from the WebDriver wire
protocol:
http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Error codes from the WebDriver wire protocol:
- http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Show:
\ No newline at end of file
+ http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes
Show:
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_bot_json.html b/docs/api/javascript/namespace_bot_json.html
index fa0a57e3d0bc0..589e154ff9747 100644
--- a/docs/api/javascript/namespace_bot_json.html
+++ b/docs/api/javascript/namespace_bot_json.html
@@ -1,4 +1,4 @@
bot.json
A replacer function called
for each (key, value) pair that determines how the value should be
serialized. By default, this just returns the value and allows default
- serialization to kick in.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_bot_response.html b/docs/api/javascript/namespace_bot_response.html
index 3525f53aa468c..e41e0310b7f64 100644
--- a/docs/api/javascript/namespace_bot_response.html
+++ b/docs/api/javascript/namespace_bot_response.html
@@ -2,4 +2,4 @@
WebDriver wire protocol. If the response object defines an error, it will
be thrown. Otherwise, the response will be returned as is.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_bot_userAgent.html b/docs/api/javascript/namespace_bot_userAgent.html
index cde2533289267..817bcc26b28e5 100644
--- a/docs/api/javascript/namespace_bot_userAgent.html
+++ b/docs/api/javascript/namespace_bot_userAgent.html
@@ -18,4 +18,4 @@
and returns whether the version of Gecko we are on is the same or higher
than the given version. When we are not in a Firefox extension, this is null.
When we are in a Firefox extension, this is a function that accepts a version
and returns whether the version of Firefox we are on is the same or higher
- than the given version. When we are not in a Firefox extension, this is null.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog.html b/docs/api/javascript/namespace_goog.html
index 10818ad5384ba..4d1beec1fbe23 100644
--- a/docs/api/javascript/namespace_goog.html
+++ b/docs/api/javascript/namespace_goog.html
@@ -1,17 +1,18 @@
goog
Base namespace for the Closure library. Checks to see goog is already
defined in the current scope before assigning to prevent clobbering if
- base.js is loaded more than once.
When defining a class Foo with an abstract method bar(), you can do:
Foo.prototype.bar = goog.abstractMethod
Now if a subclass of Foo fails to override bar(), an error will be thrown
when bar() is invoked.
Note: This does not take the name of the function to override as an argument
- because that would make it more difficult to obfuscate our JavaScript code.
Call up to the superclass.
If this is called from a constructor, then this calls the superclass
constructor with arguments 1-N.
@@ -26,7 +27,7 @@
This function is a compiler primitive. At compile-time, the compiler will do
macro expansion to remove a lot of the extra overhead that this function
introduces. The compiler will also enforce a lot of the assumptions that this
- function makes, and treat it as a compiler error if you break them.
Partially applies this function to a particular 'this object' and zero or
more arguments. The result is a new function with some arguments of the first
function pre-filled and the value of this 'pre-specified'.
@@ -40,13 +41,13 @@
barMethBound('arg3', 'arg4');
Parameters
fn: ?function(this: T, ...)
A function to partially apply.
selfObj: T
Specifies the object which this should point to when the
function is run.
var_args: ...*
Additional arguments that are partially applied to the
function.
Returns
A partially-applied form of the function bind() was
- invoked as a method of.
Deprecated: goog.cloneObject is unsafe. Prefer the goog.object methods.
Clones a value. The input may be an Object, Array, or basic type. Objects and
arrays will be cloned recursively.
WARNINGS:
@@ -58,13 +59,30 @@
CLOSURE_DEFINES or CLOSURE_UNCOMPILED_DEFINES if the object is defined and
has the property specified, and otherwise used the defined defaultValue.
When compiled, the default can be overridden using compiler command-line
- options.
Creates a restricted form of a Closure "class":
+ - from the compiler's perspective, the instance returned from the
+ constructor is sealed (no new properties may be added). This enables
+ better checks.
+ - the compiler will rewrite this definition to a form that is optimal
+ for type checking and optimization (initially this will be a more
+ traditional form).
An object literal describing the
+ the class. It may have the following properties:
+ "constructor": the constructor function
+ "statics": an object literal containing methods to add to the constructor
+ as "static" methods or a function that will receive the constructor
+ function as its only parameter to which static properties can
+ be added.
+ all other properties are added to the prototype.
Calls dispose on each member of the list that supports it. (If the
+ member is an ArrayLike, then goog.disposeAll() will be called
+ recursively on each of its members.) If the member is not an object with a
+ dispose() method, then it is ignored.
Builds an object structure for the provided namespace path, ensuring that
names that already exist are not overwritten. For example:
"a.b.c" -> a = {};a.b={};a.b.c={};
Used by goog.provide and goog.exportSymbol.
Exposes an unobfuscated global namespace path for the given object.
Note that fields of the exported object *will* be obfuscated, unless they are
exported in turn via this function or goog.exportProperty.
@@ -78,7 +96,7 @@
ex. goog.exportSymbol('public.path.Foo.prototype.myMethod',
Foo.prototype.myMethod);
new public.path.Foo().myMethod();
Forward declares a symbol. This is an indication to the compiler that the
symbol may be used in the source yet is not required and may not be provided
in compilation.
@@ -88,7 +106,7 @@
elsewhere) the namespace may never be required and thus, not be pulled
into the JavaScript binary. If it is required elsewhere, it will be type
checked as normal.
Handles strings that are intended to be used as CSS class names.
This function works in tandem with @see goog.setCssNameMapping.
@@ -112,8 +130,8 @@
If one argument is passed it will be processed, if two are passed only the
modifier will be processed, as it is assumed the first argument was generated
as a result of calling goog.getCssName.
Gets a localized message.
This function is a compiler primitive. If you give the compiler a localized
message bundle, it will replace the string at compile-time with a localized
@@ -122,7 +140,7 @@
Messages must be initialized in the form:
var MSG_NAME = goog.getMsg('Hello {$placeholder}', {'placeholder': 'world'});
-
Gets a localized message. If the message does not have a translation, gives a
fallback message.
This is useful when introducing a new message that has not yet been
@@ -130,59 +148,65 @@
This function is a compiler primitive. Must be used in the form:
var x = goog.getMsgWithFallback(MSG_A, MSG_B);
- where MSG_A and MSG_B were initialized with goog.getMsg.
Returns an object based on its fully qualified external name. The object
is not found if null or undefined. If you are using a compilation pass that
renames property names beware that using this function will not find renamed
properties.
Gets a unique ID for an object. This mutates the object so that further calls
with the same object as a parameter returns the same value. The unique ID is
guaranteed to be unique across the current session amongst objects that are
passed into getUid. There is no guarantee that the ID is unique or
consistent across sessions. It is unsafe to generate unique ID for function
- prototypes.
Evals JavaScript in the global scope. In IE this uses execScript, other
browsers use goog.global.eval. If goog.global.eval does not evaluate in the
global scope (for example, in Safari), appends a script tag instead.
- Throws an exception if neither execScript or eval is defined.
Returns true if the object looks like an array. To qualify as array like
the value needs to be either a NodeList or an object with a Number length
- property.
Copies all the members of a source object to a target object. This method
does not work on all browsers for all objects that contain keys such as
- toString or hasOwnProperty. Use goog.object.extend for this purpose.
goog.module serves two purposes:
+ - marks a file that must be loaded as a module
+ - reserves a namespace (it can not also be goog.provided)
+ and has three requirements:
+ - goog.module may not be used in the same file as goog.provide.
+ - goog.module must be the first statement in the file.
+ - only one goog.module is allowed per file.
+ When a goog.module annotated file is loaded, it is loaded enclosed in
+ a strict function closure. This means that:
+ - any variable declared in a goog.module file are private to the file,
+ not global. Although the compiler is expected to inline the module.
+ - The code must obey all the rules of "strict" JavaScript.
+ - the file will be marked as "use strict"
+
+ NOTE: unlike goog.provide, goog.module does not declare any symbols by
+ itself.
Like bind(), except that a 'this object' is not required. Useful when the
target function is already bound.
Usage:
@@ -193,17 +217,18 @@
objects/namespaces. Provided objects must not be null or undefined.
Build tools also scan for provide/require statements
to discern dependencies, build dependency files (see deps.js), etc.
Implements a system for the dynamic resolution of dependencies that works in
parallel with the BUILD system. Note that all calls to goog.require will be
stripped by the JSCompiler when the --closure_pass option is used.
Allow for aliasing within scope functions. This function exists for
uncompiled code - in compiled code the calls will be inlined and the aliases
applied. In uncompiled code the function is simply run since the aliases as
written are valid JavaScript.
Parameters
fn: function()
Function to call. This function can contain aliases
to namespaces (e.g. "var dom = goog.dom") or classes
- (e.g. "var Timer = goog.Timer").
Marks that the current file should only be used for testing, and never for
live code in production.
In the case of unit tests, the message may optionally be an exact namespace
for the test (e.g. 'goog.stringTest'). The linter will then ignore the extra
provide (if not explicitly defined in the code).
This is a "fixed" version of the typeof operator. It differs from the typeof
- operator in such a way that null returns 'null' and arrays return 'array'.
Sealing classes breaks the older idiom of assigning properties on the
+ prototype rather than in the constructor. As such, goog.defineClass
+ must not seal subclasses of these old-style classes until they are fixed.
+ Until then, this marks a class as "broken", instructing defineClass
+ not to seal subclasses.
This is a "fixed" version of the typeof operator. It differs from the typeof
+ operator in such a way that null returns 'null' and arrays return 'array'.
Indicates whether or not we can call 'eval' directly to eval code in the
global scope. Set to a Boolean by the first call to goog.globalEval (which
- empirically tests whether eval works for globals). @see goog.globalEval
Namespaces implicitly defined by goog.provide. For example,
goog.provide('goog.events.Event') implicitly declares that 'goog' and
- 'goog.events' must be namespaces.
All singleton classes that have been instantiated, for testing. Don't read
it directly, use the goog.testing.singleton module. The compiler
- removes this variable if unused.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_array.html b/docs/api/javascript/namespace_goog_array.html
index 1eb2185db0c0d..ae5a09b487a50 100644
--- a/docs/api/javascript/namespace_goog_array.html
+++ b/docs/api/javascript/namespace_goog_array.html
@@ -1,13 +1,13 @@
-goog.array
Optional comparison
function by which the array is ordered. Should take 2 arguments to
compare, and return a negative number, zero, or a positive number
depending on whether the first argument is less than, equal to, or
- greater than the second.
Optional comparison
function by which the array is ordered. Should take 2 arguments to
compare, and return a negative number, zero, or a positive number
depending on whether the first argument is less than, equal to, or
- greater than the second.
Searches the specified array for the specified target using the binary
search algorithm. If no opt_compareFn is specified, elements are compared
using goog.array.defaultCompare, which compares the elements
using the built in < and > operators. This will produce the expected
@@ -24,7 +24,7 @@
greater than the second.
Returns
Lowest index of the target value if found, otherwise
(-(insertion point) - 1). The insertion point is where the value should
be inserted into arr to preserve the sorted property. Return value >= 0
- iff target is found.
Implementation of a binary search algorithm which knows how to use both
comparison functions and evaluators. If an evaluator is provided, will call
the evaluator with the given optional data object, conforming to the
interface defined in binarySelect. Otherwise, if a comparison function is
@@ -41,7 +41,7 @@
optional this object for the evaluator.
Returns
Lowest index of the target value if found, otherwise
(-(insertion point) - 1). The insertion point is where the value should
be inserted into arr to preserve the sorted property. Return value >= 0
- iff target is found.
Selects an index in the specified array using the binary search algorithm.
The evaluator receives an element and determines whether the desired index
is before, at, or after it. The evaluator must be consistent (formally,
goog.array.map(goog.array.map(arr, evaluator, opt_obj), goog.math.sign)
@@ -55,14 +55,14 @@
such exists; otherwise (-(insertion point) - 1). The insertion point is
the index of the first element for which the evaluator returns negative,
or arr.length if no such element exists. The return value is non-negative
- iff a match is found.
Function to call for
every element. This takes 3 arguments (the element, the index and the
array) and must return a valid object key (a string, number, etc), or
undefined, if that object should not be placed in a bucket.
opt_obj: S=
The object to be used as the value of 'this' within
sorter.
Returns
An object, with keys being all of the unique return values
of sorter, and values being arrays containing the items for
- which the splitter returned that key.
Optional comparison
function by which the array is to be ordered. Should take 2 arguments to
@@ -70,7 +70,7 @@
depending on whether the first argument is less than, equal to, or
greater than the second.
Returns
Negative number, zero, or a positive number depending on
whether the first argument is less than, equal to, or greater than the
- second.
Returns a new array that is the result of joining the arguments. If arrays
are passed then their items are added, however, if non-arrays are passed they
will be added to the return array as is.
@@ -95,9 +95,9 @@
element.
Compares two arrays for equality. Two arrays are considered equal if they
have the same length and their corresponding elements are equal according to
the comparison function.
Optional comparison function.
Should take 2 arguments to compare, and return true if the arguments
@@ -110,7 +110,7 @@
like object over which to iterate.
Extends an array with another array, element, or "array like" object.
This function operates 'in-place', it does not create a new Array.
Example:
@@ -152,7 +152,7 @@
for every element. This function
takes 3 arguments (the element, the index and the array) and should
return a boolean.
opt_obj: S=
An optional "this" context for the function.
Returns
The last array element that passes the test, or null if no
- element is found.
Function to compare the
array elements.
Should take 2 arguments to compare, and return a negative number, zero,
or a positive number depending on whether the first argument is less
- than, equal to, or greater than the second.
Returns the index of the last element of an array with a specified value, or
-1 if the element is not present in the array.
@@ -186,12 +186,12 @@
over which to iterate.
The function to call
for every element. This function takes 3 arguments (the element,
the index and the array) and should return something. The result will be
- inserted into a new array.
opt_obj: THIS=
The object to be used as the value of 'this' within f.
Moves one item of an array to a new position keeping the order of the rest
of the items. Example use case: keeping a list of JavaScript objects
synchronized with the corresponding list of DOM elements after one of the
elements has been dragged to a new position.
Removes all duplicates from an array (retaining only the first
occurrence of each array element). This function modifies the
array in place and doesn't change the order of the non-duplicate items.
@@ -255,13 +259,13 @@
like object over which to iterate.
Rotates an array in-place. After calling this method, the element at
index i will be the element previously at index (i - n) %
array.length, for all values of i between 0 and array.length - 1,
inclusive.
For example, suppose list comprises [t, a, n, k, s]. After invoking
- rotate(array, 1) (or rotate(array, -4)), array will comprise [s, t, a, n, k].
Shuffles the values in the specified array using the Fisher-Yates in-place
+ rotate(array, 1) (or rotate(array, -4)), array will comprise [s, t, a, n, k].
Shuffles the values in the specified array using the Fisher-Yates in-place
shuffle (also known as the Knuth Shuffle). By default, calls Math.random()
and so resets the state of that random number generator. Similarly, may reset
the state of the any other specified random number generator.
@@ -269,7 +273,7 @@
Runtime: O(n)
Optional random function to use for
shuffling.
Takes no arguments, and returns a random number on the interval [0, 1).
- Defaults to Math.random() using JavaScript's built-in Math library.
Returns a new array from a segment of an array. This is a generic version of
Array slice. This means that it might work on other objects similar to
arrays, such as the arguments object.
Sorts the specified array into ascending order. If no opt_compareFn is
specified, elements are compared using
goog.array.defaultCompare, which compares the elements using
the built in < and > operators. This will produce the expected behavior
@@ -295,18 +299,18 @@
function by which the
array is to be ordered. Should take 2 arguments to compare, and return a
negative number, zero, or a positive number depending on whether the
- first argument is less than, equal to, or greater than the second.
Sorts an array of objects by the specified object key and compare
function. If no compare function is provided, the key values are
compared in ascending order using goog.array.defaultCompare.
This won't work for keys that get renamed by the compiler. So use
{'foo': 1, 'bar': 2} rather than {foo: 1, bar: 2}.
Adds or removes elements from an array. This is a generic version of Array
splice. This means that it might work on other objects similar to arrays,
such as the arguments object.
Sorts the specified array into ascending order in a stable way. If no
opt_compareFn is specified, elements are compared using
goog.array.defaultCompare, which compares the elements using
the built in < and > operators. This will produce the expected behavior
@@ -317,11 +321,11 @@
by which the array is to be ordered. Should take 2 arguments to compare,
and return a negative number, zero, or a positive number depending on
whether the first argument is less than, equal to, or greater than the
- second.
The object converted into an array. If object has a
length property, every property indexed with a non-negative number
less than length will be included in the result. If object does not
- have a length property, an empty array will be returned.
The function to
call for every element. This function takes 3 arguments (the element, the
@@ -329,9 +333,9 @@
key for the element in the new object. If the function returns the same
key for more than one element, the value for that key is
implementation-defined.
opt_obj: S=
The object to be used as the value of 'this'
- within keyFunc.
Creates a new array for which the element at position i is an array of the
ith element of the provided arrays. The returned array will only be as long
as the shortest array provided; additional values are ignored. For example,
the result of zipping [1, 2] and [3, 4, 5] is [[1,3], [2, 4]].
- This is similar to the zip() function in Python. See http://docs.python.org/library/functions.html#zip
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_asserts.html b/docs/api/javascript/namespace_goog_asserts.html
index bdb36c70d89c7..2c97fd2180eed 100644
--- a/docs/api/javascript/namespace_goog_asserts.html
+++ b/docs/api/javascript/namespace_goog_asserts.html
@@ -1,14 +1,14 @@
-goog.asserts
Checks if the value is an instance of the user-defined type if
goog.asserts.ENABLE_ASSERTS is true.
The compiler may tighten the type returned by this function.
Fails if goog.asserts.ENABLE_ASSERTS is true. This function is useful in case
when we want to add a check in the unreachable area like switch-case
statement:
@@ -19,4 +19,6 @@
default: goog.assert.fail('Unrecognized type: ' + type);
// We have only 2 types - "default:" section is unreachable code.
}
-
Sets a custom error handler that can be used to customize the behavior of
+ assertion failures, for example by turning all assertion failures into log
+ messages.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_async.html b/docs/api/javascript/namespace_goog_async.html
new file mode 100644
index 0000000000000..75fad2ac26fae
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_async.html
@@ -0,0 +1,14 @@
+goog.async
Fires the provided callbacks as soon as possible after the current JS
+ execution context. setTimeout(…, 0) takes at least 4ms when called from
+ within another setTimeout(…, 0) for legacy reasons.
+
+ This will not schedule the callback as a microtask (i.e. a task that can
+ preempt user input or networking callbacks). It is meant to emulate what
+ setTimeout(_, 0) would do if it were not throttled. If you desire microtask
+ behavior, use goog.Promise instead.
Throw an item without interrupting the current execution context. For
+ example, if processing a group of items in a loop, sometimes it is useful
+ to report an error while still allowing the rest of the batch to be
+ processed.
Parameters
exception
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_async_nextTick.html b/docs/api/javascript/namespace_goog_async_nextTick.html
new file mode 100644
index 0000000000000..26a5026c924f5
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_async_nextTick.html
@@ -0,0 +1,11 @@
+goog.async.nextTick
Fires the provided callbacks as soon as possible after the current JS
+ execution context. setTimeout(…, 0) takes at least 4ms when called from
+ within another setTimeout(…, 0) for legacy reasons.
+
+ This will not schedule the callback as a microtask (i.e. a task that can
+ preempt user input or networking callbacks). It is meant to emulate what
+ setTimeout(_, 0) would do if it were not throttled. If you desire microtask
+ behavior, use goog.Promise instead.
Helper function that is overrided to protect callbacks with entry point
+ monitor if the application monitors entry points.
Parameters
callback: function()
Callback function to fire as soon as possible.
Returns
The wrapped callback.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_async_run.html b/docs/api/javascript/namespace_goog_async_run.html
new file mode 100644
index 0000000000000..80a1ddca71526
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_async_run.html
@@ -0,0 +1,9 @@
+goog.async.run
Forces goog.async.run to use nextTick instead of Promise.
+
+ This should only be done in unit tests. It's useful because MockClock
+ replaces nextTick, but not the browser Promise implementation, so it allows
+ Promise-based code to be tested with MockClock.
Run any pending goog.async.run work items. This function is not intended
+ for general use, but for use by entry point handlers to run items ahead of
+ goog.async.nextTick.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_debug.html b/docs/api/javascript/namespace_goog_debug.html
index 351be286309b4..45efc3db4d239 100644
--- a/docs/api/javascript/namespace_goog_debug.html
+++ b/docs/api/javascript/namespace_goog_debug.html
@@ -1 +1,27 @@
-goog.debug
A message value that can be handled by a Logger.
+
+ Functions are treated like callbacks, but are only called when the event's
+ log level is enabled. This is useful for logging messages that are expensive
+ to construct.
Creates a string representing a given primitive or object, and for an
+ object, all its properties and nested objects. WARNING: If an object is
+ given, it and all its nested objects will be modified. To detect reference
+ cycles, this method identifies objects using goog.getUid() which mutates the
+ object.
Makes whitespace visible by replacing it with printable characters.
+ This is useful in finding diffrences between the expected and the actual
+ output strings of a testcase.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_debug_LogManager.html b/docs/api/javascript/namespace_goog_debug_LogManager.html
new file mode 100644
index 0000000000000..4d2a93365863b
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_debug_LogManager.html
@@ -0,0 +1,10 @@
+goog.debug.LogManager
There is a single global LogManager object that is used to maintain a set of
+ shared state about Loggers and log services. This is loosely based on the
+ java class java.util.logging.LogManager.
A name for the logger. This should be a dot-separated
+ name and should normally be based on the package name or class name of the
+ subsystem, such as goog.net.BrowserChannel.
The root logger which is the root of the logger tree.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_debug_entryPointRegistry.html b/docs/api/javascript/namespace_goog_debug_entryPointRegistry.html
new file mode 100644
index 0000000000000..c76becc70d4b3
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_debug_entryPointRegistry.html
@@ -0,0 +1,17 @@
+goog.debug.entryPointRegistry
Configures a monitor to wrap all entry points.
+
+ Entry points that have already been registered are immediately wrapped by
+ the monitor. When an entry point is registered in the future, it will also
+ be wrapped by the monitor when it is registered.
Register an entry point with this module.
+
+ The entry point will be instrumented when a monitor is passed to
+ goog.debug.entryPointRegistry.monitorAll. If this has already occurred, the
+ entry point is instrumented immediately.
A callback function which is called
+ with a transforming function to instrument the entry point. The callback
+ is responsible for wrapping the relevant entry point with the
+ transforming function.
Try to unmonitor all the entry points that have already been registered. If
+ an entry point is registered in the future, it will not be wrapped by the
+ monitor when it is registered. Note that this may fail if the entry points
+ have additional wrapping.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_defineClass.html b/docs/api/javascript/namespace_goog_defineClass.html
new file mode 100644
index 0000000000000..e0d1d139c7da0
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_defineClass.html
@@ -0,0 +1,16 @@
+goog.defineClass
Creates a restricted form of a Closure "class":
+ - from the compiler's perspective, the instance returned from the
+ constructor is sealed (no new properties may be added). This enables
+ better checks.
+ - the compiler will rewrite this definition to a form that is optimal
+ for type checking and optimization (initially this will be a more
+ traditional form).
An object literal describing the
+ the class. It may have the following properties:
+ "constructor": the constructor function
+ "statics": an object literal containing methods to add to the constructor
+ as "static" methods or a function that will receive the constructor
+ function as its only parameter to which static properties can
+ be added.
+ all other properties are added to the prototype.
If goog.defineClass.SEAL_CLASS_INSTANCES is enabled and Object.seal is
+ defined, this function will wrap the constructor in a function that seals the
+ results of the provided constructor function.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_disposable.html b/docs/api/javascript/namespace_goog_disposable.html
new file mode 100644
index 0000000000000..bedb3135fd513
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_disposable.html
@@ -0,0 +1 @@
+goog.disposable
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_dom.html b/docs/api/javascript/namespace_goog_dom.html
index 3331708ceb832..8a76354dbdcf0 100644
--- a/docs/api/javascript/namespace_goog_dom.html
+++ b/docs/api/javascript/namespace_goog_dom.html
@@ -1 +1,232 @@
-goog.dom
The things to append to the node.
+ If this is a Node it is appended as is.
+ If this is a string then a text node is appended.
+ If this is an array like object then fields 0 to length - 1 are appended.
Determines if the given node can contain children, intended to be used for
+ HTML generation.
+
+ IE natively supports node.canHaveChildren but has inconsistent behavior.
+ Prior to IE8 the base tag allows children and in IE9 all nodes return true
+ for canHaveChildren.
+
+ In practice all non-IE browsers allow you to add children to any node, but
+ the behavior is inconsistent:
+
+
Compares the document order of two nodes, returning 0 if they are the same
+ node, a negative number if node1 is before node2, and a positive number if
+ node2 is before node1. Note that we compare the order the tags appear in the
+ document so in the tree text the B node is considered to be
+ before the I node.
Utility function to compare the position of two nodes, when
+ textNode's parent is an ancestor of node. If this entry
+ condition is not met, this function will attempt to reference a null object.
Returns a dom node with a set of attributes. This function accepts varargs
+ for subsequent nodes to be added. Subsequent nodes will be added to the
+ first node as childNodes.
+
+ So:
+ createDom('div', null, createDom('p'), createDom('p'));
+ would return a div with two child paragraphs
If object, then a map
+ of name-value pairs for attributes. If a string, then this is the
+ className of the new element. If an array, the elements will be joined
+ together as the className of the new element.
Finds the first descendant node that matches the filter function, using
+ a depth first search. This function offers the most general purpose way
+ of finding a matching element. You may also wish to consider
+ goog.dom.query which can express many matching criteria using
+ CSS selector expressions. These expressions often result in a more
+ compact representation of the desired result.
Finds all the descendant nodes that match the filter function, using a
+ a depth first search. This function offers the most general-purpose way
+ of finding a set of matching elements. You may also wish to consider
+ goog.dom.query which can express many matching criteria using
+ CSS selector expressions. These expressions often result in a more
+ compact representation of the desired result.
Walks up the DOM hierarchy returning the first ancestor that has the passed
+ class name. If the passed element matches the specified criteria, the
+ element itself is returned.
Walks up the DOM hierarchy returning the first ancestor that has the passed
+ tag name and/or class name. If the passed element matches the specified
+ criteria, the element itself is returned.
Calculates the height of the document of the given window.
+
+ Function code copied from the opensocial gadget api:
+ gadgets.window.adjustHeight(opt_height)
Looks up elements by both tag and class name, using browser native functions
+ (querySelectorAll, getElementsByTagName or
+ getElementsByClassName) where possible. This function
+ is a useful, if limited, way of collecting a list of DOM elements
+ with certain characteristics. goog.dom.query offers a
+ more powerful and general solution which allows matching on CSS3
+ selector expressions, but at increased cost in code size. If all you
+ need is particular tags belonging to a single class, this function
+ is fast and sleek.
+
+ Note that tag names are case sensitive in the SVG namespace, and this
+ function converts opt_tag to uppercase for comparisons. For queries in the
+ SVG namespace you should use querySelector or querySelectorAll instead.
+ https://bugzilla.mozilla.org/show_bug.cgi?id=963870
+ https://bugs.webkit.org/show_bug.cgi?id=83438
Returns the node at a given offset in a parent node. If an object is
+ provided for the optional third parameter, the node and the remainder of the
+ offset will stored as properties of this object.
Object to be used to store the return value. The
+ return value will be stored in the form {node: Node, remainder: number}
+ if this object is provided.
Returns the text length of the text contained in a node, without markup. This
+ is equivalent to the selection length if the node was selected, or the number
+ of cursor movements to traverse the node. Images & BRs take one space. New
+ lines are ignored.
Returns the text offset of a node relative to one of its ancestors. The text
+ length is the same as the length calculated by goog.dom.getNodeTextLength.
Gives the current devicePixelRatio.
+
+ By default, this is the value of window.devicePixelRatio (which should be
+ preferred if present).
+
+ If window.devicePixelRatio is not present, the ratio is calculated with
+ window.matchMedia, if present. Otherwise, gives 1.0.
+
+ Some browsers (including Chrome) consider the browser zoom level in the pixel
+ ratio, so the value may change across multiple calls.
Returns the text content of the current node, without markup.
+
+ Unlike getTextContent this method does not collapse whitespaces
+ or normalize lines breaks.
Gets an element by id, asserting that the element is found.
+
+ This is used when an element is expected to exist, and should fail with
+ an assertion error if it does not (if assertions are enabled).
Returns the text content of the current node, without markup and invisible
+ symbols. New lines are stripped and whitespace is collapsed,
+ such that each character would be visible.
+
+ In browsers that support it, innerText is used. Other browsers attempt to
+ simulate it via node traversal. Line breaks are canonicalized in IE.
Converts an HTML string into a document fragment. The string must be
+ sanitized in order to avoid cross-site scripting. For example
+ goog.dom.htmlToDocumentFragment('<img src=x onerror=alert(0)>')
+ triggers an alert in all browsers, even if the returned document fragment
+ is thrown away immediately.
Insert a child at a given index. If index is larger than the number of child
+ nodes that the parent currently has, the node is inserted as the last child
+ node.
Returns true if the element can be focused, i.e. it has a tab index that
+ allows it to receive keyboard focus (tabIndex >= 0), or it is an element
+ that natively supports keyboard focus.
Returns true if the element has a tab index that allows it to receive
+ keyboard focus (tabIndex >= 0), false otherwise. Note that some elements
+ natively support keyboard focus, even if they have no tab index.
Returns true if the object is a NodeList. To qualify as a NodeList,
+ the object must have a numeric length property and an item function (which
+ has type 'string' on IE for some reason).
Enables or disables keyboard focus support on the element via its tab index.
+ Only elements for which goog.dom.isFocusableTabIndex returns true
+ (or elements that natively support keyboard focus, like form elements) can
+ receive keyboard focus. See http://go/tabindex for more info.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_dom_vendor.html b/docs/api/javascript/namespace_goog_dom_vendor.html
new file mode 100644
index 0000000000000..b8e21e7053d74
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_dom_vendor.html
@@ -0,0 +1,4 @@
+goog.dom.vendor
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_events.html b/docs/api/javascript/namespace_goog_events.html
new file mode 100644
index 0000000000000..a072eb5af600b
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_events.html
@@ -0,0 +1,97 @@
+goog.events
An implementation of goog.events.Listenable with full W3C
+ EventTarget-like support (capture/bubble mechanism, stopping event
+ propagation, preventing default actions).
A typedef for event like objects that are dispatchable via the
+ goog.events.dispatchEvent function. strings are treated as the type for a
+ goog.events.Event. Objects are treated as an extension of a new
+ goog.events.Event with the type property of the object being used as the type
+ of the Event.
Dispatches an event (or event like object) and calls all listeners
+ listening for events of this type. The type of the event is decided by the
+ type property on the event object.
+
+ If any of the listeners returns false OR calls preventDefault then this
+ function will return false. If one of the capture listeners calls
+ stopPropagation, then the bubble listeners won't fire.
If anyone called preventDefault on the event object (or
+ if any of the handlers returns false) this will also return false.
+ If there are no handlers, or if all handlers return true, this returns
+ true.
Returns a string with on prepended to the specified type. This is used for IE
+ which expects "on" to be prepended. This function caches the string in order
+ to avoid extra allocations in steady state.
Deprecated: This returns estimated count, now that Closure no longer
+ stores a central listener registry. We still return an estimation
+ to keep existing listener-related tests passing. In the near future,
+ this function will be removed.
Gets the total number of listeners currently in the system.
Returns whether an event target has any active listeners matching the
+ specified signature. If either the type or capture parameters are
+ unspecified, the function will match on the remaining criteria.
Adds an event listener for a specific event on a native event
+ target (such as a DOM element) or an object that has implemented
+ goog.events.Listenable. A listener can only be added once
+ to an object and if it is added again the key for the listener is
+ returned. Note that if the existing listener is a one-off listener
+ (registered via listenOnce), it will no longer be a one-off
+ listener after a call to listen().
Adds an event listener for a specific event on a native event
+ target (such as a DOM element) or an object that has implemented
+ goog.events.Listenable. After the event has fired the event
+ listener is removed from the target.
+
+ If an existing listener already exists, listenOnce will do
+ nothing. In particular, if the listener was previously registered
+ via listen(), listenOnce() will not turn the listener into a
+ one-off listener. Similarly, if there is already an existing
+ one-off listener, listenOnce does not modify the listeners (it is
+ still a once listener).
Adds an event listener with a specific event wrapper on a DOM Node or an
+ object that has implemented goog.events.Listenable. A listener can
+ only be added once to an object.
Adds an event listener for a specific event on a native event
+ target. A listener can only be added once to an object and if it
+ is added again the key for the listener is returned.
+
+ Note that a one-off listener will not change an existing listener,
+ if any. On the other hand a normal listener will change existing
+ one-off listener to become a normal listener.
Deprecated: This doesn't do anything, now that Closure no longer
+ stores a central listener registry.
Removes all native listeners registered via goog.events. Native
+ listeners are listeners on native browser objects (such as DOM
+ elements). In particular, goog.events.Listenable and
+ goog.events.EventTarget listeners will NOT be removed.
The listener function or an
+ object that contains handleEvent method.
Returns
Either the original function or a function that
+ calls obj.handleEvent. If the same listener is passed to this
+ function more than once, the same function is guaranteed to be
+ returned.
Map of computed "on" strings for IE event types. Caching
+ this removes an extra object allocation in goog.events.listen which
+ improves IE6 performance.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_functions.html b/docs/api/javascript/namespace_goog_functions.html
index 2c6b22d5d997e..a40a71094c307 100644
--- a/docs/api/javascript/namespace_goog_functions.html
+++ b/docs/api/javascript/namespace_goog_functions.html
@@ -27,4 +27,4 @@
functions.
Creates a function that calls the functions passed in in sequence, and
returns the value of the last function. For example,
(goog.functions.sequence(f, g))(x) is equivalent to f(x),g(x).
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_iter.html b/docs/api/javascript/namespace_goog_iter.html
index d2c1cc4f337c8..eacac6f1b6838 100644
--- a/docs/api/javascript/namespace_goog_iter.html
+++ b/docs/api/javascript/namespace_goog_iter.html
@@ -186,4 +186,4 @@
with fillValue. Once the longest iterable is exhausted, subsequent
calls to next() will throw goog.iter.StopIteration.
Parameters
fillValue: VALUE
The object or value used to fill shorter iterables.
Singleton Error object that is used to terminate iterations.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_json.html b/docs/api/javascript/namespace_goog_json.html
index 401618f0de685..a8d41253f9f47 100644
--- a/docs/api/javascript/namespace_goog_json.html
+++ b/docs/api/javascript/namespace_goog_json.html
@@ -1,10 +1,10 @@
-goog.json
Parses a JSON string and returns the result. This throws an exception if
the string is an invalid JSON string.
Note that this is very slow on large strings. If you trust the source of
- the string then you should use unsafeParse instead.
Parameters
s: *
The JSON string to parse.
Returns
The object generated from the JSON string, or null.
A replacer function
called for each (key, value) pair that determines how the value
should be serialized. By defult, this just returns the value
- and allows default serialization to kick in.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_labs.html b/docs/api/javascript/namespace_goog_labs.html
index 275cd5427fee4..ec6f76c15d8d6 100644
--- a/docs/api/javascript/namespace_goog_labs.html
+++ b/docs/api/javascript/namespace_goog_labs.html
@@ -1 +1 @@
-goog.labs
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_labs_testing.html b/docs/api/javascript/namespace_goog_labs_testing.html
index 2d4df991e5f73..e97e64365c2c9 100644
--- a/docs/api/javascript/namespace_goog_labs_testing.html
+++ b/docs/api/javascript/namespace_goog_labs_testing.html
@@ -1 +1 @@
-goog.labs.testing
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_labs_userAgent.html b/docs/api/javascript/namespace_goog_labs_userAgent.html
index 1108d076245aa..732c4b750dd38 100644
--- a/docs/api/javascript/namespace_goog_labs_userAgent.html
+++ b/docs/api/javascript/namespace_goog_labs_userAgent.html
@@ -1 +1 @@
-goog.labs.userAgent
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_labs_userAgent_browser.html b/docs/api/javascript/namespace_goog_labs_userAgent_browser.html
index 306bf260fd25d..acc4108adae46 100644
--- a/docs/api/javascript/namespace_goog_labs_userAgent_browser.html
+++ b/docs/api/javascript/namespace_goog_labs_userAgent_browser.html
@@ -1,15 +1,13 @@
-goog.labs.userAgent.browser
The browser version or empty string if version cannot be
+ http://blogs.msdn.com/b/ie/archive/2009/01/09/the-internet-explorer-8-user-agent-string-updated-edition.aspx
The browser version or empty string if version cannot be
determined. Note that for Internet Explorer, this returns the version of
the browser, not the version of the rendering engine. (IE 8 in
compatibility mode will return 8.0 rather than 7.0. To determine the
rendering engine version, look at document.documentMode instead. See
http://msdn.microsoft.com/en-us/library/cc196988(v=vs.85).aspx for more
- details.)
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_labs_userAgent_engine.html b/docs/api/javascript/namespace_goog_labs_userAgent_engine.html
index 90ed19b95d438..1f9b838a91b7c 100644
--- a/docs/api/javascript/namespace_goog_labs_userAgent_engine.html
+++ b/docs/api/javascript/namespace_goog_labs_userAgent_engine.html
@@ -1,4 +1,4 @@
goog.labs.userAgent.engine
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_labs_userAgent_util.html b/docs/api/javascript/namespace_goog_labs_userAgent_util.html
index b84a141e89e4f..e56994c688ea4 100644
--- a/docs/api/javascript/namespace_goog_labs_userAgent_util.html
+++ b/docs/api/javascript/namespace_goog_labs_userAgent_util.html
@@ -6,4 +6,4 @@
case.
Applications may override browser detection on the built in
navigator.userAgent object by setting this string. Set to null to use the
browser object instead.
A possible override for applications which wish to not check
- navigator.userAgent but use a specified value for detection instead.
\ No newline at end of file
+ navigator.userAgent but use a specified value for detection instead.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_math.html b/docs/api/javascript/namespace_goog_math.html
index 7ba748a1ae116..224a4e663599f 100644
--- a/docs/api/javascript/namespace_goog_math.html
+++ b/docs/api/javascript/namespace_goog_math.html
@@ -1,4 +1,4 @@
-goog.math
Computes the angle between two points (x1,y1) and (x2,y2).
Angle zero points in the +X direction, 90 degrees points in the +Y
direction (down) and from there we grow clockwise towards 360 degrees.
The upper bound for the random number (exclusive).
Returns
A random number N such that a <= N < b.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_net.html b/docs/api/javascript/namespace_goog_net.html
index a8e5b1dc111fe..8079e415c6bcc 100644
--- a/docs/api/javascript/namespace_goog_net.html
+++ b/docs/api/javascript/namespace_goog_net.html
@@ -1 +1 @@
-goog.net
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_net_XmlHttp.html b/docs/api/javascript/namespace_goog_net_XmlHttp.html
index e116d8959b654..6d28fc5eb2a23 100644
--- a/docs/api/javascript/namespace_goog_net_XmlHttp.html
+++ b/docs/api/javascript/namespace_goog_net_XmlHttp.html
@@ -1,4 +1,4 @@
goog.net.XmlHttp
Status constants for XMLHTTP, matches:
http://msdn.microsoft.com/library/default.asp?url=/library/
en-us/xmlsdk/html/0e6a34e4-f90c-489d-acff-cb44242fafc6.asp
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_net_XmlHttpDefines.html b/docs/api/javascript/namespace_goog_net_XmlHttpDefines.html
index eaedcebe8c407..18c999c13250d 100644
--- a/docs/api/javascript/namespace_goog_net_XmlHttpDefines.html
+++ b/docs/api/javascript/namespace_goog_net_XmlHttpDefines.html
@@ -1 +1 @@
-goog.net.XmlHttpDefines
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_object.html b/docs/api/javascript/namespace_goog_object.html
index 11a0649abb734..c9af760a4b494 100644
--- a/docs/api/javascript/namespace_goog_object.html
+++ b/docs/api/javascript/namespace_goog_object.html
@@ -1,22 +1,22 @@
-goog.object
Creates a new object built from the key-value pairs provided as arguments.
Parameters
var_args: ...*
If only one argument is provided and it is an array
then this is used as the arguments, otherwise even arguments are used as
the property names and odd arguments are used as the property values.
Creates an immutable view of the underlying object, if the browser
supports immutable objects.
In default mode, writes to this view will fail silently. In strict mode,
they will throw an error.
Calls a function for each element in an object/map/hash. If
all calls return true, returns true. If any call returns false, returns
false at this point and does not continue to check the remaining elements.
Extends an object with another object.
This operates 'in-place'; it does not create a new Object.
Example:
@@ -26,47 +26,47 @@
goog.object.extend(o, {b: 2, c: 3});
o; // {a: 0, b: 2, c: 3}
The function to call
for every element. This
function takes 3 arguments (the element, the index and the object)
and should return a boolean. If the return value is true the
element is added to the result object. If it is false the
element is not included.
opt_obj: T=
This is used as the 'this' object within f.
Returns
a new object in which only elements that passed the
- test are present.
Returns one key from the object map, if any exists.
For map literals the returned key will be the first one in most of the
- browsers (a know exception is Konqueror).
Returns one value from the object map, if any exists.
For map literals the returned value will be the first one in most of the
- browsers (a know exception is Konqueror).
Get a value from an object multiple levels deep. This is useful for
pulling values from deeply nested objects, such as JSON responses.
Example usage: getValueByKeys(jsonObj, 'foo', 'entries', 3)
The function to call
for every element. This function
takes 3 arguments (the element, the index and the object)
and should return something. The result will be inserted
- into a new object.
Calls a function for each element in an object/map/hash. If any
call returns true, returns true (without checking the rest). If
all calls return false, returns false.
Returns a new object in which all the keys and values are interchanged
(keys become values and values become keys). If multiple keys map to the
- same value, the chosen transposed value is implementation-dependent.
Clones a value. The input may be an Object, Array, or basic type. Objects and
arrays will be cloned recursively.
WARNINGS:
@@ -74,4 +74,4 @@
that refer to themselves will cause infinite recursion.
goog.object.unsafeClone is unaware of unique identifiers, and
- copies UIDs created by getUid into cloned results.
The names of the fields that are defined on Object.prototype.
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_reflect.html b/docs/api/javascript/namespace_goog_reflect.html
new file mode 100644
index 0000000000000..68871f5877651
--- /dev/null
+++ b/docs/api/javascript/namespace_goog_reflect.html
@@ -0,0 +1,7 @@
+goog.reflect
To assert to the compiler that an operation is needed when it would
+ otherwise be stripped. For example:
+
+ // Force a layout
+ goog.reflect.sinkValue(dialog.offsetHeight);
+
\ No newline at end of file
diff --git a/docs/api/javascript/namespace_goog_string.html b/docs/api/javascript/namespace_goog_string.html
index 3ccce5b4fada6..e4ace34fba831 100644
--- a/docs/api/javascript/namespace_goog_string.html
+++ b/docs/api/javascript/namespace_goog_string.html
@@ -1,4 +1,4 @@
-goog.string
Concatenates string expressions. This is useful
since some browsers are very inefficient when it comes to using plus to
concat strings. Be careful when using null and undefined here since
these will not be included in the result. If you need to represent these
@@ -10,24 +10,24 @@
it will be casted to one.