OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <div> | |
3 <p>Clicking the green rectangle should attempt a navigation to the fragment id entifier.</p> | |
4 <svg width="300" height="200" onload="runTest()"> | |
5 <a xlink:href="#test"> | |
pdr.
2014/04/24 19:40:05
I think this test would pass even without the patc
fs
2014/04/25 08:00:09
Added an additional test similar to the TC in the
| |
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(); | |
14 } | |
15 | |
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); | |
27 } | |
28 </script> | |
OLD | NEW |