| Class XPathTester |
|
| Methods |
| Included modules |
| Public Instance methods |
| setup() |
| each_test( element, xpath, num_children ) {|child if block_given?| ...} |
| test_descendant() |
| test_root() |
| test_abbreviated_simple_child() |
| test_child() |
| test_root_child() |
| test_root_children() |
| test_abbreviated_step() |
| test_predicates() |
Things that aren't tested elsewhere
| test_node_type() |
| test_functions() |
| no_test_ancestor() |
| test_more() |
Here are some XPath tests that were originally submitted by ... The code has changed some, but the logic and the source documents are the same. This method reads a document from a file, and then a series of xpaths, also from a file. It then checks each xpath against the source file.
| test_axe_descendant() |
| test_axe_parent() |
| test_abbreviated_attribute() |
| test_axe_self() |
| test_axe_ancestor() |
| test_axe_child() |
| test_axe_attribute() |
| test_axe_sibling() |
| test_lang() |
| test_namespaces_1() |
| test_namespaces_2() |
| test_complex() |
| test_grouping() |
| test_preceding() |
| test_following() |