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

Side by Side Diff: LayoutTests/fast/css/pseudo-default-003.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 "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <style> 5 <style>
6 input { background: red; } 6 input { background: red; }
7 button { background: red; } 7 button { background: red; }
8 :default { background: lime; } 8 :default { background: lime; }
9 </style> 9 </style>
10 </head> 10 </head>
11 <body> 11 <body>
12 <p id="description"></p> 12 <p id="description"></p>
13 <form method="get"> 13 <form method="get">
14 <button name="victim" type="submit"/>Submit</button> 14 <button name="victim" type="submit"/>Submit</button>
15 <input name="victim" type="submit" value="Submit" /> 15 <input name="victim" type="submit" value="Submit" />
16 <input name="victim" type="submit" value="Submit"/> 16 <input name="victim" type="submit" value="Submit"/>
17 </form> 17 </form>
18 <div id="console"></div> 18 <div id="console"></div>
19 <script> 19 <script>
20 description("This test performs a check for the :default CSS selector on multipl e submit buttons, part 2."); 20 description("This test performs a check for the :default CSS selector on multipl e submit buttons, part 2.");
21 21
22 v = document.getElementsByName("victim"); 22 v = document.getElementsByName("victim");
23 shouldBe("document.defaultView.getComputedStyle(v[0], null).getPropertyValue('ba ckground-color')", "'rgb(0, 255, 0)'"); 23 shouldBe("document.defaultView.getComputedStyle(v[0], null).getPropertyValue('ba ckground-color')", "'rgb(0, 255, 0)'");
24 for (i = 1; i < v.length; i++) 24 for (i = 1; i < v.length; i++)
25 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue ('background-color')", "'rgb(255, 0, 0)'"); 25 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue ('background-color')", "'rgb(255, 0, 0)'");
26 </script> 26 </script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/pseudo-default-002.html ('k') | LayoutTests/fast/css/pseudo-default-004.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698