Commit graph

5 commits

Author SHA1 Message Date
Corey Farwell
30ea772939 Make util::str::parse_length work with floats 2015-11-14 16:47:10 -05:00
rohan.prinja
337066063a fix impl of parse_length() 2015-11-14 10:02:26 -05:00
Florian Merz
80e8a674e2 display input caret for textarea. fixes #7758 2015-10-21 22:38:23 +02:00
Corey Farwell
ea5e4e3ad0 Make util::str::str_join consistent with SliceConcatExt::join
Prior to this commit, `str_join` would skip empty items at the start of
the `Iterator` until it found a non-empty item. This contradicts
`SliceConcatExt::join` which doesn't skip anything.

Brought up in:

https://github.com/servo/servo/pull/7776#issuecomment-144317281
2015-09-30 19:23:18 -04:00
Corey Farwell
3cfd4d14e2 Unit test for util::str::split_html_space_chars
I was concerned for a little bit that passing just whitespace to the
split_html_space_chars function would result in len > 0, so I wrote this
small unit test to make sure it does the right thing. Even though it
does do the right thing, I think there's still value in committing the
unit test.
2015-07-04 18:57:42 -07:00