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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/image-set-parsing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/custom-font-xheight.html
diff --git a/LayoutTests/fast/css/custom-font-xheight.html b/LayoutTests/fast/css/custom-font-xheight.html
index 8a173a50e3466eab82ab64d8dc40b2656cef3fc2..7f74f18f18b64dfcdf3e3aec9c91407801d9560e 100644
--- a/LayoutTests/fast/css/custom-font-xheight.html
+++ b/LayoutTests/fast/css/custom-font-xheight.html
@@ -42,8 +42,7 @@ if (window.testRunner)
function test()
{
- var totalHeight = document.defaultView.getComputedStyle(document.getElementById("test"), null).getPropertyCSSValue("height");
- totalHeight = totalHeight.getFloatValue(CSSPrimitiveValue.CSS_PX);
+ var totalHeight = parseFloat(getComputedStyle(document.getElementById("test")).height);
if (totalHeight > 150 && totalHeight < 300)
document.getElementById("result").innerHTML = "PASS";
else
« 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