| <body> |
| <p>This is a regression test for https://bugs.webkit.org/show_bug.cgi?id=50434. It verifies that a marquee does not animate when scrollAmount is set to 0 by script.</p> |
| <script> |
| if (window.testRunner) |
| testRunner.waitUntilDone(); |
| var marquee = document.createElement("marquee"); |
| // Sets the character color to while in order to make the image result deterministic. |
| // When you want to run this test manually, change the color to black. |
| marquee.style.color = "white"; |
| marquee.innerHTML = "Test"; |
| marquee.width = "100px"; |
| marquee.scrollDelay = 0; |
| document.body.appendChild(marquee); |
| setTimeout(function() { |
| marquee.scrollAmount = 0; |
| if (window.testRunner) { |
| setTimeout(function() { |
| testRunner.notifyDone(); |
| }, 55); |
| } |
| }, 0); |
| </script> |