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

Side by Side Diff: LayoutTests/fast/dom/Window/getMatchedCSSRules-with-pseudo-elements.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <style type="text/css" media="screen"> 5 <style type="text/css" media="screen">
6 #div1 { 6 #div1 {
7 border: 2px; 7 border: 2px;
8 } 8 }
9 #div1:after { 9 #div1:after {
10 border: 1px; 10 border: 1px;
11 } 11 }
12 </style> 12 </style>
13 <script src="../../js/resources/js-test-pre.js"></script> 13 <script src="../../js/resources/js-test-pre.js"></script>
14 </head> 14 </head>
15 <body> 15 <body>
16 <div id="div1"></div> 16 <div id="div1"></div>
17 <script> 17 <script>
18 description("Test for getMatchedCSSRules for Psuedo Elements"); 18 description("Test for getMatchedCSSRules for Psuedo Elements");
19 var element = document.getElementById('div1'); 19 var element = document.getElementById('div1');
20 var pseudoRules = window.getMatchedCSSRules(element, "after"); 20 var pseudoRules = window.getMatchedCSSRules(element, "after");
21 var selectorText = "#div1::after"; 21 var selectorText = "#div1::after";
22 22
23 shouldBe('pseudoRules[0].selectorText', 'selectorText'); 23 shouldBe('pseudoRules[0].selectorText', 'selectorText');
24 shouldBeTrue('pseudoRules[0].style.cssText.indexOf("1px") != -1'); 24 shouldBeTrue('pseudoRules[0].style.cssText.indexOf("1px") != -1');
25 25
26 successfullyParsed = true; 26 successfullyParsed = true;
27 </script> 27 </script>
28 <script src="../../js/resources/js-test-post.js"></script>
29 </body> 28 </body>
30 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698