Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / geometry / assert-marquee-timer.html
blob2db731e7ce2a3d9032ea19e84e5d0195baf5b035
1 <!doctype html>
2 <html>
3 <head>
4 <style>
5 .content {
6 transform: translateZ(1px);
7 display: block;
8 width: 100px;
9 height: 30px;
10 background-color: green;
12 </style>
13 </head>
14 <body>
15 <!-- This test passes if it doesn't trigger an ASSERT in debug mode. It makes sure that the timer
16 used to update the marquee will not run before the layout is done. -->
18 <div id="container">
19 <marquee behavior="scroll" direction="left" scrolldelay="1" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
20 <marquee behavior="scroll" direction="left" scrolldelay="2" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
21 <marquee behavior="scroll" direction="left" scrolldelay="3" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
22 <marquee behavior="scroll" direction="left" scrolldelay="4" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
23 <marquee behavior="scroll" direction="left" scrolldelay="5" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
24 <marquee behavior="scroll" direction="left" scrolldelay="6" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
25 <marquee behavior="scroll" direction="left" scrolldelay="7" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
26 <marquee behavior="scroll" direction="left" scrolldelay="8" truespeed="true" scrollamount="1"><span class="content"></span></marquee>
27 </div>
29 <p>Counter: <span id="counter"></span></p>
31 <script>
32 if (window.testRunner) {
33 testRunner.waitUntilDone();
34 testRunner.dumpAsText();
37 var times = 0;
38 // Trigger "pending layouts", that might run after the marquee timer is fired.
39 var counter = document.getElementById("counter");
40 var textNode = document.createTextNode("");
41 counter.appendChild(textNode);
42 var interval = setInterval(function() {
43 textNode.nodeValue = Math.random();
44 if ((++times) >= 10) {
45 document.getElementById("container").remove();
46 textNode.nodeValue = "";
47 clearInterval(interval);
48 if (window.testRunner)
49 testRunner.notifyDone();
51 }, 10);
52 </script>
53 </body>
54 </html>