[Pkg-mozext-commits] [perspectives-extension] 06/18: Unit tests - Add function to print a visual spacer
David Prévot
taffit at alioth.debian.org
Fri Oct 25 18:24:29 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch debian
in repository perspectives-extension.
commit 39887b8869c9e3e158441679a8ec97e5d17fba2f
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Wed Oct 9 22:25:31 2013 -0600
Unit tests - Add function to print a visual spacer
This just helps to visually group related tests
---
test/test.html | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/test.html b/test/test.html
index 8c29c9b..4d358a2 100644
--- a/test/test.html
+++ b/test/test.html
@@ -83,6 +83,12 @@ function assert_fixme(test, case_name) {
+ case_name, 'li');
}
+// add a horizontal bar to visuall separate some items or tests
+function spacer(category_name) {
+ write_string_to_element("------- <font color='grey'>" + category_name +
+ ":</font>", 'li');
+}
+
// if you're lazy and want to print some text while debugging
function debug(obj) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list