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

Unified Diff: LayoutTests/svg/custom/use-elementInstance-methods.svg

Issue 257033002: Do not implement EventTarget on SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to fix TestExpectations Created 6 years, 7 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/custom/use-elementInstance-methods.svg
diff --git a/LayoutTests/svg/custom/use-elementInstance-methods.svg b/LayoutTests/svg/custom/use-elementInstance-methods.svg
deleted file mode 100644
index 65f7fc63b0ff53019c019c708a2a33ba775ab14b..0000000000000000000000000000000000000000
--- a/LayoutTests/svg/custom/use-elementInstance-methods.svg
+++ /dev/null
@@ -1,71 +0,0 @@
-<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
- <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
- <defs>
- <g id="reference">
- <rect x="240" y="1" width="239" height="358" />
- <circle cx="240" cy="1" width="39" height="58" />
- </g>
-
- <script type="text/ecmascript">
- <![CDATA[
- window.outputRepaintRects = false;
- function repaintTest() {
- if (window.eventSender) {
- testRunner.waitUntilDone();
- eventSender.mouseMoveTo(250, 50);
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
- }
-
- function test (event) {
- // get pointers to use and referenced elements
- var container = document.getElementById('reference');
- var rect = container.firstChild.nextSibling;
- var circle = rect.nextSibling.nextSibling;
- var use = document.getElementById('use');
-
- // test all SVGElementInstance methods (except childNodes)
- var rectInstance = event.target;
- var gInstance = rectInstance.parentNode;
- var circleInstance = rectInstance.nextSibling;
-
- // Check wheter correspdoningElement is the <rect>, and wheter <use> is set correctly.
- if (rectInstance.correspondingElement != rect) return;
- if (rectInstance.correspondingUseElement != use) return;
-
- // Our <rect> doesn't have children.
- if (rectInstance.firstChild) return;
- if (rectInstance.lastChild) return;
-
- // Our <rect> SVGElementInstance has the <g> SVGElementInstance as parent node
- if (!gInstance) return;
- if (gInstance.correspondingElement != container) return;
-
- // Our <rect> SVGElementInstance has no previous sibling
- if (rectInstance.previousSibling) return;
-
- // Our <rect> SVGElementInstance has the <circle> SVGElementInstance as next sibling
- if (!circleInstance) return;
- if (circleInstance.correspondingElement != circle) return;
- if (rectInstance.nextSibling != circleInstance) return;
-
- // Our <g> SVGElementInstance has no parent node, and <rect> as firstChild, <circle> as lastChild
- if (gInstance.parentNode) return;
- if (gInstance.firstChild != rectInstance) return;
- if (gInstance.lastChild != circleInstance) return;
-
- // Hopefully we pass :-)
- document.getElementById("status").firstChild.nodeValue = "Test passed.";
-
- if (window.testRunner)
- testRunner.notifyDone();
- }
- ]]>
- </script>
- </defs>
-
- <text x="100" y="50" id="status">Test failed.</text>
- <use id="use" xlink:href="#reference" onclick="test(evt)" fill="grey" />
- <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
-</svg>

Powered by Google App Engine
This is Rietveld 408576698