mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Don't show detailed unittest result box if all tests passed
Summary: When all unit tests pass, a box appears between the unit test results and lint status (for test failures to go in). This checks if there's anything to put in that div/ul before putting it on the page. Test Plan: Loaded a revision with unit tests OK and saw no box. Loaded a revision with failing unittests, and saw the same box from before. Reviewers: tuomaspelkonen, epriestley Reviewed By: epriestley CC: jungejason, aran, nh, epriestley Differential Revision: https://secure.phabricator.com/D1295
This commit is contained in:
parent
369079dd45
commit
4a77906141
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Copyright 2011 Facebook, Inc.
|
||||
* Copyright 2012 Facebook, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -67,6 +67,8 @@ final class DifferentialUnitFieldSpecification
|
|||
$postponed_count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($unit_messages) {
|
||||
$utail =
|
||||
'<div class="differential-unit-block">'.
|
||||
'<ul>'.
|
||||
|
|
Loading…
Reference in a new issue