commit | 7a30184cf43860a5542c591da99531a513ab0435 | [log] [tgz] |
---|---|---|
author | jlabanca@google.com <jlabanca@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Dec 14 13:12:32 2011 +0000 |
committer | jlabanca@google.com <jlabanca@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Dec 14 13:12:32 2011 +0000 |
tree | 3789a5c3d17b61f69b07c8bb84e7c898f2b9d5cb | |
parent | 593fc3ad0b4de4c65a1eb4d6a6d56d21378ecbce [diff] |
Fixing a bug in SafeStylesUtils where zIndex is specified in camelCase form instead of hyphenated form. http://gwt-code-reviews.appspot.com/1603803/ Issue: 7028 Author: tbroyer Review: jlabanca Review by: skybrian@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10795 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java b/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java index 84f76a2..a225603 100644 --- a/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java +++ b/user/src/com/google/gwt/safecss/shared/SafeStylesUtils.java
@@ -488,7 +488,7 @@ * Set the z-index css property. */ public static SafeStyles forZIndex(int value) { - return new SafeStylesString("zIndex: " + value + ";"); + return new SafeStylesString("z-index: " + value + ";"); } /**
diff --git a/user/test/com/google/gwt/safecss/shared/GwtSafeStylesUtilsTest.java b/user/test/com/google/gwt/safecss/shared/GwtSafeStylesUtilsTest.java index 2c6a37b..29b97fd 100644 --- a/user/test/com/google/gwt/safecss/shared/GwtSafeStylesUtilsTest.java +++ b/user/test/com/google/gwt/safecss/shared/GwtSafeStylesUtilsTest.java
@@ -92,7 +92,7 @@ } public void testForZIndex() { - assertEquals("zIndex: 5;", SafeStylesUtils.forZIndex(5).asString()); + assertEquals("z-index: 5;", SafeStylesUtils.forZIndex(5).asString()); } public void testFromTrustedNameAndValue() {