PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/toolkit/content/tests/chrome/test_tree.xul

http://github.com/zpao/v8monkey
Unknown | 84 lines | 76 code | 8 blank | 0 comment | 0 complexity | 460e67a9dd66309cabf9a0a4e9f9f431 MD5 | raw file
 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  XUL Widget Test for tree using multiple row selection
 6  -->
 7<window title="Tree" width="500" height="600"
 8        onload="setTimeout(testtag_tree, 0, 'tree-simple', 'treechildren-simple', 'multiple', 'simple', 'tree');"
 9        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
10  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>  
11  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>  
12
13<script src="tree_shared.js"/>
14
15<tree id="tree-simple" rows="4">
16  <treecols>
17    <treecol id="name" label="Name" sort="label" properties="one two" flex="1"/>
18    <treecol id="address" label="Address" flex="1"/>
19  </treecols>
20  <treechildren id="treechildren-simple">
21    <treeitem>
22      <treerow>
23        <treecell label="Mary"/>
24        <treecell label="206 Garden Avenue"/>
25      </treerow>
26    </treeitem>
27    <treeitem>
28      <treerow>
29        <treecell label="Chris"/>
30        <treecell label="19 Marion Street"/>
31      </treerow>
32    </treeitem>
33    <treeitem>
34      <treerow>
35        <treecell label="Sarah"/>
36        <treecell label="702 Fern Avenue" editable="false"/>
37      </treerow>
38    </treeitem>
39    <treeitem>
40      <treerow>
41        <treecell label="John"/>
42        <treecell label="99 Westminster Avenue"/>
43      </treerow>
44    </treeitem>
45    <treeitem>
46      <treerow>
47        <treecell label="Mary"/>
48        <treecell label="206 Garden Avenue"/>
49      </treerow>
50    </treeitem>
51    <treeitem>
52      <treerow>
53        <treecell label="Chris"/>
54        <treecell label="19 Marion Street"/>
55      </treerow>
56    </treeitem>
57    <treeitem>
58      <treerow>
59        <treecell label="Sarah"/>
60        <treecell label="702 Fern Avenue"/>
61      </treerow>
62    </treeitem>
63    <treeitem>
64      <treerow>
65        <treecell label="John"/>
66        <treecell label="99 Westminster Avenue"/>
67      </treerow>
68    </treeitem>
69  </treechildren>
70</tree>
71
72  <!-- test results are displayed in the html:body -->
73  <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/>
74
75  <!-- test code goes here -->
76  <script type="application/javascript"><![CDATA[
77
78SimpleTest.waitForExplicitFinish();
79
80]]>
81</script>
82
83</window>
84