Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-crash-in-non-wellformed-document.svg
blob2fef137b0e9a5c33fe8e3ef7ca71244b7fffd633
1 <?xml version="1.0" standalone="no"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" onload="runTest()">
3 <text x="0" y="30">PASS without crash.</text>
4 <use xlink:href="#undefined">
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 function runTest() {
10 try {
11 var errorElement = document.getElementsByTagName("parsererror")[0];
12 errorElement.parentNode.removeChild(errorElement);
13 var useElement = document.getElementsByTagName("use")[0];
14 useElement.parentNode.removeChild(useElement);
15 } catch(e) {
18 </script>
19 </svg>