Lines Matching defs:element
101 * Populates the test suite with tests from the given XML context element.
104 InputSource inputSource, Element element) {
107 * Each context element has this structure:
119 String select = element.getAttribute("select");
123 xpath.setXPathVariableResolver(new ElementVariableResolver(element));
125 for (Element test : elementsOf(element.getChildNodes())) {
139 * Returns the test described by the given {@code <test>} element. Such
144 * <li>String matches. These tests have a nested {@code <valueOf>} element
151 final XPath xpath, final Context context, final Element element) {
152 final String select = element.getAttribute("select");
155 if (element.getAttribute("exception").equals("true")) {
168 NodeList valueOfElements = element.getElementsByTagName("valueOf");
184 final String count = element.getAttribute("count");
199 * Returns the test described by the given {@code <valueOf>} element. These
203 final XPath xpath, final Context context, final Element element) {
204 final String select = element.getAttribute("select");
207 assertEquals(element.getTextContent(),
284 * attributes from the given element.
287 private final Element element;
288 public ElementVariableResolver(Element element) {
289 this.element = element;
292 return element.getAttribute("var:" + variableName.getLocalPart());