summaryrefslogtreecommitdiffstats
path: root/dom/smil/crashtests/608549-1.svg
blob: dd441e0135236d8e3a2a10ff9ce042c087eeb700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
<script>
<![CDATA[

function boom()
{
  try {
    document.getElementById("set").beginElementAt(NaN);
    return;
  } catch (e) {}
  try {
    document.getElementById("set").endElementAt(NaN);
    return;
  } catch (e) {}

  // If we got here we threw both exceptions and skipped both early-returns, as
  // expected.
  document.documentElement.removeAttribute("class");
}

window.addEventListener("load", boom, false);

]]>
</script>

<set id="set" attributeName="fill" to="green" begin="indefinite"/>

</svg>