content/base/test/test_bug809003.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/test/test_bug809003.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=809003
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +  <title>Test for Bug 809003</title>
    1.12 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.14 +  <style>
    1.15 +     #testdiv:before {
    1.16 +       content: url('data:image/gif,GIF89a%01%00%01%00%80%01%00%FF%00%00%FF%FF%FF!%F9%04%01%00%00%01%00%2C%00%00%00%00%01%00%01%00%00%02%02D%01%00%3B');
    1.17 +     }
    1.18 +     #testdiv:after {
    1.19 +       content: url('non_existing_image.gif');
    1.20 +     }
    1.21 +    </style>
    1.22 +</head>
    1.23 +<body>
    1.24 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=809003">Mozilla Bug 809003</a>
    1.25 +<p id="display"></p>
    1.26 +<div id="content" style="display: none">
    1.27 +  
    1.28 +</div>
    1.29 +<pre id="test">
    1.30 +<script type="application/javascript">
    1.31 +
    1.32 +/** Test for Bug 809003 **/
    1.33 +
    1.34 +window.didGetLoad = false;
    1.35 +window.didGetError = false;
    1.36 +
    1.37 +SimpleTest.waitForExplicitFinish();
    1.38 +
    1.39 +setTimeout(function() {
    1.40 +  is(window.didGetLoad, false, "Shouldn't have got load event!");
    1.41 +  is(window.didGetError, false, "Shouldn't have got error event!");
    1.42 +  SimpleTest.finish();
    1.43 +}, 1000);
    1.44 +
    1.45 +</script>
    1.46 +</pre>
    1.47 +<div id="testdiv" onload="window.didGetLoad = true;" onerror="window.didGetError = true;"></div>
    1.48 +</body>
    1.49 +</html>

mercurial