|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=639362 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 639362</title> |
|
8 <script type="application/javascript" src="/MochiKit/packed.js"></script> |
|
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
11 </head> |
|
12 <body> |
|
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=639362">Mozilla Bug 639362</a> |
|
14 <p id="display"></p> |
|
15 <div id="content" style="display: none"> |
|
16 |
|
17 </div> |
|
18 <script type="application/javascript"> |
|
19 SimpleTest.waitForExplicitFinish(); |
|
20 |
|
21 function loaded(iframe) { |
|
22 is(iframe.contentWindow.location.href, iframe.src, "should load correct URL"); |
|
23 is(iframe.contentDocument.body.textContent, 'CACHE MANIFEST', "text/cache-manifest should be treated as text"); |
|
24 SimpleTest.finish(); |
|
25 } |
|
26 </script> |
|
27 <iframe src="data:text/cache-manifest,CACHE MANIFEST" onload="loaded(this);"></iframe> |
|
28 </body> |
|
29 </html> |