dom/tests/mochitest/dom-level1-core/files/staff.svg

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <?xml version="1.0"?><?TEST-STYLE PIDATA?>
     2 <!DOCTYPE svg SYSTEM "staff.dtd" [
     3    <!ENTITY ent1 "es">
     4    <!ENTITY ent2 "1900 Dallas Road">
     5    <!ENTITY ent3 "Texas">
     6    <!ENTITY ent4 "<entElement domestic='Yes'>Element data</entElement><?PItarget PIdata?>">
     7    <!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1>
     8    <!ENTITY ent1 "This entity should be discarded">
     9    <!NOTATION notation1 PUBLIC "notation1File">
    10    <!NOTATION notation2 SYSTEM "notation2File">
    11    <!ATTLIST employee xmlns CDATA #IMPLIED>
    12    <!ELEMENT svg (rect, script, employee+)>
    13    <!ATTLIST svg 
    14       xmlns CDATA #FIXED "http://www.w3.org/2000/svg"
    15       name CDATA #IMPLIED>
    16    <!ELEMENT rect EMPTY>
    17    <!ATTLIST rect 
    18       x CDATA #REQUIRED
    19       y CDATA #REQUIRED
    20       width CDATA #REQUIRED
    21       height CDATA #REQUIRED>
    22   <!ELEMENT script (#PCDATA)>
    23   <!ATTLIST script type CDATA #IMPLIED>      
    24   <!ENTITY svgunit SYSTEM "svgunit.js">
    25   <!ENTITY svgtest SYSTEM "svgtest.js">
    26 ]>
    27 <!-- This is comment number 1.-->
    28 <svg xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100"/><script type="text/ecmascript">&svgunit;&svgtest;</script>
    29  <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files">
    30   <employeeId>EMP0001</employeeId>
    31   <name>Margaret Martin</name>
    32   <position>Accountant</position>           
    33   <salary>56,000</salary>
    34   <gender>Female</gender>
    35   <address domestic="Yes">1230 North Ave. Dallas, Texas 98551</address>
    36  </employee>
    37  <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files">
    38   <employeeId>EMP0002</employeeId>
    39   <name>Martha Raynolds<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]>
    40 <![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></name>
    41   <position>Secretary</position>
    42   <salary>35,000</salary>
    43   <gender>Female</gender>
    44   <address domestic="Yes" street="Yes">&ent2; Dallas, &ent3;
    45  98554</address>
    46  </employee>
    47  <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files">
    48   <employeeId>EMP0003</employeeId>
    49   <name>Roger
    50  Jones</name>
    51   <position>Department Manager</position>
    52   <salary>100,000</salary>
    53   <gender>&ent4;</gender>
    54   <address domestic="Yes" street="No">PO Box 27 Irving, texas 98553</address>
    55  </employee>
    56  <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files">
    57   <employeeId>EMP0004</employeeId>
    58   <name>Jeny Oconnor</name>
    59   <position>Personnel Director</position>
    60   <salary>95,000</salary>
    61   <gender>Female</gender>
    62   <address domestic="Yes" street="Y&ent1;">27 South Road. Dallas, Texas 98556</address>
    63  </employee>
    64  <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files">
    65   <employeeId>EMP0005</employeeId>
    66   <name>Robert Myers</name>
    67   <position>Computer Specialist</position>
    68   <salary>90,000</salary>
    69   <gender>male</gender>
    70   <address street="Yes">1821 Nordic. Road, Irving Texas 98558</address>
    71  </employee>
    72  </svg>

mercurial