blob: 2122d19a8280b4616b2a614582eada9cdce8f631 [file] [log] [blame]
<!DOCTYPE html>
<html>
<style>
svg {
border: 1px solid black;
width: 400px;
height: 400px;
}
</style>
<body>
<p>This test should not hang.</p>
<p>Path length is <span id="result">uncomputed</span></p>.
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 5000 5000" xml:space="preserve">
<path id="word" stroke="#000000" fill="none" stroke-width="20" d="M3045.44,2522.588c-0.73,0.432-1.927,0.575-2.438,0.568 c-1.12-0.01-4.15-0.989-5.847-0.917c-0.543,0.021,0.176-0.286,0.355-0.343c1.537-0.473,5.494-1.193,7.539-0.701 C3046.408,2521.523,3046.107,2522.196,3045.44,2522.588z"/>
</svg>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var myPath = document.getElementById("word");
var length = myPath.getTotalLength();
document.getElementById('result').textContent = length.toFixed(3);
</script>
</body>
</html>