dom/svg/test/test_onerror.xhtml
author Birunthan Mohanathas <birunthan@mohanathas.com>
Mon, 12 May 2014 22:29:04 +0300
changeset 201961 85228ee8ce8b1ed628e49baf88104469fb0ea7e6
parent 193402 content/svg/content/test/test_onerror.xhtml@50ae5e011f796ea25c3cb58f2fdc04e6e1482b5c
permissions -rw-r--r--
Bug 946065 - Part 8: Move content/svg/ to dom/ and flatten subdirectories. r=jwatt

<html xmlns="http://www.w3.org/1999/xhtml">
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=500261
-->
<head>
  <title>Test onerror behaviour</title>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.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=500261">Mozilla Bug 500261</a>
<p id="display"></p>
<script class="testbody" type="text/javascript">
<![CDATA[

SimpleTest.waitForExplicitFinish();

function run()
{
  ok(true, 'onerror method called');
  SimpleTest.finish();
}

]]>
</script>
<div id="content">

  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="1" id="svg">
    <image width="1" height="1" xlink:href="http://localhost/serverGone.gif" onerror="run()"/>
  </svg>

</div>
<pre id="test">
</pre>
</body>
</html>