dom/tests/mochitest/ajax/jquery/test/index.html

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.

michael@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
michael@0 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
michael@0 3 <head>
michael@0 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
michael@0 5 <title>jQuery Test Suite</title>
michael@0 6 <link rel="Stylesheet" media="screen" href="data/testsuite.css" />
michael@0 7 <script>var jQuery = "jQuery", $ = "$"; // For testing .noConflict()</script>
michael@0 8 <script type="text/javascript" src="../dist/jquery.js"></script>
michael@0 9 <script type="text/javascript" src="data/testrunner.js"></script>
michael@0 10 <script type="text/javascript" src="unit/core.js"></script>
michael@0 11 <script type="text/javascript" src="unit/dimensions.js"></script>
michael@0 12 <script type="text/javascript" src="unit/selector.js"></script>
michael@0 13 <script type="text/javascript" src="unit/event.js"></script>
michael@0 14 <script type="text/javascript" src="unit/ajax.js"></script>
michael@0 15 <script type="text/javascript" src="unit/fx.js"></script>
michael@0 16 </head>
michael@0 17
michael@0 18 <body id="body">
michael@0 19 <h1 id="header">jQuery Test Suite</h1>
michael@0 20 <h2 id="banner"></h2>
michael@0 21 <h2 id="userAgent"></h2>
michael@0 22
michael@0 23 <!-- Test HTML -->
michael@0 24 <div id="nothiddendiv" style="height:1px;background:white;">
michael@0 25 <div id="nothiddendivchild"></div>
michael@0 26 </div>
michael@0 27 <!-- this iframe is outside the #main so it won't reload constantly wasting time, but it means the tests must be "safe" and clean up after themselves -->
michael@0 28 <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
michael@0 29 <dl id="dl" style="display:none;">
michael@0 30 <div id="main" style="display: none;">
michael@0 31 <p id="firstp">See <a id="simon1" href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector" rel="bookmark">this blog entry</a> for more information.</p>
michael@0 32 <p id="ap">
michael@0 33 Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>,
michael@0 34 <a id="groups" href="http://groups.google.com/">Google Groups</a>.
michael@0 35 This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>:
michael@0 36 <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
michael@0 37
michael@0 38 </p>
michael@0 39 <div id="foo">
michael@0 40 <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
michael@0 41 <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
michael@0 42 <p id="sap">This link has <code><a href="#2" id="anchor2">class="blog"</a></code>: <a href="http://simon.incutio.com/" class="blog link" id="simon">Simon Willison's Weblog</a></p>
michael@0 43
michael@0 44 </div>
michael@0 45 <p id="first">Try them out:</p>
michael@0 46 <ul id="firstUL"></ul>
michael@0 47 <ol id="empty"></ol>
michael@0 48 <form id="form" action="formaction">
michael@0 49 <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
michael@0 50 <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
michael@0 51 <input type="radio" name="radio1" id="radio1" value="on"/>
michael@0 52
michael@0 53 <input type="radio" name="radio2" id="radio2" checked="checked"/>
michael@0 54 <input type="checkbox" name="check" id="check1" checked="checked"/>
michael@0 55 <input type="checkbox" id="check2" value="on"/>
michael@0 56
michael@0 57 <input type="hidden" name="hidden" id="hidden1"/>
michael@0 58 <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
michael@0 59
michael@0 60 <input type="text" id="name" name="name" value="name" />
michael@0 61
michael@0 62 <button id="button" name="button">Button</button>
michael@0 63
michael@0 64 <textarea id="area1" maxlength="30">foobar</textarea>
michael@0 65
michael@0 66 <select name="select1" id="select1">
michael@0 67 <option id="option1a" class="emptyopt" value="">Nothing</option>
michael@0 68 <option id="option1b" value="1">1</option>
michael@0 69 <option id="option1c" value="2">2</option>
michael@0 70 <option id="option1d" value="3">3</option>
michael@0 71 </select>
michael@0 72 <select name="select2" id="select2">
michael@0 73 <option id="option2a" class="emptyopt" value="">Nothing</option>
michael@0 74 <option id="option2b" value="1">1</option>
michael@0 75 <option id="option2c" value="2">2</option>
michael@0 76 <option id="option2d" selected="selected" value="3">3</option>
michael@0 77 </select>
michael@0 78 <select name="select3" id="select3" multiple="multiple">
michael@0 79 <option id="option3a" class="emptyopt" value="">Nothing</option>
michael@0 80 <option id="option3b" selected="selected" value="1">1</option>
michael@0 81 <option id="option3c" selected="selected" value="2">2</option>
michael@0 82 <option id="option3d" value="3">3</option>
michael@0 83 </select>
michael@0 84
michael@0 85 <object id="object1" codebase="stupid">
michael@0 86 <param name="p1" value="x1" />
michael@0 87 <param name="p2" value="x2" />
michael@0 88 </object>
michael@0 89
michael@0 90 <span id="台北Táiběi"></span>
michael@0 91 <span id="台北" lang="中文"></span>
michael@0 92 <span id="utf8class1" class="台北Táiběi 台北"></span>
michael@0 93 <span id="utf8class2" class="台北"></span>
michael@0 94 <span id="foo:bar" class="foo:bar"></span>
michael@0 95 <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
michael@0 96
michael@0 97 <foo_bar id="foobar">test element</foo_bar>
michael@0 98 </form>
michael@0 99 <b id="floatTest">Float test.</b>
michael@0 100 <iframe id="iframe" name="iframe"></iframe>
michael@0 101 <form id="lengthtest">
michael@0 102 <input type="text" id="length" name="test"/>
michael@0 103 <input type="text" id="idTest" name="id"/>
michael@0 104 </form>
michael@0 105 <table id="table"></table>
michael@0 106
michael@0 107 <div id="fx-queue">
michael@0 108 <div id="fadein" class='chain test'>fadeIn<div>fadeIn</div></div>
michael@0 109 <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
michael@0 110
michael@0 111 <div id="show" class='chain test'>show<div>show</div></div>
michael@0 112 <div id="hide" class='chain test out'>hide<div>hide</div></div>
michael@0 113
michael@0 114 <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
michael@0 115 <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
michael@0 116
michael@0 117
michael@0 118 <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
michael@0 119 <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
michael@0 120
michael@0 121 <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
michael@0 122 <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
michael@0 123 </div>
michael@0 124
michael@0 125 <div id="fx-tests"></div>
michael@0 126
michael@0 127 <form id="testForm" action="#" method="get">
michael@0 128 <textarea name="T3" rows="2" cols="15">?
michael@0 129 Z</textarea>
michael@0 130 <input type="hidden" name="H1" value="x" />
michael@0 131 <input type="hidden" name="H2" />
michael@0 132 <input name="PWD" type="password" value="" />
michael@0 133 <input name="T1" type="text" />
michael@0 134 <input name="T2" type="text" value="YES" readonly="readonly" />
michael@0 135 <input type="checkbox" name="C1" value="1" />
michael@0 136 <input type="checkbox" name="C2" />
michael@0 137 <input type="radio" name="R1" value="1" />
michael@0 138 <input type="radio" name="R1" value="2" />
michael@0 139 <input type="text" name="My Name" value="me" />
michael@0 140 <input type="reset" name="reset" value="NO" />
michael@0 141 <select name="S1">
michael@0 142 <option value="abc">ABC</option>
michael@0 143 <option value="abc">ABC</option>
michael@0 144 <option value="abc">ABC</option>
michael@0 145 </select>
michael@0 146 <select name="S2" multiple="multiple" size="3">
michael@0 147 <option value="abc">ABC</option>
michael@0 148 <option value="abc">ABC</option>
michael@0 149 <option value="abc">ABC</option>
michael@0 150 </select>
michael@0 151 <select name="S3">
michael@0 152 <option selected="selected">YES</option>
michael@0 153 </select>
michael@0 154 <select name="S4">
michael@0 155 <option value="" selected="selected">NO</option>
michael@0 156 </select>
michael@0 157 <input type="submit" name="sub1" value="NO" />
michael@0 158 <input type="submit" name="sub2" value="NO" />
michael@0 159 <input type="image" name="sub3" value="NO" />
michael@0 160 <button name="sub4" type="submit" value="NO">NO</button>
michael@0 161 <input name="D1" type="text" value="NO" disabled="disabled" />
michael@0 162 <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
michael@0 163 <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
michael@0 164 <select name="D4" disabled="disabled">
michael@0 165 <option selected="selected" value="NO">NO</option>
michael@0 166 </select>
michael@0 167 </form>
michael@0 168 <div id="moretests">
michael@0 169 <form>
michael@0 170 <div id="checkedtest" style="display:none;">
michael@0 171 <input type="radio" name="checkedtestradios" checked="checked"/>
michael@0 172 <input type="radio" name="checkedtestradios" value="on"/>
michael@0 173 <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
michael@0 174 <input type="checkbox" name="checkedtestcheckboxes" />
michael@0 175 </div>
michael@0 176 </form>
michael@0 177 <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
michael@0 178 <div id="t2037">
michael@0 179 <div><div class="hidden">hidden</div></div>
michael@0 180 </div>
michael@0 181 </div>
michael@0 182 </div>
michael@0 183 </dl>
michael@0 184
michael@0 185 <ol id="tests"></ol>
michael@0 186 </body>
michael@0 187 </html>

mercurial