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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/counters/counter-before-content-not-incremented.html

Issue 2295653002: Use window.testRunner in if-clause (Closed)
Patch Set: a Created 4 years, 3 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 body 5 body
6 { 6 {
7 counter-reset: i 0; 7 counter-reset: i 0;
8 } 8 }
9 9
10 div:before 10 div:before
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 counters += divItem.textContent; 47 counters += divItem.textContent;
48 } 48 }
49 document.getElementById("container").innerHTML = counters; 49 document.getElementById("container").innerHTML = counters;
50 testRunner.notifyDone(); 50 testRunner.notifyDone();
51 } 51 }
52 52
53 function test() 53 function test()
54 { 54 {
55 for (var i = 0; i < 5; ++i) 55 for (var i = 0; i < 5; ++i)
56 insertAuto(i); 56 insertAuto(i);
57 if (testRunner) { 57 if (window.testRunner) {
58 setTimeout("dumpCounters()", 0); 58 setTimeout("dumpCounters()", 0);
59 } 59 }
60 } 60 }
61 window.addEventListener("load", test, false); 61 window.addEventListener("load", test, false);
62 </script> 62 </script>
63 </head> 63 </head>
64 <body> 64 <body>
65 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=38291">38291</a> - C SS counters in :before pseudo-elements do not always update</p> 65 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=38291">38291</a> - C SS counters in :before pseudo-elements do not always update</p>
66 <p>The following two lines should be the same:</p> 66 <p>The following two lines should be the same:</p>
67 <p>-1--2-3-4-5-6</p> 67 <p>-1--2-3-4-5-6</p>
68 <div id="container"><span>-</span></div> 68 <div id="container"><span>-</span></div>
69 </body> 69 </body>
70 </html> 70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698