This commit is contained in:
Robert O'Callahan 2008-07-15 10:52:07 -04:00
Родитель bb1dcf45c0
Коммит b83a594426
2 изменённых файлов: 16 добавлений и 13 удалений

Просмотреть файл

@ -179,7 +179,7 @@ _TEST_FILES = test_bug5141.html \
file_bug428847-1.xhtml \ file_bug428847-1.xhtml \
file_bug428847-2.xhtml \ file_bug428847-2.xhtml \
test_bug425201.html \ test_bug425201.html \
# test_bug431833.html \ test_bug431833.html \
test_bug438519.html \ test_bug438519.html \
test_bug444722.html \ test_bug444722.html \
test_text_replaceWholeText.html \ test_text_replaceWholeText.html \

Просмотреть файл

@ -8,8 +8,16 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=431833
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script> <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<script>
var loadsComplete = [];
function test(e) {
loadsComplete[e.target.id] = true;
}
window.addEventListener('DOMFrameContentLoaded',test,true);
</script>
</head> </head>
<body> <body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=431833">Mozilla Bug 431833</a> <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=431833">Mozilla Bug 431833</a>
<p id="display"> <p id="display">
<iframe id="f1" src="data:text/html,1"></iframe> <iframe id="f1" src="data:text/html,1"></iframe>
@ -24,21 +32,16 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=431833
/** Test for Bug 431833 **/ /** Test for Bug 431833 **/
var str = "FAIL";
function test(e) {
if (str == "FAIL")
str = "";
str += "PASS: " + e.target.id + '. ';
}
window.addEventListener('DOMFrameContentLoaded',test,true);
SimpleTest.waitForExplicitFinish(); SimpleTest.waitForExplicitFinish();
addLoadEvent(function() { addLoadEvent(function() {
is(str, "PASS: f1. PASS: f2. PASS: f3. PASS: f4. ", function check(id) {
"DOMFrameContentLoaded events didn't fire?"); ok(loadsComplete[id], "DOMFrameContentLoaded didn't fire for " + id);
}
check("f1");
check("f2");
check("f3");
check("f4");
}); });
addLoadEvent(SimpleTest.finish); addLoadEvent(SimpleTest.finish);