mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ce1411d840
commit
467c001632
@ -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)
|
||||
|
20
content/base/test/test_bug373181.xhtml
Normal file
20
content/base/test/test_bug373181.xhtml
Normal 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>
|
Loading…
Reference in New Issue
Block a user