aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/unittests.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/content/unittests.js')
-rw-r--r--chrome/content/unittests.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/content/unittests.js b/chrome/content/unittests.js
new file mode 100644
index 0000000..c532d3f
--- /dev/null
+++ b/chrome/content/unittests.js
@@ -0,0 +1,12 @@
+
+var tests = {
+ "Wildcard matches" : {
+ run : function(data) { return redirector.wildcardMatch(data[0], data[1], 'abc', false); },
+ describe : function(data) { return data[0] + ' matches ' + data[1]; },
+ tests : [
+ ['http://foo*', 'http://foobar.is'],
+ ['http://foo*', 'http://foo'],
+ ['*foo*', 'http://foo']
+ ]
+ }
+};