85868788899091929394
case Node.TEXT_NODE: return "#text"; case com.google.gwt.xml.client.Node.ATTRIBUTE_NODE: return JavaScriptObjects.getString(node, JsoProperties.XML_ATTR_NAME); default: throw new GwtTestDomException( "Invalid Node type (not a Document / Element / Text / Attribute) : " + node.getNodeType()); } }
107108109110111112113114115
return null; case Node.TEXT_NODE: Text text = node.cast(); return text.getData(); default: throw new GwtTestDomException("Invalid Node type (not a Document / Element / Text : " + node.getNodeType()); } }
67686970717273
return Event.ONGESTURECHANGE; } else if (type.equals("gestureend")) { return Event.ONGESTUREEND; } throw new GwtTestDomException("Unable to convert DOM Event \"" + type + "\" to an integer"); }
127128129130131132133134135
case Event.ONGESTURECHANGE: return "gesturechange"; case Event.ONGESTUREEND: return "gestureend"; default: throw new GwtTestDomException("Cannot get the String type of event with code [" + eventTypeInt + "]"); } }
138139140141142143144145146147148
return DOCUMENT_HOLDER.document; } catch (Exception e) { if (GwtTestException.class.isInstance(e)) { throw (GwtTestException) e; } else { throw new GwtTestDomException("Unable to create Document", e); } } } return DOCUMENT_HOLDER.document; }
247248249250251252253254255256257
NodeList<Node> list = GwtHtmlParser.parse(html); Element htmlElement = findHTMLElement(list); if (htmlElement == null) { throw new GwtTestDomException("Cannot find a root <html> element in file '" + hostPagePath + "'"); } return htmlElement; }