Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: LayoutTests/svg/custom/fragment-navigation-01.html

Issue 249313005: Allow fragment navigation from <svg:a> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More test tweaks. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/custom/fragment-navigation-01-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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">
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/custom/fragment-navigation-01-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698