Update tests after sortIndex length change
This commit is contained in:
parent
427a227370
commit
f662b58331
2 changed files with 6 additions and 6 deletions
|
@ -932,9 +932,9 @@ async function createAnnotation(type, parentItem) {
|
|||
annotation.annotationText = Zotero.Utilities.randomString();
|
||||
}
|
||||
annotation.annotationComment = Zotero.Utilities.randomString();
|
||||
var page = Zotero.Utilities.rand(1, 100).toString().padStart(6, '0');
|
||||
var pos = Zotero.Utilities.rand(1, 10000).toString().padStart(7, '0');
|
||||
annotation.annotationSortIndex = `${page}|${pos}|000000.000`;
|
||||
var page = Zotero.Utilities.rand(1, 100).toString().padStart(5, '0');
|
||||
var pos = Zotero.Utilities.rand(1, 10000).toString().padStart(6, '0');
|
||||
annotation.annotationSortIndex = `${page}|${pos}|00000.000`;
|
||||
annotation.annotationPosition = {
|
||||
pageIndex: 123,
|
||||
rects: [
|
||||
|
|
|
@ -1223,7 +1223,7 @@ describe("Zotero.Item", function () {
|
|||
annotation.parentID = attachment.id;
|
||||
annotation.annotationType = 'highlight';
|
||||
annotation.annotationText = "This is highlighted text.";
|
||||
annotation.annotationSortIndex = '000015|0002431|000000.000';
|
||||
annotation.annotationSortIndex = '00015|002431|00000.000';
|
||||
annotation.annotationPosition = {
|
||||
pageIndex: 123,
|
||||
rects: [
|
||||
|
@ -1238,7 +1238,7 @@ describe("Zotero.Item", function () {
|
|||
annotation.parentID = attachment.id;
|
||||
annotation.annotationType = 'note';
|
||||
annotation.annotationComment = "This is a comment.";
|
||||
annotation.annotationSortIndex = '000015|0002431|000000.000';
|
||||
annotation.annotationSortIndex = '00015|002431|00000.000';
|
||||
annotation.annotationPosition = {
|
||||
pageIndex: 123,
|
||||
rects: [
|
||||
|
@ -1260,7 +1260,7 @@ describe("Zotero.Item", function () {
|
|||
var annotation = new Zotero.Item('annotation');
|
||||
annotation.parentID = attachment.id;
|
||||
annotation.annotationType = 'image';
|
||||
annotation.annotationSortIndex = '000015|0002431|000000.000';
|
||||
annotation.annotationSortIndex = '00015|002431|00000.000';
|
||||
annotation.annotationPosition = {
|
||||
pageIndex: 123,
|
||||
rects: [
|
||||
|
|
Loading…
Reference in a new issue