package webtest
-
webtest.js
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A zipper implementation based on Suite.t, which represents the current location in the tree as well as the path used to reach the current location from the root.
Generally this module should not be used directly; instead Utils.run can be used to traverse the test tree and report results.
type crumb = {
left : Suite.t list;
The list of siblings to the left of the current location.
*)label : string;
The label of the parent of the current location.
*)right : Suite.t list;
The list of siblings to the right of the current location.
*)}
A type representing the path through a Webtest.Suite.t from the root to the current location.
type t = {
crumbs : crumb list;
The list of crumbs which leads to the current location in the tree.
*)location : Suite.t;
The current location in the tree.
*)}
A zipper implementation based on Suite.t.
Attempt to move up to the parent node.
Attempt to move down to the first child node.
Attempt to move down to the first child node.
Attempt to move right to the next sibling.
Attempt to move to the next location while traversing the tree. Return None if we're already at the last location to be traversed.
val get_labels : t -> string list
Get the list of labels from all crumbs plus that of the current location, starting at the root of the tree.