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

Side by Side Diff: LayoutTests/fast/css/pseudo-valid-004.html

Issue 48903019: Delete js-test-post.js. (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
« no previous file with comments | « LayoutTests/fast/css/pseudo-valid-002.html ('k') | LayoutTests/fast/css/pseudo-valid-007.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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="../js/resources/js-test-pre.js"></script>
5 <style> 5 <style>
6 :valid { background: red; } 6 :valid { background: red; }
7 :invalid { background: red; } 7 :invalid { background: red; }
8 textarea { background: lime; } 8 textarea { 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 <textarea name="victim" readonly>Lorem ipsum</textarea> 14 <textarea name="victim" readonly>Lorem ipsum</textarea>
15 <textarea name="victim" disabled>Lorem ipsum</textarea> 15 <textarea name="victim" disabled>Lorem ipsum</textarea>
16 </form> 16 </form>
17 <div id="console"></div> 17 <div id="console"></div>
18 <script> 18 <script>
19 description("This test performs a check for the :valid/:invalid CSS selector on textarea elements where it shouldn't be applied."); 19 description("This test performs a check for the :valid/:invalid CSS selector on textarea elements where it shouldn't be applied.");
20 20
21 v = document.getElementsByName("victim"); 21 v = document.getElementsByName("victim");
22 for (i = 0; i < v.length; i++) 22 for (i = 0; i < v.length; i++)
23 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue ('background-color')", "'rgb(0, 255, 0)'"); 23 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue ('background-color')", "'rgb(0, 255, 0)'");
24 </script> 24 </script>
25 <script src="../js/resources/js-test-post.js"></script>
26 </body> 25 </body>
27 </html> 26 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/pseudo-valid-002.html ('k') | LayoutTests/fast/css/pseudo-valid-007.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698