content/xul/templates/tests/chrome/test_tmpl_xmlquerywithinlinedatawithmultiplequeries.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.

     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"?>
     5 <!--
     6   xml query with inline data with multiple queries
     7 -->
     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>
    15   <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/>
    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>
    25 <script src="templates_shared.js"/>
    27 <script>
    28 <![CDATA[
    29 SimpleTest.waitForExplicitFinish();
    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");
    39 var changes = [];
    40 ]]>
    41 </script>
    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>
    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>
    71 </window>

mercurial