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

Unified Diff: LayoutTests/fast/css/hover-affects-child.html

Issue 13871003: Fixing getComputedStyle to return pixel values for left / right / top / bottom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing a const issue. Created 7 years, 8 months 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
Index: LayoutTests/fast/css/hover-affects-child.html
diff --git a/LayoutTests/fast/css/hover-affects-child.html b/LayoutTests/fast/css/hover-affects-child.html
index b8cb8aadb14a0a7566fc5cc6b4437d5aaaeb8dfa..c6735d3a392de8f9fd68cd4ee96c26b7e8ca78d1 100644
--- a/LayoutTests/fast/css/hover-affects-child.html
+++ b/LayoutTests/fast/css/hover-affects-child.html
@@ -31,11 +31,12 @@
testedHoverState = true;
var innerElem = document.getElementById('innerElem');
var calculatedStyle = window.getComputedStyle(innerElem);
-
- if (calculatedStyle.getPropertyValue('left') == "auto")
+
+ var propertyValue = calculatedStyle.getPropertyValue('left');
+ if (propertyValue == "8px")
log("PASSED: Calculated style of inner element is correct");
else
- log("FAILED: Calculated style of inner element is wrong, should be 'left: auto'");
+ log("FAILED: Calculated style of inner element is wrong, should be '800px' was '" + propertyValue + "'");
}
function runTest() {

Powered by Google App Engine
This is Rietveld 408576698