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

Unified Diff: LayoutTests/svg/hixie/links/003.xml

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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/hixie/links/003.xml
diff --git a/LayoutTests/svg/hixie/links/003.xml b/LayoutTests/svg/hixie/links/003.xml
deleted file mode 100644
index 67c3a3ae838e5fe3f77117f48612aa71d330c4af..0000000000000000000000000000000000000000
--- a/LayoutTests/svg/hixie/links/003.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Links with fragment identifiers inside SVG fragments</title>
- <style type="text/css">
- div { padding-top: 500em; }
- </style>
- </head>
- <body>
- <p>The circle below is a link. When you activate the circle, nothing
- should happen. If the document scrolls or the image pans when you
- activate the link, the test has failed.</p>
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
- height="20000" width="200" onload="runTest();">
- <script type="text/ecmascript"><![CDATA[
-if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-}
-
-function checkNoNavigation()
-{
- var result = location.hash == '' ? 'PASS' : 'FAIL';
- document.documentElement.appendChild(document.createTextNode(result));
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function runTest() {
- if (window.eventSender) {
- var evt = document.createEvent("MouseEvents");
- evt.initMouseEvent("click", true, true, window,
- 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- document.getElementById('link').dispatchEvent(evt);
- window.setTimeout("checkNoNavigation()", 0 );
- } else {
- // in manual mode
- alert("Please use run-webkit-tests.");
- }
-}
-]]>
-</script>
- <!-- Spec says that <a> can only link to animation elements,
- otherwise it is invalid; that known attributes with
- unsupported values are treated as if they hadn't been
- specified when rendering; that if the attribute is not
- specified, the effect is as if an empty value ("") was
- specified; and that an empty attribute value (xlink:href="")
- means that no link traversal occurs upon activation of the 'a'
- element. So. Nothing should happen if you click it: -->
- <a xlink:href="#test" id="link">
- <circle cx="50" cy="50" r="50" fill="blue"/>
- </a>
- <circle cx="50" cy="19950" r="50" fill="red" id="test"/>
- </svg>
- </body>
-</html>
« no previous file with comments | « LayoutTests/svg/custom/fragment-navigation-02-expected.txt ('k') | LayoutTests/svg/hixie/links/003-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698