OLD | NEW |
---|---|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st rict.dtd"> |
2 <html> | 2 <html> |
3 <title>The Acid3 Test</title> | 3 <title>The Acid3 Test</title> |
4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 testRunner.keepWebHistory(); | 7 testRunner.keepWebHistory(); |
8 } | 8 } |
9 | 9 |
10 var startTime = new Date(); | 10 var startTime = new Date(); |
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1254 return 3; | 1254 return 3; |
1255 }, | 1255 }, |
1256 function () { | 1256 function () { |
1257 // test 35: :first-child | 1257 // test 35: :first-child |
1258 selectorTest(function (doc, add, expect) { | 1258 selectorTest(function (doc, add, expect) { |
1259 var notFirst = 0; | 1259 var notFirst = 0; |
1260 var first = add(":first-child"); | 1260 var first = add(":first-child"); |
1261 var p1 = doc.createElement("p"); | 1261 var p1 = doc.createElement("p"); |
1262 doc.body.appendChild(doc.createTextNode(" TEST ")); | 1262 doc.body.appendChild(doc.createTextNode(" TEST ")); |
1263 doc.body.appendChild(p1); | 1263 doc.body.appendChild(p1); |
1264 expect(doc.documentElement, notFirst, "root element, with no parent node , claims to be a :first-child"); | 1264 expect(doc.documentElement, first, "root element, with no parent node, c laims to be a :first-child"); |
rune
2016/12/20 09:18:47
Right, we're breaking Acid3. That should be mentio
| |
1265 expect(doc.documentElement.firstChild, first, "first child of root node didn't match :first-child"); | 1265 expect(doc.documentElement.firstChild, first, "first child of root node didn't match :first-child"); |
1266 expect(doc.documentElement.firstChild.firstChild, first, "failure 3"); | 1266 expect(doc.documentElement.firstChild.firstChild, first, "failure 3"); |
1267 expect(doc.body, notFirst, "failure 4"); | 1267 expect(doc.body, notFirst, "failure 4"); |
1268 expect(p1, first, "failure 5"); | 1268 expect(p1, first, "failure 5"); |
1269 var p2 = doc.createElement("p"); | 1269 var p2 = doc.createElement("p"); |
1270 doc.body.appendChild(p2); | 1270 doc.body.appendChild(p2); |
1271 expect(doc.body, notFirst, "failure 6"); | 1271 expect(doc.body, notFirst, "failure 6"); |
1272 expect(p1, first, "failure 7"); | 1272 expect(p1, first, "failure 7"); |
1273 expect(p2, notFirst, "failure 8"); | 1273 expect(p2, notFirst, "failure 8"); |
1274 var p0 = doc.createElement("p"); | 1274 var p0 = doc.createElement("p"); |
(...skipping 2235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3510 ><p id="bucket5" class="z"></p | 3510 ><p id="bucket5" class="z"></p |
3511 ><p id="bucket6" class="z"></p> | 3511 ><p id="bucket6" class="z"></p> |
3512 </div> | 3512 </div> |
3513 <p id="result"><span id="score">JS</span><span id="slash" class="hidden">/</sp an><span>?</span></p> | 3513 <p id="result"><span id="score">JS</span><span id="slash" class="hidden">/</sp an><span>?</span></p> |
3514 <!-- The following line is used in a number of the tests. It is done using doc ument.write() to sidestep complaints of validity. --> | 3514 <!-- The following line is used in a number of the tests. It is done using doc ument.write() to sidestep complaints of validity. --> |
3515 <script type="text/javascript">document.write('<map name=""><area href="" shap e="rect" coords="2,2,4,4" alt="<\'>"><iframe src="resources/acid3/empty.png">FAI L<\/iframe><iframe src="resources/acid3/empty.txt">FAIL<\/iframe><iframe src="re sources/acid3/empty.html" id="selectors"><\/iframe><form action="" name="form">< input type=HIDDEN><\/form><table><tr><td><p><\/tbody> <\/table><\/map>');</scrip t> | 3515 <script type="text/javascript">document.write('<map name=""><area href="" shap e="rect" coords="2,2,4,4" alt="<\'>"><iframe src="resources/acid3/empty.png">FAI L<\/iframe><iframe src="resources/acid3/empty.txt">FAIL<\/iframe><iframe src="re sources/acid3/empty.html" id="selectors"><\/iframe><form action="" name="form">< input type=HIDDEN><\/form><table><tr><td><p><\/tbody> <\/table><\/map>');</scrip t> |
3516 <p id="instructions">To pass the test,<span></span> a browser must use its def ault settings, the animation has to be smooth, the score has to end on 100/100, and the final page has to look exactly, pixel for pixel, like <a href="resources /acid3/reference.html">this reference rendering</a>.</p> | 3516 <p id="instructions">To pass the test,<span></span> a browser must use its def ault settings, the animation has to be smooth, the score has to end on 100/100, and the final page has to look exactly, pixel for pixel, like <a href="resources /acid3/reference.html">this reference rendering</a>.</p> |
3517 <p id="remove-last-child-test">Scripting must be enabled to use this test.</p> | 3517 <p id="remove-last-child-test">Scripting must be enabled to use this test.</p> |
3518 </body> | 3518 </body> |
3519 </html> | 3519 </html> |
OLD | NEW |