Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / pan-direction.svg
blobfc0bd48b22ecd9f324c8d4a88905210e5997a5c0
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
3 <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" onload="runTest()">
4 <script type="text/ecmascript"><![CDATA[
5 function testPanUp(y) {
6 eventSender.mouseMoveTo(50, 50);
7 eventSender.mouseDown(0, ['shiftKey']);
8 eventSender.mouseMoveTo(50, 50 - y);
9 eventSender.mouseUp();
11 function runTest() {
12 if (window.eventSender) {
13 testPanUp(30);
14 } else {
15 // in manual mode
16 alert("Please use run-webkit-tests.");
19 ]]></script>
20 <rect x="-1000" y="-1000" width="5000" height="5000" fill="red" />
21 <rect x="50" y="50" width="20" height="20" fill="green" />
22 </svg>