зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a07b366da0
Коммит
cddd1b781f
|
@ -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)
|
||||
|
|
|
@ -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>
|
Загрузка…
Ссылка в новой задаче