Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: LayoutTests/fast/html/marquee-scrollamount.html

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <body> 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 scr ipt.</p> 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 scr ipt.</p>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 var marquee = document.createElement("marquee"); 6 var marquee = document.createElement("marquee");
7 // Sets the character color to while in order to make the image result deter ministic. 7 // Sets the character color to while in order to make the image result deter ministic.
8 // When you want to run this test manually, change the color to black. 8 // When you want to run this test manually, change the color to black.
9 marquee.style.color = "white"; 9 marquee.style.color = "white";
10 marquee.innerHTML = "Test"; 10 marquee.innerHTML = "Test";
11 marquee.width = "100px"; 11 marquee.width = "100px";
12 marquee.scrollDelay = 0; 12 marquee.scrollDelay = 0;
13 document.body.appendChild(marquee); 13 document.body.appendChild(marquee);
14 setTimeout(function() { 14 requestAnimationFrame(function() {
15 marquee.scrollAmount = 0; 15 marquee.scrollAmount = 0;
16 if (window.testRunner) { 16 if (window.testRunner) {
17 setTimeout(function() { 17 setTimeout(function() {
18 testRunner.notifyDone(); 18 testRunner.notifyDone();
19 }, 55); 19 }, 55);
20 } 20 }
21 }, 0); 21 });
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698