toolkit/content/tests/chrome/test_tree.xul

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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

mercurial