Add reftests for most of bug 1156. There's still more to do, but this covers probably 70-80% of it. r=biesi, sr=dbaron

This commit is contained in:
jwalden%mit.edu 2007-02-02 02:42:04 +00:00
Родитель 679ff33547
Коммит bffb9c4ab2
43 изменённых файлов: 530 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/002.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: 404 data</title>
</head>
<body>
<p>PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/003.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: 404 data with type</title>
</head>
<body>
<p>PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,12 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/003.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: 404 data with type</title>
</head>
<body>
<p><!-- XXX
- This should really be on a server run locally
--><object type="text/html" data="http://www.mozilla.org/this_does_not_exist">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,12 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/002.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: 404 data</title>
</head>
<body>
<p><!-- XXX
- This should really be on a server run locally
--><object data="http://www.mozilla.org/this_does_not_exist.html">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/006.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Connection refused</title>
</head>
<body>
<p>PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/006.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Connection refused</title>
</head>
<body>
<p><object data="http://localhost:52345">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1 @@
<foo>This is some invalid xml.

Просмотреть файл

@ -0,0 +1 @@
FAIL

Просмотреть файл

@ -0,0 +1,6 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<title>PASS page</title>
<body>
<p>PASS</p>

Просмотреть файл

Двоичные данные
layout/reftests/object/extra/pass.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 732 B

Просмотреть файл

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="pass.svg"
sodipodi:docbase="/tmp"
inkscape:version="0.41"
sodipodi:version="0.32"
id="svg2"
height="10.000000px"
width="50.000000px">
<defs
id="defs3" />
<sodipodi:namedview
inkscape:window-y="48"
inkscape:window-x="2"
inkscape:window-height="574"
inkscape:window-width="925"
inkscape:current-layer="layer1"
inkscape:document-units="px"
inkscape:cy="2.6496320"
inkscape:cx="30.500000"
inkscape:zoom="6.2988506"
inkscape:pageshadow="2"
inkscape:pageopacity="1.0000000"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#00ff00"
id="base" />
<metadata
id="metadata4">
<rdf:RDF
id="RDF5">
<cc:Work
id="Work6"
rdf:about="">
<dc:format
id="format7">image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
id="type9" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Layer 1">
<rect
style="stroke-opacity:1.0000000;stroke-linejoin:miter;stroke-linecap:butt;stroke-width:1.0000000px;stroke:none;fill-rule:evenodd;fill-opacity:0.75000000;fill:#00ff00"
id="rect1294"
width="50.802921"
height="9.6843061"
x="-0.15875912"
y="0.63321173" />
<text
id="text1291"
y="9.6824818"
x="8.2226276"
style="font-size:12.000000px;font-style:normal;font-weight:normal;fill:#0000ff;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;font-family:Bitstream Vera Sans"
xml:space="preserve"><tspan
y="9.6824818"
x="8.2226276"
id="tspan1293"
sodipodi:role="line">PASS</tspan></text>
</g>
</svg>

После

Ширина:  |  Высота:  |  Размер: 2.4 KiB

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/009.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Image w/o useful extension</title>
</head>
<body>
<p><img src="extra/pass.png"></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/009.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Image w/o useful extension</title>
</head>
<body>
<p><object data="extra/pass.image">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/010.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Image w/o useful extension with type</title>
</head>
<body>
<p><img src="extra/pass.png"></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/010.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Image w/o useful extension with type</title>
</head>
<body>
<p><object type="image/png" data="extra/pass.image">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/007.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: PNG Image</title>
</head>
<body>
<p><img src="extra/pass.png"></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/008.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: PNG Image with type</title>
</head>
<body>
<p><img src="extra/pass.png"></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/008.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: PNG Image with type</title>
</head>
<body>
<p><object type="image/png" data="extra/pass.png">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/007.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: PNG Image</title>
</head>
<body>
<p><object data="extra/pass.png">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/016.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed image (should fallback)</title>
</head>
<body>
<p>PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/016.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed image (should fallback)</title>
</head>
<body>
<p><object data="extra/malformed_image.png">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/035.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed URIs</title>
<style type="text/css">
html, body { width:100%; height:100%; }
#obj { width:100%; height:90%; }
</style>
</head>
<body>
<p id="obj">PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,14 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/035.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed URIs</title>
<style type="text/css">
html, body { width:100%; height:100%; }
#obj { width:100%; height:90%; }
</style>
</head>
<body>
<p id="obj"><object type="application/x-shockwave-flash" data="http://foo bar/pass.swf" width="100" height="100">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/017.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed image (with type attribute)</title>
</head>
<body>
<p>PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/017.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed image (with type attribute)</title>
</head>
<body>
<p><object type="image/png" data="extra/malformed_image.png">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,15 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/023.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed XML file</title>
</head>
<body>
<!--
You should _probably_ see an XML parse error below, although you could
argue that it should behave like a broken image (and say PASS). For
now this test expects the former.
-->
<p><iframe style="border: 0px" src="extra/malformed.xml"></iframe></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,15 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/024.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed XML file with type attribute</title>
</head>
<body>
<!--
You should _probably_ see an XML parse error below, although you could
argue that it should behave like a broken image (and say PASS); this
test currently checks for the former.
-->
<p><iframe style="border: 0px" src="extra/malformed.xml" width="300" height="200"></iframe></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,15 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/024.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed XML file with type attribute</title>
</head>
<body>
<!--
You should _probably_ see an XML parse error below, although you could
argue that it should behave like a broken image (and say PASS); this
test currently checks for the former.
-->
<p><object type="text/xml" data="extra/malformed.xml" width="300" height="200">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,15 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/023.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Malformed XML file</title>
</head>
<body>
<!--
You should _probably_ see an XML parse error below, although you could
argue that it should behave like a broken image (and say PASS). For
now this test expects the former.
-->
<p><object data="extra/malformed.xml">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/001.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: No attributes</title>
</head>
<body>
<p>PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/001.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: No attributes</title>
</head>
<body>
<p><object>PASS</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/004.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Normal Webpage</title>
</head>
<body>
<p><iframe style="border: 0px" src="extra/pass.html"></iframe></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/005.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Normal Webpage with type</title>
</head>
<body>
<p><iframe style="border: 0px" src="extra/pass.html"></iframe></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/005.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Normal Webpage with type</title>
</head>
<body>
<p><object type="text/html" data="extra/pass.html">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/004.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Normal Webpage</title>
</head>
<body>
<p><object data="extra/pass.html">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/029.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: SVG</title>
</head>
<body>
<!-- Note: requires a build without the autoconf disable-svg switch. -->
<iframe src="extra/pass.svg" width="100" height="20">FAIL</iframe>
</body>
</html>

Просмотреть файл

@ -0,0 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/030.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: SVG (with type attribute)</title>
</head>
<body>
<!-- Note: requires a build without the autoconf disable-svg switch. -->
<iframe src="extra/pass.svg" width="100" height="20"></iframe>
</body>
</html>

Просмотреть файл

@ -0,0 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/030.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: SVG (with type attribute)</title>
</head>
<body>
<!-- Note: requires a build without the autoconf disable-svg switch. -->
<p><object type="image/svg+xml" data="extra/pass.svg" width="100" height="20">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/029.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: SVG</title>
</head>
<body>
<!-- Note: requires a build without the autoconf disable-svg switch. -->
<p><object data="extra/pass.svg" width="100" height="20">FAIL</object></p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/022.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Unknown type</title>
</head>
<body>
<p>PASS</p>
</body>
</html>

Просмотреть файл

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- http://biesi.damowmow.com/object/022.html -->
<html lang="en">
<head>
<title>&lt;object&gt;: Unknown type</title>
</head>
<body>
<p><object data="data:application/x-unknown,FAIL">PASS</object></p>
</body>
</html>

Просмотреть файл

@ -116,6 +116,58 @@ f== bugs/368020-3.html bugs/368020-3-ref.html # bug 368085
f== bugs/368020-4.html bugs/368020-4-ref.html # bug 368085 f== bugs/368020-4.html bugs/368020-4-ref.html # bug 368085
== bugs/368020-5.html bugs/368020-5-ref.html == bugs/368020-5.html bugs/368020-5-ref.html
# object/
== object/no-attrs.html object/no-attrs-ref.html
== object/404-data.html object/404-data-ref.html
== object/404-data-with-type.html object/404-data-with-type-ref.html
== object/page-as-data.html object/page-as-data-ref.html
== object/page-as-data-with-type.html object/page-as-data-with-type-ref.html
== object/connection-refused.html object/connection-refused-ref.html
== object/image.html object/image-ref.html
== object/image-with-type.html object/image-with-type-ref.html
== object/image-no-useful-extension-typesniff.html object/image-no-useful-extension-typesniff-ref.html
== object/image-no-useful-extension-with-type.html object/image-no-useful-extension-with-type-ref.html
#
# XXX missing tests 011-015 from http://biesi.damowmow.com/object/ here; need
# a controllable HTTP server (or preferably one run on the test machine)
# to add them
#
== object/malformed-should-fallback.html object/malformed-should-fallback-ref.html
== object/malformed-with-type.html object/malformed-with-type-ref.html
#
# XXX missing tests 018-021 from http://biesi.damowmow.com/object/ here; need
# a controllable HTTP server (or preferably one run on the test machine)
# to add them
#
== object/unknown-type.html object/unknown-type-ref.html
== object/malformed-xml.html object/malformed-xml-ref.html
== object/malformed-xml-with-type.html object/malformed-xml-with-type-ref.html
#
# XXX missing tests 025-28 from http://biesi.damowmow.com/object/ here; would
# need to require Flash on the test machine to run them
#
# XXX need to support <img src="foo.svg"> for these to pass
f== object/svg.html object/svg-ref.html
f== object/svg-with-type.html object/svg-with-type-ref.html
#
# XXX missing test 031 from http://biesi.damowmow.com/object/ here; need to
# first support the standby attribute on objects, then need to figure out
# how to reproduce the setup needed for that test such that reftest will
# handle it correctly, since a still-loading image probably delays the
# snapshot reftest takes
#
# XXX missing test 032 from http://biesi.damowmow.com/object/ here; would
# need to require Java on test machine to run it
#
# XXX missing test 033 from http://biesi.damowmow.com/object/ here; not sure
# how nullplugin testing should work
#
#
# XXX missing test 034 from http://biesi.damowmow.com/object/ here; would
# need to require Flash on the test machine to run them
#
== object/malformed-uri.html object/malformed-uri-ref.html
# table-dom/ # table-dom/
== table-dom/appendCells1.html table-dom/appendCells1-ref.html == table-dom/appendCells1.html table-dom/appendCells1-ref.html
== table-dom/appendCellsRebuild1.html table-dom/appendCellsRebuild1-ref.html == table-dom/appendCellsRebuild1.html table-dom/appendCellsRebuild1-ref.html