test_short_gif_header.html 923 B

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=844684
  5. -->
  6. <head>
  7. <title>Test for Bug 844684</title>
  8. <script type="application/javascript" src="/MochiKit/MochiKit.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=844684">Mozilla Bug 844684</a>
  14. <div id="content">
  15. <img id="testcontent" onload="success()" onerror="failure()">
  16. </div>
  17. <pre id="test">
  18. <script type="application/javascript">
  19. SimpleTest.waitForExplicitFinish();
  20. document.getElementById('testcontent').src = "short_header.gif";
  21. function success() {
  22. ok(true, "Image loaded.");
  23. SimpleTest.finish();
  24. }
  25. function failure() {
  26. ok(false, "Image didn't load.");
  27. SimpleTest.finish();
  28. }
  29. </script>
  30. </pre>
  31. </body>
  32. </html>