Add a bunch of crashtests

This commit is contained in:
Jesse Ruderman 2009-02-10 00:09:40 -08:00
parent 8e9fbe876a
commit 313514226b
55 changed files with 598 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script>
var xmlDoc;
function createDoc()
{
var xmlDoc = document.implementation.createDocument("", "", null);
var xmlElem = xmlDoc.firstChild;
xmlElem.appendChild(document.createTextNode("blabla"));
xmlElem.firstChild.nodeValue;
}
</script>
</HEAD>
<BODY onload="createDoc();">
</BODY>
</HTML>

View File

@ -1,3 +1,4 @@
load 43040-1.html
load 308120-1.xul
load 324871-1.html
load 325730-1.html

View File

@ -0,0 +1,24 @@
<html>
<head>
<title>Crash TR.cells = null</title>
<script language="javascript">
function crashme()
{
var elm = document.createElement('tr');
elm.cells = null;
}
</script>
</head>
<body onload="crashme()">
<p>
This test case creates a TR element then tries to assign to the cells property
</p>
<p>
Crash
</p>
</body>
</html>

View File

@ -1,3 +1,4 @@
load 68912-1.html
load 257818-1.html
load 307616-1.html
load 324918-1.xhtml

View File

@ -0,0 +1,10 @@
<?xml version="1.0" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="91332.xsl" ?>
<root>
<category name="Rectangles">
<list item="square" />
</category>
<quad id="square">
<desc>A square is ...</desc>
</quad>
</root>

View File

@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:key name="polyList" match="quad" use="@id" />
<xsl:template match="root">
<html><body><xsl:apply-templates select="category" /></body></html>
</xsl:template>
<xsl:template match="category">
<table><xsl:apply-templates select="list" /></table>
</xsl:template>
<xsl:template match="list">
<tr><td><xsl:apply-templates select="key('polyList',@item)" /></td></tr>
</xsl:template>
<xsl:template match="quad">
<b>Please output something!</b>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,12 @@
<html><head><title>Infinite Loop</title></head>
<body onLoad="initNav(); initNav();">
<script language="JavaScript">
function initNav() {
window.location.href='GeneralIndex.html';
}
</script>
</body></html>

View File

@ -0,0 +1,6 @@
<html>
<head><title>Infinite Loop</title></head>
<body>
<iframe src="40929-1-inner.html"></iframe>
</body>
</html>

View File

@ -1,3 +1,4 @@
load 40929-1.html
load 369126-1.html
load 403574-1.xhtml
load 436900-1.html

View File

@ -0,0 +1,7 @@
<html>
<body onload="this.focus();" onfocus="document.getElementById('foo').focus();"
onblur="/*alert('hello');*/this.focus();">
<input type="text" id="foo">
</body>
</html>

View File

@ -1,3 +1,4 @@
load 90613-1.html
load 327571-1.html
load 327695-1.html
load 329481-1.xhtml

View File

@ -0,0 +1,12 @@
<html><head><title>Testcase for bug 46043</title></head>
<body>
<div style="float:right;width:600;background:blue">&nbsp;</div>
<div style="float:right;width:400;background:yellow">&nbsp;</div>
<ol>
<li>foo</li>
</ol>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Testcase for bug 47843</title>
<style type="text/css">
BODY {overflow:scroll;}
</style>
</head>
<body>
<P>Blah
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>Mozilla Bug 49122</TITLE>
</HEAD>
<BODY><FORM action="">
<TABLE>
<TR>
<TD>
<MAP NAME="blah">
<AREA SHAPE="rect" COORDS="0,1,1,0" href="" alt="blah">
</MAP>
<IMG src="" USEMAP="#blah" alt="blah">
</TD>
</TR>
</TABLE>
<P>
</FORM></BODY>
</HTML>

View File

@ -0,0 +1,20 @@
<html>
<body>
<div style="margin-bottom: -1">
<img height=1>
</div>
<table align=left>
<td>
<table>
<td>
</table>
</td>
<td>
<table cols=2>
<td>
</table>
</td>
</table>
<br clear="left">
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Testcase for bug 50395</title>
<style> * { overflow: auto; } </style>
</head>
<body>
<h3>In head: &lt;style&gt; * { overflow: auto; } &lt;/style&gt;</h3>
<p>iframe width="40%":</p>
<iframe width="40%"
src="../../../testing/crashtest/images/600x58.png"></iframe>
<p>iframe height="10%"</p>
<iframe height="10%"
src="../../../testing/crashtest/images/600x58.png"></iframe>
<p>iframe height="90"</p>
<iframe height="90"
src="../../../testing/crashtest/images/600x58.png"></iframe>
</body>
</html>

View File

@ -0,0 +1,22 @@
<HTML>
<FORM>
<fieldset STYLE="
position:fixed;
left:
311;
top:
248;
width:
371;
height:
184;
">
<input TYPE="text" NAME="Sub1104001010" VALUE="" TABINDEX="11" MAXLENGTH="10">
</FIELDSET>
</FORM>

View File

@ -0,0 +1,10 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html , charset=x-user-defined">
</HEAD>
<BODY>
<PRE>
<A HREF="http://www.test.net/">http://www.test.net </A> Mozilla-0.9.2 is dying - blah.!?
</PRE>
</BODY>
</HTML>

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>Bug 90205</title>
</head>
<body>
<span style="font-family: serif;">
<span style="float: left;"></span>
</span>
<font size=2>
<meta>
<form></form>
</font>
<body topmargin="0">
</body>
</html>

View File

@ -1,4 +1,15 @@
load 46043-1.html
load 47843-1.html
load 49122-1.html
load 50257-1.html
load 50395-1.html
load 50395-1.html
load 50395-1.html
load 50395-1.html
load 56746-1.html
load 89101-1.html
load 89358-1.html
load 90205-1.html
load 143862-1.html
load 143862-2.html
load 241300-1.html

View File

@ -0,0 +1 @@
<p style="font-size: 1px">Text</p>

View File

@ -1,3 +1,4 @@
load 37757-1.html
load 225868-1.html
load 302260-1.html
load 307979-1.html

View File

@ -0,0 +1,10 @@
<title>test</title>
<table style='border-collapse:collapse;'>
<tr>
<td rowspan=2></td>
</tr>
<tr>
<td></td>
</tr>
</table>

View File

@ -0,0 +1,28 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>test</TITLE>
</HEAD>
<BODY>
<TABLE BORDER=1 ID="TABLE1">
<TR><TD>cell data</TD><TD>cell data</TD></TR>
<TR><TD>cell data</TD><TD>cell data</TD></TR>
<TR><TD>cell data</TD><TD>cell data</TD></TR>
</TABLE>
<SCRIPT TYPE="text/javascript">
var t=document.getElementById("TABLE1");
document.write(t);
t.createCaption();
</SCRIPT>
</BODY>
</HTML>

View File

@ -0,0 +1,13 @@
<html>
<body>
<TABLE STYLE="position: absolute;">
<FORM>
<TR>
<TD> Test
</TR>
</TABLE>
</FORM>
</body>

View File

@ -0,0 +1,17 @@
<html><head>
<script>
function crashMoz() {
var div = document.getElementById( "adiv" );
var table = document.createElement( "TABLE" );
var tr = table.insertRow( 0 );
var td = tr.insertCell( 0 );
var text = document.createTextNode( "Hello, World." );
td.appendChild( text );
td.style.backgroundImage = "url( 'any_image_here.gif' )";
div.appendChild( table );
}
</script>
</head><body onload="crashMoz();">
<div id=adiv></div>
</body></html>

View File

@ -1,4 +1,8 @@
load 28933-1.html
load 29157-1.html
load 32447-1.html
load 55789-1.html
load 78623-1.html
load 284844-1.html
load 284852.html
load 300912.html

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

View File

@ -0,0 +1,2 @@
load 83804-1.gif
load 89341-1.gif

View File

@ -0,0 +1,28 @@
<HTML><HEAD><TITLE>Plugin Limit</TITLE></HEAD>
<BODY>
Mozilla has a hardcoded limit of 10 simultaneously embedded plugins.<br>
If that limit is exceeded, plugin instances are prematurely destroyed (see the empty boxes below).<br>
Leave or reload a page that has a prematurely destroyed plugin and mozilla will crash.<br>
Sometimes, just loading this page will cause mozilla to crash.<br>
<br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player">
<embed TYPE=audio/x-pn-realaudio-plugin WIDTH=300 HEIGHT=75 CONTROLS="Default" AUTOSTART="FALSE" CONSOLE="RA_Player"><br>
<br>
</BODY></HTML>

View File

@ -0,0 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>Mozilla Bug 48856</TITLE>
</HEAD>
<BODY>
<EMBED></EMBED>
</BODY>
</HTML>

View File

@ -0,0 +1,2 @@
load 41276-1.html
load 48856-1.html

View File

@ -0,0 +1,17 @@
<HTML>
<BODY>
<TABLE BORDER="1">
<TR>
<TD>
<A HREF="foo.htm">
<FONT></A>
<A HREF="bar.htm">
<FONT>
MacDesktops</A>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>

View File

@ -0,0 +1,10 @@
<HTML>
<body>
<table>
<td>
<li><font size="-1">
<li><a href="foo.html"></font></a>
</table>
</body>
</html>

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>Crash Test page</title>
</head>
<body>
<table>
<tr>
<td>
<LINK REL="stylesheet" HREF="garbagestyle.css" TYPE="text/css">
</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,8 @@
<HTML><HEAD>
<script src="foo.js"></script>
<csactions>
<csaction name="bar" class="foobar" type="ONEVENT">
</csactions>
</HEAD>
<BODY>
<DD></DD></BODY></HTML>

View File

@ -0,0 +1,15 @@
<HEAD>
<LINK rel="stylesheet">
<rdf:RDF>
<rdf:Description/>
</rdf:RDF>
</HEAD>
<BODY>
<rdf:RDF>
<rdfs:Class/>
</rdf:RDF>
</BODY>
</HTML>

View File

@ -0,0 +1,18 @@
<P><font color="003366" FACE="Serif">
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
<P><FONT size="2"></P>
</FONT><BR>

View File

@ -0,0 +1 @@
<!ENTITY editAwayMessageSpecial3.label " %d = Current date">

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE foo [
<!ENTITY editAwayMessageSpecial3.label " %%d = Current date">
<!ELEMENT foo EMPTY>
]>
<foo/>

View File

@ -0,0 +1 @@
<A HREF=""><font><B>t</A><head><script>

View File

@ -0,0 +1,8 @@
<html>
<body>
<div>
<server>
</server>
</div>
</body>
</html>

View File

@ -0,0 +1,5 @@
<html>
<body>
<p ">
</body>
</html>

View File

@ -0,0 +1,8 @@
<html>
<head>
<title>Mozilla Bug 50134</title>
</head>
<body>
<!--->
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Mozilla Bug 50994</TITLE>
</HEAD>
<BODY>
<P>
<FORM action="">
<P>
</FORM>
</BODY>
</HTML>

View File

@ -0,0 +1,15 @@
<html>
<head>
<title>Computer Market Online</title>
<BASE HREF="http://www.computermarket.com.au/">
</head>
<body bgcolor="#ffffff">
<table>
<tr><td><a href='prodDetail.asp?id=6007&catid=241'>This shows</a></td></tr>
<tr><td><a href='prodDetail.asp?id=6007&catid=241'">This does not show</a></td></tr>
</table>
</body>
</html>

View File

@ -0,0 +1,22 @@
<HTML><HEAD>
<TITLE>Edit parameters</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000" >
<p>
Any item you check Reset on will get reset to its default value.
<form method=post action=doeditparams.cgi><table>
<tr><td valign=top><input type=checkbox name=reset-newchangedmail>Reset</td><td>
<textarea wrap=hard name=newchangedmail rows=10 cols=80>From: bugzilla-daemon&#010;To: %to%&#013;&#010;Cc: %cc%&#013;&#010;Subject: [Bug %bugid%] %neworchanged% - %summary%&#013;&#010;&#013;&#010;%urlbase%show_bug.cgi?id=%bugid%&#013;&#010;&#013;&#010;%diffs%</textarea>
</td></tr>
<tr><td valign=top><input type=checkbox name=reset-whinemail>Reset</td><td>
<textarea wrap=hard name=whinemail rows=10 cols=80>From: bugzilla-daemon&#010;To: %email%&#013;&#010;Subject: Your Bugzilla buglist needs attention.&#013;&#010;&#013;&#010;[This e-mail has been automatically generated.]&#013;&#010;&#013;&#010;You have one or more bugs assigned to you in the Bugzilla &#013;&#010;bugsystem (%urlbase%) that require&#013;&#010;attention.&#013;&#010;&#013;&#010;All of these bugs are in the NEW state, and have not been touched&#013;&#010;in %whinedays% days or more. You need to take a look at them, and &#013;&#010;decide on an initial action.&#013;&#010;&#013;&#010;&#013;&#010;&#013;&#010;</textarea>
</td></tr>
<tr><td></td><td>2.11</td></tr></table>
<input type=reset value="Reset form"><br>
<input type=submit value="Submit changes">
</form>

View File

@ -0,0 +1,27 @@
<html>
<head>
<script>
function crashme() {
var obj = document.getElementById('popupid');
obj.style.visibility='hidden';
}
</script>
</head>
<body onload="crashme();">
<a href="http://www.mozilla.org/">http://www.mozilla.org/</a>
<div id="popupid">
<font>
<script>
document.write('<form>');
document.write('<span>');
document.write('<input>');
document.write('</span>');
document.write('<br>');
document.write('</form>');
</script>
</font>
</div>
</body>
</html>

View File

@ -1,3 +1,19 @@
load 30885-1.html
load 30956-1.html
load 31392-1.html
load 31694-1.html
load 31940-1.html
load 32613-1.html
load 34168-1.html
load 34168-1.xml
load 41427-1.html
load 44178-1.html
load 46495-1.html
load 50134-1.html
load 50994-1.html
load 58455-1.html
load 60110-1.html
load 73331-1.html
load 423373-1.html
# load 460706-1.xhtml
load 468538-1.xhtml

View File

@ -48,6 +48,8 @@ include ../../layout/xul/base/src/tree/src/crashtests/crashtests.list
include ../../gfx/src/thebes/crashtests/crashtests.list
include ../../gfx/thebes/crashtests/crashtests.list
include ../../modules/libpr0n/test/crashtests/crashtests.list
include ../../parser/htmlparser/tests/crashtests/crashtests.list
include ../../security/manager/ssl/crashtests/crashtests.list

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<scrollbox>
<stack>
<box left="50" top="50" style="opacity:0.3;">p </box>
</stack>
</scrollbox>
</window>

View File

@ -0,0 +1,14 @@
<html>
<head>
<title>Testcase</title>
</head>
<body >
<iframe id="page" width=2000000 height=2000000 src="data:text/html,Q"></iframe>
</body>
</html>

View File

@ -1,3 +1,5 @@
load 38589-1.xul
load 64049-1.html
load 323497-1.html
load 382756-1.xul
load 387745-1.svg