Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / html / marquee-scrollamount.html
blob1f9dee8e564ca472690697ede53bf422db35af7e
1 <body>
2 <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>
3 <script>
4 if (window.testRunner)
5 testRunner.waitUntilDone();
6 var marquee = document.createElement("marquee");
7 // Sets the character color to while in order to make the image result deterministic.
8 // When you want to run this test manually, change the color to black.
9 marquee.style.color = "white";
10 marquee.innerHTML = "Test";
11 marquee.width = "100px";
12 marquee.scrollDelay = 0;
13 document.body.appendChild(marquee);
14 setTimeout(function() {
15 marquee.scrollAmount = 0;
16 if (window.testRunner) {
17 setTimeout(function() {
18 testRunner.notifyDone();
19 }, 55);
21 }, 0);
22 </script>