Revision: 86a4408e9d6a
Author: Mikko Korpela <[email protected]>
Date: Wed Jan 11 23:38:11 2012
Log: log.html: Expand only critical failed tests
http://code.google.com/p/robotframework/source/detail?r=86a4408e9d6a
Modified:
/src/robot/webcontent/log.html
/src/robot/webcontent/log.js
=======================================
--- /src/robot/webcontent/log.html Tue Dec 20 15:28:52 2011
+++ /src/robot/webcontent/log.html Wed Jan 11 23:38:11 2012
@@ -97,7 +97,7 @@
$("#" + uniqueIds[i] + "_unfoldlink").click();
}
if (uniqueIds && uniqueIds.length > 0) {
- expandFailed(window.testdata.find(uniqueIds[uniqueIds.length -
1]));
+
expandCriticalFailed(window.testdata.find(uniqueIds[uniqueIds.length - 1]));
window.location.hash = element;
}
});
=======================================
--- /src/robot/webcontent/log.js Fri Jul 8 07:03:29 2011
+++ /src/robot/webcontent/log.js Wed Jan 11 23:38:11 2012
@@ -79,10 +79,10 @@
expandRecursively();
}
-function expandFailed(element) {
+function expandCriticalFailed(element) {
if (element.status == "FAIL") {
window.elementsToExpand = [element];
- window.expandDecider = function(e) {return e.status == "FAIL";};
+ window.expandDecider = function(e) {return e.status == "FAIL" &&
(e.isCritical === undefined || e.isCritical);};
expandRecursively();
}
}
@@ -91,5 +91,5 @@
if (suite.status == "PASS")
expandElement(suite);
else
- expandFailed(suite);
-}
+ expandCriticalFailed(suite);
+}