This repository was archived by the owner on Nov 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathWebapi__Dom__Document__test.re
56 lines (53 loc) · 2.65 KB
/
Webapi__Dom__Document__test.re
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
open Webapi.Dom;
open Document;
let el = document |> createElement("strong");
let _ = compatMode(document);
let _ = doctype(document);
let _ = documentElement(document);
let _ = documentURI(document);
let _ = hidden(document);
let _ = implementation(document);
let _ = lastStyleSheetSet(document);
let _ = pointerLockElement(document);
let _ = preferredStyleSheetSet(document);
let _ = scrollingElement(document);
let _ = selectedStyleSheetSet(document);
let _ = setSelectedStyleSheetSet(document, "muh-stylesheet");
let _ = styleSheets(document);
let _ = styleSheetSets(document);
let _ = visibilityState(document);
let _ = adoptNode(el, document);
let _ = createAttribute("data-foo", document);
let _ = createAttributeNS("http://...", "foo", document);
let _ = createComment("witty comment", document);
let _ = createDocumentFragment(document);
let _ = createElement("div", document);
let _ = createElementWithOptions("div", [%bs.raw "{}"], document); /* I've no idea what this options object is supposed to be, even the spec doesn't seem to bother explaining it */
let _ = createElementNS("http://...", "foo", document);
let _ = createElementNSWithOptions("http://...", "div", [%bs.raw "{}"], document); /* I've no idea what this options object is supposed to be, even the spec doesn't seem to bother explaining it */
let _ = createEvent("MyCustomEvent", document);
let _ = createNodeIterator(el, document);
let _ = createNodeIteratorWithWhatToShow(el, WhatToShow._All, document);
let _ = createNodeIteratorWithWhatToShowFilter(el, WhatToShow.(many([_Element, _Attribute])), NodeFilter.make((_) => 0), document);
let _ = createRange(document);
let _ = createTextNode("Very reasonable!", document);
let _ = createTreeWalker(el, document);
let _ = createTreeWalkerWithWhatToShow(el, WhatToShow._All, document);
let _ = createTreeWalkerWithWhatToShowFilter(el, WhatToShow.(many([_Element, _Attribute])), NodeFilter.make((_) => 0), document);
let _ = elementFromPoint(0, 0, document);
let _ = elementsFromPoint(0, 0, document);
let _ = enableStyleSheetsForSet("my-stylesheet-set", document);
let _ = exitPointerLock(document);
let _ = getAnimations(document);
let _ = getElementsByClassName("lstlisting", document);
let _ = getElementsByTagName("code", document);
let _ = getElementsByTagNameNS("http://...", "foo", document);
let _ = importNode(el, document);
let _ = importNodeDeep(el, document);
/* TODO: These get dead code eliminated
let _ = registerElement(document, "my-component");
let _ = registerElementWithOptions(document, "my-component", [%bs.raw "{}"]);
*/
let _ = getElementById("root", document);
let _ = querySelector(".lstlisting", document);
let _ = querySelectorAll(".lstlisting", document);