| Index: LayoutTests/fast/forms/textarea-resize-min-width-min-height.html
|
| diff --git a/LayoutTests/fast/forms/textarea-resize-min-width-min-height.html b/LayoutTests/fast/forms/textarea-resize-min-width-min-height.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8e8c9119d947605657945ae0014a5e0b9a25f5bc
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/forms/textarea-resize-min-width-min-height.html
|
| @@ -0,0 +1,56 @@
|
| +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
| + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| +<html>
|
| +<head>
|
| +<script>
|
| +function log(msg)
|
| +{
|
| + document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
|
| +}
|
| +
|
| +function test()
|
| +{
|
| + if (window.testRunner) {
|
| + testRunner.waitUntilDone();
|
| + testRunner.dumpAsText();
|
| + testDragAndMove();
|
| + } else
|
| + log("testRunner is not available");
|
| +}
|
| +
|
| +function testDragAndMove()
|
| +{
|
| + var draggable = document.getElementById("textInputID");
|
| + var startX = draggable.offsetLeft + 100;
|
| + var startY = draggable.offsetTop + 50;
|
| +
|
| + log("TextArea initial width is " + draggable.style.width);
|
| + log("TextArea initial height is " + draggable.style.height);
|
| + log("Dragging textarea to reduce it's width and height by 30px");
|
| +
|
| + eventSender.dragMode = false;
|
| + eventSender.mouseMoveTo(startX,startY);
|
| + eventSender.mouseDown();
|
| + // Then drag it. OK not to crash.
|
| + eventSender.mouseMoveTo(startX - 30, startY - 30);
|
| + //eventSender.mouseMoveTo(startX + 20, startY + 20);
|
| + eventSender.mouseUp();
|
| +
|
| + log("After dragging textarea new width is " + draggable.style.width);
|
| + log("After dragging textarea new height is " + draggable.style.height);
|
| + log("You will see a PASS message below if new width is 70px and new height is 20px");
|
| +
|
| + if ((draggable.style.width == "70px") && (draggable.style.height == "20px"))
|
| + log("PASS");
|
| +
|
| + testRunner.notifyDone();
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="test()">
|
| +<textarea style="width:100px; height:50px; min-width:10px; min-height:10px" id="textInputID">
|
| +Some text
|
| +</textarea>
|
| +<pre id="console"></pre>
|
| +</body>
|
| +</html>
|
|
|