|
1 <?xml version="1.0"?> |
|
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
|
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?> |
|
4 |
|
5 <!-- |
|
6 xml query with inline data with multiple queries |
|
7 --> |
|
8 |
|
9 <window title="XUL Template Tests" width="500" height="600" |
|
10 onload="test_template();" |
|
11 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
12 <script type="application/javascript" |
|
13 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
|
14 |
|
15 <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/> |
|
16 |
|
17 <data id="output"> |
|
18 <button anyid="true" label="Nathan"/> |
|
19 <button anyid="true" label="Marie"/> |
|
20 <checkbox anyid="true" label="Nathan"/> |
|
21 <checkbox anyid="true" label="Luke"/> |
|
22 <checkbox anyid="true" label="Marie"/> |
|
23 </data> |
|
24 |
|
25 <script src="templates_shared.js"/> |
|
26 |
|
27 <script> |
|
28 <![CDATA[ |
|
29 SimpleTest.waitForExplicitFinish(); |
|
30 |
|
31 var testid ="xml query with inline data with multiple queries"; |
|
32 var queryType = "xml"; |
|
33 var isTreeBuilder = false; |
|
34 var needsOpen = false; |
|
35 var notWorkingYet = false; |
|
36 var notWorkingYetDynamic = false; |
|
37 var expectedOutput = document.getElementById("output"); |
|
38 |
|
39 var changes = []; |
|
40 ]]> |
|
41 </script> |
|
42 |
|
43 <people id="data" xmlns:test="http://www.mozilla.com/test"> |
|
44 <test:person name="Nathan"/> |
|
45 <person name="Luke"/> |
|
46 <xt:person xmlns:xt="http://www.mozilla.com/test" name="Marie"/> |
|
47 </people> |
|
48 |
|
49 <vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="root" datasources="#data" querytype="xml" ref="."> |
|
50 <template> |
|
51 <queryset> |
|
52 <query expr="test:person"/> |
|
53 <action> |
|
54 <button uri="?" label="?name"/> |
|
55 </action> |
|
56 </queryset> |
|
57 <queryset> |
|
58 <query/> |
|
59 <action> |
|
60 <checkbox uri="?" label="?name"/> |
|
61 </action> |
|
62 </queryset> |
|
63 </template> |
|
64 <button id="row9" label="Nathan"/> |
|
65 <button id="row10" label="Marie"/> |
|
66 <checkbox id="row11" label="Nathan"/> |
|
67 <checkbox id="row12" label="Luke"/> |
|
68 <checkbox id="row13" label="Marie"/> |
|
69 </vbox> |
|
70 |
|
71 </window> |