commit-queue@webkit.org | 9107e1d | 2014-11-21 18:43:21 +0000 | [diff] [blame] | 1 | <svg viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| 2 | xmlns:xlink="http://www.w3.org/1999/xlink" onload="doSelection(0,0);"> |
| 3 | <g id="test-body-content"> |
| 4 | <defs> |
| 5 | <script xlink:href="../../resources/js-test-pre.js"></script> |
| 6 | <script> |
| 7 | description('Test that the event handlers do not run during layout of SVG.'); |
| 8 | window.jsTestIsAsync = true; |
| 9 | |
| 10 | var startIndex = 0; |
| 11 | var numChars = 9; |
| 12 | function doSelection(indexDelta, numCharsDelta) |
| 13 | { |
| 14 | document.getElementById('text').selectSubString(startIndex+indexDelta, numChars+numCharsDelta); |
| 15 | finishJSTest(); |
| 16 | } |
| 17 | </script> |
| 18 | </defs> |
| 19 | <g transform="translate(0,60)"> |
| 20 | <text id="text" font-size="48" y="128" x="10"> |
| 21 | abc |
| 22 | </text> |
| 23 | <g id="buttons"> |
| 24 | <text x="390" y="175" text-anchor="middle" font-size="16">--</text> |
| 25 | </g> |
| 26 | </g> |
| 27 | </g> |
| 28 | <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$</text> |
| 29 | <script> |
| 30 | document.execCommand("SelectAll"); |
| 31 | var x = document.fonts; |
| 32 | x.onloading = doSelection; |
| 33 | </script> |
| 34 | <style><![CDATA[ |
| 35 | @font-face { |
| 36 | font-family: 'times'; |
| 37 | src: local('Lucida Grande'); |
| 38 | } |
| 39 | ]]></style> |
| 40 | <script xlink:href="../../resources/js-test-post.js"></script> |
| 41 | </svg> |