Bug 752226 - Tests. r=evilpie

--HG--
extra : rebase_source : 7a0d155ab7d7898ca4c96b86ae6f706172c7c71f
This commit is contained in:
Ms2ger 2012-05-11 17:46:54 +02:00
parent 1941fb1bb4
commit 6ac8484e0e
6 changed files with 64 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,27 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<?xml-stylesheet type="text/css" href="/tests/SimpleTest/test.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="/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,25 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<?xml-stylesheet type="text/css" href="/tests/SimpleTest/test.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="/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 **/
new Components.utils.Sandbox("about:blank", null);
ok(true, "Didn't crash.");
]]>
</script>
</window>