Fix the test count in the WPT formatter

This was broken by a change in the test harness.
This commit is contained in:
Martin Robinson 2017-09-14 16:03:19 +02:00
parent 988728e9d5
commit 5876ac83f9

View file

@ -105,7 +105,7 @@ class GroupingFormatter(base.BaseFormatter):
return new_display + "No tests running.\n"
def suite_start(self, data):
self.number_of_tests = len(data["tests"])
self.number_of_tests = sum(len(tests) for tests in data["tests"].itervalues())
self.start_time = data["time"]
if self.number_of_tests == 0: