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

Side by Side Diff: LayoutTests/fast/css/pseudo-invalid-002.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 :invalid { background: lime; } 6 :invalid { background: lime; }
7 :valid { background: red; } 7 :valid { background: red; }
8 textarea { background: red; } 8 textarea { background: red; }
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 <textarea name="victim" required></textarea> 14 <textarea name="victim" required></textarea>
15 </form> 15 </form>
16 <div id="console"></div> 16 <div id="console"></div>
17 <script> 17 <script>
18 description("This test performs a check for the :invalid CSS selector on a requi red textarea element."); 18 description("This test performs a check for the :invalid CSS selector on a requi red textarea element.");
19 19
20 v = document.getElementsByName("victim"); 20 v = document.getElementsByName("victim");
21 for (i = 0; i < v.length; i++) 21 for (i = 0; i < v.length; i++)
22 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue ('background-color')", "'rgb(0, 255, 0)'"); 22 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue ('background-color')", "'rgb(0, 255, 0)'");
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/pseudo-invalid-001.html ('k') | LayoutTests/fast/css/pseudo-invalid-novalidate-001.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698