Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / ruby / ruby-svg-crash-expected.html
blobe52eb1512b61df45f274dc2cfb43cb82ba3a8e2a
1 This succeeds if this test doesn't crash.
2 <ruby id=rubyEl><dl></dl><rt id=rubyTextEl></rt>><script>
3 var docElement = document.body ? document.body : document.documentElement;
4 function initCF() {
5 try { fontFaceNameEl = document.createElementNS("http://www.w3.org/2000/svg", "font-face-name"); } catch(e) {}
6 try { clipPathEl = document.createElementNS("http://www.w3.org/2000/svg", "clipPath"); } catch(e) {}
7 setTimeout("CFcrash()", 0);
9 document.addEventListener("DOMContentLoaded", initCF, false);
10 function CFcrash() {
11 try { if (rubyTextEl != docElement) { rubyTextEl.parentNode.removeChild(rubyTextEl); }} catch(e) {}
12 try { clipPathEl.scrollIntoView(true); } catch(e) {}
13 try { fontFaceNameEl.appendChild(rubyEl); } catch(e) {}
15 function runTest()
17 if (window.testRunner)
18 testRunner.notifyDone();
21 if (window.testRunner) {
22 testRunner.waitUntilDone();
25 setTimeout("runTest()", 10);
26 </script>
27 <!-- This is the same as the test because it only needs to test that it doesn't
28 crash. And for some reason, dumpAsText() dumps different output with Release
29 and Debug builds. So this test is a ref-test to work around that problem. -->