bug 373181 - onload doesn't fire for XHTML documents that contain a script tag (Firefox's RSS preview is broken) - add mochikit test. r=sicking

This commit is contained in:
ted.mielczarek@gmail.com 2007-04-26 04:39:15 -07:00
parent ce1411d840
commit 467c001632
2 changed files with 21 additions and 0 deletions

View File

@ -81,6 +81,7 @@ _TEST_FILES = test_bug5141.html \
test_bug371576-4.html \
test_bug371576-5.html \
test_bug372086.html \
test_bug373181.xhtml \
$(NULL)
libs:: $(_TEST_FILES)

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testcase for bug 373181</title>
<script type="text/javascript" src="/MochiKit/packed.js"/>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"/>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/x-javascript">
var bodyOnLoad = false;
function checkOnLoad()
{
ok(bodyOnLoad, "Body onload event should fire");
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
setTimeout(checkOnLoad, 500);
</script>
</head>
<body onload="bodyOnLoad = true;"/>
</html>