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

Side by Side Diff: LayoutTests/fast/css/custom-font-xheight.html

Issue 714693002: Don't require getPropertyCSSValue in fast/css tests (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
« no previous file with comments | « no previous file | LayoutTests/fast/css/image-set-parsing-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 @font-face { 4 @font-face {
5 font-family: "test-xheight"; 5 font-family: "test-xheight";
6 src: url(../../resources/Ahem.otf); 6 src: url(../../resources/Ahem.otf);
7 font-style: normal; 7 font-style: normal;
8 font-weight: 700; 8 font-weight: 700;
9 } 9 }
10 .test { 10 .test {
(...skipping 24 matching lines...) Expand all
35 <div class=test style="font-size: 23px">XXXX</div> 35 <div class=test style="font-size: 23px">XXXX</div>
36 <div class=test style="font-size: 24px">XXXX</div> 36 <div class=test style="font-size: 24px">XXXX</div>
37 </div> 37 </div>
38 38
39 <script> 39 <script>
40 if (window.testRunner) 40 if (window.testRunner)
41 testRunner.dumpAsText(); 41 testRunner.dumpAsText();
42 42
43 function test() 43 function test()
44 { 44 {
45 var totalHeight = document.defaultView.getComputedStyle(document.getElementB yId("test"), null).getPropertyCSSValue("height"); 45 var totalHeight = parseFloat(getComputedStyle(document.getElementById("test" )).height);
46 totalHeight = totalHeight.getFloatValue(CSSPrimitiveValue.CSS_PX);
47 if (totalHeight > 150 && totalHeight < 300) 46 if (totalHeight > 150 && totalHeight < 300)
48 document.getElementById("result").innerHTML = "PASS"; 47 document.getElementById("result").innerHTML = "PASS";
49 else 48 else
50 document.getElementById("result").innerHTML = "FAIL: " + totalHeight + " px"; 49 document.getElementById("result").innerHTML = "FAIL: " + totalHeight + " px";
51 } 50 }
52 </script> 51 </script>
53 </body> 52 </body>
54 </html> 53 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/image-set-parsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698