[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/js] Show headings for test names.



commit 0a058879f0bb51ae717528e6245c791f48e4c806
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Mar 13 10:24:43 2012 -0700

    Show headings for test names.
---
 flashproxy-test.js |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/flashproxy-test.js b/flashproxy-test.js
index 2c786ee..43f23b3 100755
--- a/flashproxy-test.js
+++ b/flashproxy-test.js
@@ -60,6 +60,15 @@ function repr(x)
     }
 }
 
+var top = true;
+function announce(test_name)
+{
+    if (!top)
+        print();
+    top = false;
+    print(test_name);
+}
+
 function pass(test)
 {
     num_tests++;
@@ -111,6 +120,7 @@ function test_parse_query_string()
           expected: { "": "", a: "b", c: "d" } },
     ];
 
+    announce("test_parse_query_string");
     for (var i = 0; i < TESTS.length; i++) {
         var test = TESTS[i];
         var actual;
@@ -140,6 +150,7 @@ function test_parse_addr_spec()
           expected: null },
     ];
 
+    announce("test_parse_addr_spec");
     for (var i = 0; i < TESTS.length; i++) {
         var test = TESTS[i];
         var actual;
@@ -166,6 +177,7 @@ function test_get_query_param_addr()
           expected: null },
     ];
 
+    announce("test_get_query_param_addr");
     for (var i = 0; i < TESTS.length; i++) {
         var test = TESTS[i];
         var actual;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits