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

Side by Side Diff: LayoutTests/fast/css/counters/2displays.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>2 renderers 1 counter reset failure.</title> 4 <title>2 renderers 1 counter reset failure.</title>
5 <meta name="assert" content="When a Counter node is destroyed all its display re nderers must be reset."> 5 <meta name="assert" content="When a Counter node is destroyed all its display re nderers must be reset.">
6 <style type="text/css"> 6 <style type="text/css">
7 7
8 #testView:before { 8 #testView:before {
9 content: "First Counter:" counters(test, ".") " Second Counter:" counters(test , "."); 9 content: "First Counter:" counters(test, ".") " Second Counter:" counters(test , ".");
10 } 10 }
11 .counter1 { 11 .counter1 {
12 counter-reset: test 1; 12 counter-reset: test 1;
13 } 13 }
14 .counter1000 { 14 .counter1000 {
15 counter-reset: test 1000; 15 counter-reset: test 1000;
16 } 16 }
17 17
18 </style> 18 </style>
19 <script src="../../js/resources/js-test-pre.js"></script> 19 <script src="../../../resources/js-test.js"></script>
20 <script type="text/javascript"> 20 <script type="text/javascript">
21 21
22 description("This test passes if both the first and the second counter are 1000. "); 22 description("This test passes if both the first and the second counter are 1000. ");
23 23
24 if (window.testRunner) { 24 if (window.testRunner) {
25 testRunner.dumpAsText(); 25 testRunner.dumpAsText();
26 testRunner.waitUntilDone(); 26 testRunner.waitUntilDone();
27 } 27 }
28 28
29 function run() 29 function run()
30 { 30 {
31 document.getElementById("testView").setAttribute("class", "counter1000"); 31 document.getElementById("testView").setAttribute("class", "counter1000");
32 if (!window.testRunner) 32 if (!window.testRunner)
33 return; 33 return;
34 shouldBe("window.internals.counterValue(document.getElementById('testView')) ", "'1000 1000'"); 34 shouldBe("window.internals.counterValue(document.getElementById('testView')) ", "'1000 1000'");
35 35
36 if (window.testRunner) 36 if (window.testRunner)
37 testRunner.notifyDone(); 37 testRunner.notifyDone();
38 } 38 }
39 39
40 window.onload = run; 40 window.onload = run;
41 41
42 </script> 42 </script>
43 </head> 43 </head>
44 <body> 44 <body>
45 <div id="testView" class="counter1"></div> 45 <div id="testView" class="counter1"></div>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/content-language-with-whitespace.html ('k') | LayoutTests/fast/css/counters/after-continuation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698