From 750060f7802bab7752d69830ce964bb8347eed26 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Sun, 18 Feb 2024 15:11:01 +0000 Subject: [PATCH] Test drawings with multiple frames --- .../plugins/tasks/drawing/models/DrawingAnnotation.spec.js | 5 +++-- .../transcription/models/TranscriptionAnnotation.spec.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/lib-classifier/src/plugins/tasks/drawing/models/DrawingAnnotation.spec.js b/packages/lib-classifier/src/plugins/tasks/drawing/models/DrawingAnnotation.spec.js index 787a7ecaf7d..019b17a45e0 100644 --- a/packages/lib-classifier/src/plugins/tasks/drawing/models/DrawingAnnotation.spec.js +++ b/packages/lib-classifier/src/plugins/tasks/drawing/models/DrawingAnnotation.spec.js @@ -125,7 +125,8 @@ describe('Model > DrawingAnnotation', function () { }) const point2 = pointTool.createMark({ x: 150, - y: 200 + y: 200, + frame: 1 }) const questionTask = pointTool.tasks[0] point1.addAnnotation(questionTask, 0) @@ -181,7 +182,7 @@ describe('Model > DrawingAnnotation', function () { } const point2Snapshot = { details: [{ task: 'T0.0.0' }], - frame: 0, + frame: 1, toolIndex: 0, toolType: 'point', x: 150, diff --git a/packages/lib-classifier/src/plugins/tasks/experimental/transcription/models/TranscriptionAnnotation.spec.js b/packages/lib-classifier/src/plugins/tasks/experimental/transcription/models/TranscriptionAnnotation.spec.js index 2fb8a846396..3fda35e8240 100644 --- a/packages/lib-classifier/src/plugins/tasks/experimental/transcription/models/TranscriptionAnnotation.spec.js +++ b/packages/lib-classifier/src/plugins/tasks/experimental/transcription/models/TranscriptionAnnotation.spec.js @@ -77,7 +77,8 @@ describe('Model > TranscriptionAnnotation', function () { x1: 150, x2: 175, y1: 200, - y2: 238 + y2: 238, + frame: 1 }) const textTask = transcriptionLineTool.tasks[0] transcriptionLine1.addAnnotation(textTask, 'foo') @@ -137,7 +138,7 @@ describe('Model > TranscriptionAnnotation', function () { } const transcriptionLine2Snapshot = { details: [{ task: 'T0.0.0' }], - frame: 0, + frame: 1, toolIndex: 0, toolType: 'transcriptionLine', x1: 150,