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

Side by Side Diff: LayoutTests/fast/css/pseudo-valid-dynamic.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 id="sty"> 5 <style id="sty">
6 input { background: blue; } 6 input { background: blue; }
7 </style> 7 </style>
8 </head> 8 </head>
9 <body> 9 <body>
10 <p id="description"></p> 10 <p id="description"></p>
11 <form method="get"> 11 <form method="get">
12 <input name="victim" type="text"/> 12 <input name="victim" type="text"/>
13 <input name="victim" type="text" value="Loremipsum" pattern="Lorem ipsum"/> 13 <input name="victim" type="text" value="Loremipsum" pattern="Lorem ipsum"/>
14 </form> 14 </form>
15 <div id="console"></div> 15 <div id="console"></div>
16 <script> 16 <script>
17 description("This test checks that input element that share style, no longer sha re style after validity rules are dynamically added."); 17 description("This test checks that input element that share style, no longer sha re style after validity rules are dynamically added.");
18 18
19 var s1 = document.getElementById('sty').sheet; 19 var s1 = document.getElementById('sty').sheet;
20 s1.insertRule(':valid { background: lime; }', s1.cssRules.length); 20 s1.insertRule(':valid { background: lime; }', s1.cssRules.length);
21 21
22 v = document.getElementsByTagName("input"); 22 v = document.getElementsByTagName("input");
23 23
24 shouldBe("document.defaultView.getComputedStyle(v[0], null).getPropertyValue('ba ckground-color')", "'rgb(0, 255, 0)'"); 24 shouldBe("document.defaultView.getComputedStyle(v[0], null).getPropertyValue('ba ckground-color')", "'rgb(0, 255, 0)'");
25 shouldBe("document.defaultView.getComputedStyle(v[1], null).getPropertyValue('ba ckground-color')", "'rgb(0, 0, 255)'"); 25 shouldBe("document.defaultView.getComputedStyle(v[1], null).getPropertyValue('ba ckground-color')", "'rgb(0, 0, 255)'");
26 </script> 26 </script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/pseudo-valid-007.html ('k') | LayoutTests/fast/css/pseudo-valid-unapplied.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698