gecko/dom/downloads/tests/test_downloads_adopt_download.html
Andrew Sutherland 91dbc0ce1f Bug 825318 - Implement adoptDownload for mozDownloadManager, r=aus, r=sicking
Implement mozDownloadManager.adoptDownload as a certified-only API.

This also fixes and re-enables many of the existing dom/downloads tests
failures by virtue of cleanup and not running them on non-gonk toolkits
where exceptions will be thrown and things will fail.  This should
resolve bug 979446 about re-enabling the tests.
2015-02-24 11:06:59 -05:00

35 lines
923 B
HTML

<!DOCTYPE html>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=825318
-->
<head>
<title>Test for Bug 825318 mozDownloadManager.adoptDownload</title>
<script type="application/javascript;version=1.7" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript;version=1.7" src="shim_app_as_test.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=825318">Mozilla Bug 825318</a>
<p id="display"></p>
<div id="content">
</div>
<pre id="test">
<script class="testbody" type="text/javascript;version=1.7">
runAppTest({
appFile: 'testapp_downloads_adopt_download.html',
appManifest: 'testapp_downloads_adopt_download.manifest',
appType: 'certified',
extraPrefs: {
set: [["dom.mozDownloads.enabled", true]]
}
});
</script>
</pre>
</body>
</html>