aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOri Avtalion <ori@avtalion.name>2015-12-06 21:22:10 +0200
committerOri Avtalion <ori@avtalion.name>2015-12-06 21:24:14 +0200
commitdfac35c77d973e7d6e06df0442b20c30619e0c72 (patch)
treebb7d0a5f00c7d55d40b62d8ed79dba6277b36af1 /tests
parent359d812ed71aecdf7f0ed154762d078bfe098cc0 (diff)
downloadservo-dfac35c77d973e7d6e06df0442b20c30619e0c72.tar.gz
servo-dfac35c77d973e7d6e06df0442b20c30619e0c72.zip
Improve line counting operation in WPT UI output
Diffstat (limited to 'tests')
-rw-r--r--tests/wpt/grouping_formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/wpt/grouping_formatter.py b/tests/wpt/grouping_formatter.py
index 6d4529c183a..43df1cd259b 100644
--- a/tests/wpt/grouping_formatter.py
+++ b/tests/wpt/grouping_formatter.py
@@ -67,7 +67,7 @@ class GroupingFormatter(base.BaseFormatter):
if not self.interactive or not self.current_display:
return ""
return ((self.move_up + self.clear_eol) *
- len(self.current_display.splitlines()))
+ self.current_display.count('\n'))
def generate_output(self, text=None, new_display=None):
if not self.interactive: