Testing web-sys for input, heading and title elements. (#596)

This commit is contained in:
Jonathan Kingston
2018-07-31 16:57:16 +01:00
committed by Alex Crichton
parent 05f3eec76d
commit 26a3e57536
12 changed files with 273 additions and 75 deletions

View File

@@ -46,6 +46,18 @@ export function new_style() {
return document.createElement("style");
}
export function new_input() {
return document.createElement("input");
}
export function new_title() {
return document.createElement("title");
}
export function new_heading() {
return document.createElement("h1");
}
export function new_xpath_result() {
let xmlDoc = new DOMParser().parseFromString("<root><value>tomato</value></root>", "application/xml");
let xpathResult = xmlDoc.evaluate("/root//value", xmlDoc, null, XPathResult.ANY_TYPE, null);