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

Side by Side Diff: LayoutTests/fast/css/inherited-properties-explicit.html

Issue 703323002: Continue removing testing of getPropertyCSSValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 <script src="../../resources/js-test.js"></script> 1 <script src="../../resources/js-test.js"></script>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 </script> 5 </script>
6 <style> 6 <style>
7 .a { margin-left:5px; } 7 .a { margin-left:5px; }
8 .b { margin-left:inherit; } 8 .b { margin-left:inherit; }
9 .c { margin-left:10px; } 9 .c { margin-left:10px; }
10 </style> 10 </style>
(...skipping 20 matching lines...) Expand all
31 <div class=a> 31 <div class=a>
32 <div class="b c" id=test3b></div> 32 <div class="b c" id=test3b></div>
33 </div> 33 </div>
34 </div> 34 </div>
35 <p> 35 <p>
36 Test that the matched declaration cache handles explicitly inherited properties correctly. 36 Test that the matched declaration cache handles explicitly inherited properties correctly.
37 <p> 37 <p>
38 <script> 38 <script>
39 function test(e, p) { 39 function test(e, p) {
40 var testDiv = document.getElementById(e); 40 var testDiv = document.getElementById(e);
41 var cssValue = window.getComputedStyle(testDiv).getPropertyCSSValue(p); 41 return getComputedStyle(testDiv).marginLeft;
42 return cssValue.cssText;
43 } 42 }
44 shouldBeEqualToString("test('test1a', 'margin-left')", "0px"); 43 shouldBeEqualToString("test('test1a')", "0px");
45 shouldBeEqualToString("test('test1b', 'margin-left')", "0px"); 44 shouldBeEqualToString("test('test1b')", "0px");
46 shouldBeEqualToString("test('test2a', 'margin-left')", "5px"); 45 shouldBeEqualToString("test('test2a')", "5px");
47 shouldBeEqualToString("test('test2b', 'margin-left')", "5px"); 46 shouldBeEqualToString("test('test2b')", "5px");
48 shouldBeEqualToString("test('test3a', 'margin-left')", "10px"); 47 shouldBeEqualToString("test('test3a')", "10px");
49 shouldBeEqualToString("test('test3b', 'margin-left')", "10px"); 48 shouldBeEqualToString("test('test3b')", "10px");
50 </script> 49 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698