```[ERROR] StylesheetTest.propertySelectionScope...
# tornadofx
a
Copy code
[ERROR]   StylesheetTest.propertySelectionScope:290->shouldEqual:622 expected:<.label {
    [            -fx-base: rgba(255, 0, 0, 1);
            }
            .label:hover {
                -fx-base: rgba(0, 0, 255, 1);
            ]}> but was:<.label {
    [-fx-base: rgba(255, 0, 0, 1);
}
.label:hover {
    -fx-base: rgba(0, 0, 255, 1);
]}>
r
That sure does look like a whitespace issue. There shouldn't be any newlines in the comparison unless the
String.strip()
extension isn't working.
I unfortunately can't run them now though, so I'm just going off what you're posting.
a
strip()
? Interesting. I normally use
trim()
but I think that's only white space before and after
👍 1
I have the project configs pointed to the right thing now, waiting for the test to build
r
The stylesheet tests have custom
strip
function that normalizes the whitespace and trims the string.
Copy code
private fun String.strip() = replace(Regex("\\s+"), " ").trim()
a
just found it in the code 🙂