From 899e33c9935766e8c0e13888bcba79042ff29239 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 3 Jul 2015 22:14:08 -0400 Subject: [PATCH] Add a test to make sure HTTPS URLs aren't failing for Quick Copy --- test/tests/quickCopyTest.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/tests/quickCopyTest.js b/test/tests/quickCopyTest.js index 5abf79f51..d9d432a96 100644 --- 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); })