Move localeCompare tests to Zotero.Intl tests
This commit is contained in:
parent
e6d5be755a
commit
824e9c78d6
2 changed files with 10 additions and 10 deletions
|
@ -13,4 +13,14 @@ describe("Zotero.Intl", function() {
|
||||||
assert.equal(str1, str2);
|
assert.equal(str1, str2);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe("#localeCompare", function () {
|
||||||
|
it("shouldn't ignore whitespace", function () {
|
||||||
|
assert.equal(Zotero.localeCompare("Chang", "Chan H"), 1);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("shouldn't ignore leading punctuation", function () {
|
||||||
|
assert.equal(Zotero.localeCompare("_Abcd", "Abcd"), -1);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
describe("Zotero", function() {
|
describe("Zotero", function() {
|
||||||
describe("#localeCompare", function () {
|
|
||||||
it("shouldn't ignore whitespace", function () {
|
|
||||||
assert.equal(Zotero.localeCompare("Chang", "Chan H"), 1);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("shouldn't ignore leading punctuation", function () {
|
|
||||||
assert.equal(Zotero.localeCompare("_Abcd", "Abcd"), -1);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe("VersionHeader", function () {
|
describe("VersionHeader", function () {
|
||||||
describe("#update()", function () {
|
describe("#update()", function () {
|
||||||
var majorMinorVersion;
|
var majorMinorVersion;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue