mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00
Bug 787778 - Add test. r=josh
This commit is contained in:
parent
28fd36a685
commit
27df89c5ad
@ -574,6 +574,8 @@ MOCHITEST_FILES_B = \
|
||||
test_bug749367.html \
|
||||
test_bug753278.html \
|
||||
test_bug761120.html \
|
||||
test_bug787778.html \
|
||||
file_bug787778.sjs \
|
||||
test_XHR_onuploadprogress.html \
|
||||
test_XHR_anon.html \
|
||||
file_XHR_anon.sjs \
|
||||
|
8
content/base/test/file_bug787778.sjs
Normal file
8
content/base/test/file_bug787778.sjs
Normal file
@ -0,0 +1,8 @@
|
||||
function handleRequest(request, response)
|
||||
{
|
||||
response.processAsync();
|
||||
response.setHeader("Content-Type", "text/plain", false);
|
||||
response.setHeader("X-Frame-Options", "DENY", false);
|
||||
|
||||
response.finish();
|
||||
}
|
25
content/base/test/test_bug787778.html
Normal file
25
content/base/test/test_bug787778.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=787778
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 787778</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<script type="text/javascript">
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
window.onload = function() {
|
||||
window.document.x.src='a';
|
||||
SimpleTest.executeSoon(function () {
|
||||
ok(true, "Didn't crash!");
|
||||
SimpleTest.finish();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<embed name="x" src="./file_bug787778.sjs">
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user