Home | History | Annotate | Download | only in html

Lines Matching refs:root

29 	private HTMLElement root;
34 root = new HTMLElement(buffer, "root") {
43 root.meta("key", "value");
44 root.close();
46 "<root><meta http-equiv=\"key\" content=\"value\"/></root>",
52 root.link("stylesheet", "style.css", "text/css");
53 root.close();
55 "<root><link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\"/></root>",
61 root.title();
62 root.close();
63 assertEquals("<root><title/></root>", buffer.toString());
68 root.h1();
69 root.close();
70 assertEquals("<root><h1/></root>", buffer.toString());
75 root.p();
76 root.close();
77 assertEquals("<root><p/></root>", buffer.toString());
82 root.span();
83 root.close();
84 assertEquals("<root><span/></root>", buffer.toString());
89 root.span("abc");
90 root.close();
91 assertEquals("<root><span class=\"abc\"/></root>", buffer.toString());
96 root.span("abc", "xy");
97 root.close();
98 assertEquals("<root><span class=\"abc\" id=\"xy\"/></root>",
104 root.pre("mystyle");
105 root.close();
106 assertEquals("<root><pre class=\"mystyle\"/></root>", buffer.toString());
111 root.div("mystyle");
112 root.close();
113 assertEquals("<root><div class=\"mystyle\"/></root>", buffer.toString());
118 root.code().text("0xCAFEBABE");
119 root.close();
120 assertEquals("<root><code>0xCAFEBABE</code></root>", buffer.toString());
125 root.a("http://www.jacoco.org/");
126 root.close();
127 assertEquals("<root><a href=\"http://www.jacoco.org/\"/></root>",
133 root.a("http://www.jacoco.org/", "extern");
134 root.close();
136 "<root><a href=\"http://www.jacoco.org/\" class=\"extern\"/></root>",
142 root.a(new LinkableStub(null, "here", null), null);
143 root.close();
144 assertEquals("<root><span>here</span></root>", buffer.toString());
149 root.a(new LinkableStub(null, "here", "blue"), null);
150 root.close();
151 assertEquals("<root><span class=\"blue\">here</span></root>",
157 root.a(new LinkableStub("index.html", "here", null), null);
158 root.close();
159 assertEquals("<root><a href=\"index.html\">here</a></root>",
165 root.a(new LinkableStub("index.html", "here", "red"), null);
166 root.close();
168 "<root><a href=\"index.html\" class=\"red\">here</a></root>",
174 root.table("tablestyle");
175 root.close();
177 "<root><table class=\"tablestyle\" cellspacing=\"0\"/></root>",
183 root.thead();
184 root.close();
185 assertEquals("<root><thead/></root>", buffer.toString());
190 root.tfoot();
191 root.close();
192 assertEquals("<root><tfoot/></root>", buffer.toString());
197 root.tbody();
198 root.close();
199 assertEquals("<root><tbody/></root>", buffer.toString());
204 root.tr();
205 root.close();
206 assertEquals("<root><tr/></root>", buffer.toString());
211 root.td();
212 root.close();
213 assertEquals("<root><td/></root>", buffer.toString());
218 root.td("mystyle");
219 root.close();
220 assertEquals("<root><td class=\"mystyle\"/></root>", buffer.toString());
225 root.img("sample.gif", 16, 32, "Hello");
226 root.close();
228 "<root><img src=\"sample.gif\" width=\"16\" height=\"32\" title=\"Hello\" alt=\"Hello\"/></root>",
234 root.script("text/javascript", "file.js");
235 root.close();
237 "<root><script type=\"text/javascript\" src=\"file.js\"></script></root>",