mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Fix handling of test failure cases in test results page
This commit is contained in:
@@ -75,6 +75,7 @@ class TestLogger:
|
||||
self.indent()
|
||||
|
||||
self.failed = False
|
||||
self.logged_exception = False
|
||||
|
||||
def end_test(self, test_name: str, print_footer: bool=True):
|
||||
if self.failed:
|
||||
|
||||
@@ -237,8 +237,12 @@ document.body.onload = function() {
|
||||
var failed = document.getElementsByClassName('failed');
|
||||
|
||||
for(var i=0; i < failed.length; i++) {
|
||||
var test = failed[i].parentElement.parentElement;
|
||||
test.classList.add('failed');
|
||||
var search = failed[i];
|
||||
while(search !== null && !search.classList.contains('test'))
|
||||
search = search.parentElement;
|
||||
|
||||
if(search !== null)
|
||||
search.classList.add('failed');
|
||||
}
|
||||
|
||||
if(last_test != '') {
|
||||
|
||||
Reference in New Issue
Block a user