Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / ruby / ruby-svg-crash.html
blob308b2814aee2b8b4477f86bebfa6de2c84012a24
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>