pivotal/robolectric — pull request #321 by justinmuller (2012-09-16 07:35:25+00:00)
Title: Add support for point ("pt") dimensions in dimens.xml

When com.xtremelabs.robolectric.res.ResourceLoader encounters a dimens.xml such as the following:

24pt

an exception is thrown:

java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "24pt"
at com.xtremelabs.robolectric.res.ResourceLoader.init(ResourceLoader.java:148)

This pull request adds support for the Point ("pt") dimension unit of measure:

http://developer.android.com/guide/topics/resources/more-resources.html#Dimension