Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / fragment-navigation-01.html
blobec186ec61075475b2d1f28fd1fe04742196d6ab6
1 <!DOCTYPE html>
2 <div>
3 <p>Clicking the green rectangle should attempt a navigation to the fragment identifier.</p>
4 <svg width="300" height="200" onload="runTest()">
5 <a xlink:href="#test">
6 <rect width="100" height="100" fill="green"/>
7 </a>
8 </svg>
9 </div>
10 <script>
11 if (window.testRunner) {
12 testRunner.waitUntilDone();
13 testRunner.dumpAsText();
16 function runTest() {
17 var evt = document.createEvent("MouseEvents");
18 evt.initMouseEvent("click", true, true, window,
19 0, 0, 0, 0, 0, false, false, false, false, 0, null);
20 document.querySelector('a').dispatchEvent(evt);
21 window.setTimeout(function checkNavigation() {
22 var result = location.hash === '#test' ? 'PASS' : 'FAIL';
23 document.documentElement.appendChild(document.createTextNode(result));
24 if (window.testRunner)
25 testRunner.notifyDone();
26 }, 0);
28 </script>