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

Unified Diff: LayoutTests/svg/custom/use-elementInstance-event-target.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-event-target.svg
diff --git a/LayoutTests/svg/custom/use-elementInstance-event-target.svg b/LayoutTests/svg/custom/use-elementInstance-event-target.svg
deleted file mode 100644
index 87e7de4688b1fb2e52e209d78f192f5ce4e56bcc..0000000000000000000000000000000000000000
--- a/LayoutTests/svg/custom/use-elementInstance-event-target.svg
+++ /dev/null
@@ -1,57 +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"/>
- <title>Test for SVGElementInstance::correspondingElement and SVGElementInstance::correspondingUseElement</title>
-
- <defs>
- <rect id="reference" x="240" y="1" width="239" height="358" />
- <script type="text/ecmascript">
- <![CDATA[
- function repaintTest() {
- if (window.eventSender) {
- testRunner.waitUntilDone();
- eventSender.mouseMoveTo(250, 50);
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
- }
-
- function test (event) {
- // get pointers to use and reference elements
- var reference = document.getElementById('reference');
- var use = document.getElementById('use');
-
- // initialize the pass count and colors
- var pass = 0;
- var colors = ['red', 'orange', 'green'];
-
- // event.target.correspondingUseElement test
- if (event.target.correspondingUseElement == use) {
- document.getElementById('assertion_1').setAttributeNS(null, 'fill', 'green');
- pass++;
- }
-
- // event.target.correspondingElement test
- if (event.target.correspondingElement == reference) {
- document.getElementById('assertion_2').setAttributeNS(null, 'fill', 'green');
- pass++;
- }
-
- // show the result
- use.setAttributeNS(null, 'fill', colors[pass]);
-
- if (window.testRunner)
- testRunner.notifyDone();
- }
- ]]>
- </script>
- </defs>
-
- <use id="use" xlink:href="#reference" onclick="test(evt)" fill="grey" />
-
- <text transform="translate(5,20)">Click on the grey rectangle to start</text>
- <text id="assertion_1" fill="red" transform="translate(5,80)">Test for correspondingUseElement</text>
- <text id="assertion_2" fill="red" transform="translate(5,110)">Test for correspondingElement</text>
-
- <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