www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 899e33c9935766e8c0e13888bcba79042ff29239
parent 242581a270daf602697dac7b74d8eced35a408b6
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  3 Jul 2015 22:14:08 -0400

Add a test to make sure HTTPS URLs aren't failing for Quick Copy

Diffstat:
Mtest/tests/quickCopyTest.js | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/tests/quickCopyTest.js b/test/tests/quickCopyTest.js @@ -5,10 +5,14 @@ describe("Zotero.QuickCopy", function() { // TODO: These should set site-specific prefs and test the actual response against it, // but that will need to wait for 5.0. For now, just make sure they don't fail. describe("#getFormatFromURL()", function () { - it("should handle a domain", function () { + it("should handle an HTTP URL", function () { assert.deepEqual(Zotero.QuickCopy.getFormatFromURL('http://foo.com/'), quickCopyPref); }) + it("should handle an HTTPS URL", function () { + assert.deepEqual(Zotero.QuickCopy.getFormatFromURL('https://foo.com/'), quickCopyPref); + }) + it("should handle a domain and path", function () { assert.deepEqual(Zotero.QuickCopy.getFormatFromURL('http://foo.com/bar'), quickCopyPref); })