Commit 7641befa authored by pdr@chromium.org's avatar pdr@chromium.org

Deflake svg/custom/textPath-change-reference2.svg

This is a speculative fix for the flakiness we are seeing on the
textPath-change-reference2.svg test[1]. The failure is not reproducable
locally but appears as if runTest() is never called. This patch
refactors the test to not depend on runTest().

In addition, the test ids have been refactored to be understandable.

[1] http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20Blink&showAllRuns=true&showExpectations=true&tests=svg%2Fcustom%2FtextPath-change-reference2.svg

BUG=384566
TBR=dpranke

Review URL: https://codereview.chromium.org/333063003

git-svn-id: svn://svn.chromium.org/blink/trunk@176137 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 03eb1644
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
<path id="thePath" d="M150 50 L 450 50" />
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="visiblePath" d="M150 50 L 450 50" />
<text x="50" y="50">PASS</text>
<text>
<textPath id="theTP" xlink:href="#thePath">FAIL</textPath>
<textPath id="failText" xlink:href="#visiblePath">FAIL</textPath>
</text>
<script><![CDATA[
function runTest() {
var tp = document.getElementById("theTP");
tp.setAttributeNS("http://www.w3.org/1999/xlink","href","#wrongPath");
}
var failText = document.getElementById("failText");
failText.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#notVisiblePath");
]]></script>
</svg>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment