Skip to content

Commit

Permalink
add spaces, return points
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Valiulin committed Feb 5, 2025
1 parent 1b2ea23 commit f57d17e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const rect = [
30 + 34,
30 + 23,
];
// const rect = {
// xtl, ytl, xbr, ybr,
// };

function translatePoints(points, delta, axis) {
if (axis === 'x') {
Expand All @@ -47,7 +44,7 @@ function translatePoints(points, delta, axis) {
points[3] + delta,
];
}
return null;
return points;
}

context('Create any track, check if track works correctly after deleting some frames', () => {
Expand All @@ -57,6 +54,7 @@ context('Create any track, check if track works correctly after deleting some fr
y: +$shape.attr('y'),
}));
}

function validateShapeCoords({ x, y }) {
const precision = 0.01; // db server precision is 2 digits
cy.get('.cvat_canvas_shape').then(($shape) => {
Expand All @@ -68,6 +66,7 @@ context('Create any track, check if track works correctly after deleting some fr
expect(yVal).to.be.closeTo(y, precision);
});
}

describe('Description: user error, Could not receive frame 43 No one left position or right position was found. Interpolation impossible', () => {
let jobID = null;
const delta = 300;
Expand Down Expand Up @@ -125,6 +124,7 @@ context('Create any track, check if track works correctly after deleting some fr
cy.saveJob();
cy.get('.cvat-player-first-button').click();
});

it('Delete interpolated frames 0, 2, 4. Error should not appear', () => {
// Delete frames 0, 2, 4. Watch out for errors
cy.get('.cvat-player-first-button').click();
Expand All @@ -145,6 +145,7 @@ context('Create any track, check if track works correctly after deleting some fr
cy.goToTaskList();
cy.openTaskJob(taskName);
});

it('Change track positions on frames 2 and 4. Delete frame. Confirm same shape positions', () => {
cy.goCheckFrameNumber(2);
cy.clickDeleteFrameAnnotationView();
Expand Down

0 comments on commit f57d17e

Please sign in to comment.