Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<title>Test for feed discovery</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=377611">Mozilla Bug 377611</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody">
var rv = { tests: null };
var testCheckInterval = null;
function startTest() {
var url = window.location.href.replace(/test_feed_discovery\.html/,
'feed_discovery.html');
SpecialPowers.openDialog(window, [url, '', 'dialog=no,width=10,height=10', rv]);
testCheckInterval = window.setInterval(tryIfTestIsFinished, 500);
}
function tryIfTestIsFinished() {
if (rv.tests) {
window.clearInterval(testCheckInterval);
checkTest();
}
}
function checkTest() {
for (var i = 0; i < rv.tests.length; ++ i) {
var test = rv.tests[i];
if (test.todo)
todo(test.check, test.message);
else
ok(test.check, test.message);
}
SimpleTest.finish();
}
window.onload = startTest;
SimpleTest.waitForExplicitFinish();
</script>
</pre>
</body>
</html>