Bug 752226 - Tests. r=evilpie

This commit is contained in:
Ms2ger 2012-05-11 17:46:54 +02:00
parent fb630ae705
commit c03caf74d6
6 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<!DOCTYPE html>
<script>
var worker = new Worker("data:text/javascript,setTimeout(null)");
</script>

View File

@ -0,0 +1,4 @@
<!DOCTYPE html>
<script>
document.createElement("video").src = null
</script>

View File

@ -107,4 +107,6 @@ load 713417.html
load 713417-2.html
load 715056.html
load 741163-1.html
load 752226-1.html
load 752226-2.html
HTTP(..) load xhr_abortinprogress.html

View File

@ -73,6 +73,8 @@ _CHROME_FILES = \
test_bug599295.html \
test_bug650776.html \
test_bug650784.html \
test_bug752226-3.xul \
test_bug752226-4.xul \
$(NULL)
libs:: $(_TEST_FILES)

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
type="text/css"?>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=752226
-->
<window title="Mozilla Bug 752226"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
<!-- test results are displayed in the html:body -->
<body xmlns="http://www.w3.org/1999/xhtml">
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=752226"
target="_blank">Mozilla Bug 752226</a>
</body>
<!-- test code goes here -->
<script type="application/javascript">
<![CDATA[
/** Test for Bug 752226 **/
try {
new File(null);
} catch (e) {}
ok(true, "Didn't crash");
]]>
</script>
</window>

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
type="text/css"?>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=752226
-->
<window title="Mozilla Bug 752226"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
<!-- test results are displayed in the html:body -->
<body xmlns="http://www.w3.org/1999/xhtml">
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=752226"
target="_blank">Mozilla Bug 752226</a>
</body>
<!-- test code goes here -->
<script type="application/javascript">
<![CDATA[
/** Test for Bug 752226 **/
try {
new Components.utils.Sandbox("about:blank", null);
} catch (e) {}
ok(true, "Didn't crash");
]]>
</script>
</window>