aboutsummaryrefslogtreecommitdiffstats
path: root/tests/report-styles/index.js
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2011-06-16 16:23:26 +0200
committerJiri Vanek <[email protected]>2011-06-16 16:23:26 +0200
commit20ab54395604e6f1258a5feccc7040a4b26b9c22 (patch)
tree3839a09043d05f78004def86417684ca10a6e233 /tests/report-styles/index.js
parent9c4b0a7764e967c9273fae59b632ca06145d5219 (diff)
added styles for junit xml report
Diffstat (limited to 'tests/report-styles/index.js')
-rw-r--r--tests/report-styles/index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/report-styles/index.js b/tests/report-styles/index.js
new file mode 100644
index 0000000..27b6ed5
--- /dev/null
+++ b/tests/report-styles/index.js
@@ -0,0 +1,20 @@
+
+function negateIdDisplay(which) {
+ var e = document.getElementById(which);
+ if (e.style.display=="block") {
+ e.style.display="none"
+ } else {
+ e.style.display="block"
+ }
+}
+
+
+function setClassDisplay(which,what) {
+ var e = document.getElementsByClassName(which);
+ for ( var i = 0; i < e.length; i++ ) {
+ e[i].style.display=what
+ }
+}
+
+
+