aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-23 13:13:09 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-23 13:13:09 +0100
commit47e405b5b74839a53aeea2887a7cee87787d3f28 (patch)
tree81bad14cf271e119e441fc9a01e98e7f34639f41 /tests
parentfae26306deee2d4dd95c2f4704f320b2b6747e29 (diff)
downloadbugzilla-triage-47e405b5b74839a53aeea2887a7cee87787d3f28.tar.gz
Convert to using passwords.js from Add-on SDK, not out own.
Exccessive callbacks are considered harmful!
Diffstat (limited to 'tests')
-rw-r--r--tests/test-password.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test-password.js b/tests/test-password.js
deleted file mode 100644
index e46ed9c..0000000
--- a/tests/test-password.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/*jslint forin: true, rhino: true, onevar: false, browser: true, evil: true, laxbreak: true, undef: true, nomen: true, eqeqeq: true, bitwise: true, maxerr: 1000, immed: false, white: false, plusplus: false, regexp: false, undef: false */
-// Released under the MIT/X11 license
-// http://www.opensource.org/licenses/mit-license.php
-"use strict";
-var passMod = require("passwords");
-var BTSRealm = "BTSTest";
-var testLogin = "testUser";
-var testPass = "verySecret";
-var testDomain = "http://www.example.com";
-
-exports.ensurePasswordMachinery = function (test) {
- passMod.setLogin(testLogin, testPass,
- testDomain, BTSRealm);
- test.assertEqual(passMod.getPassword(testLogin,
- testDomain, BTSRealm), testPass, "");
- passMod.removeLogin(testLogin, testPass,
- testDomain, BTSRealm);
-};