Skip to content

Commit

Permalink
Update annotation snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hudson-newey committed Feb 7, 2025
1 parent 01c736e commit 98dbcec
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 44 deletions.
3 changes: 2 additions & 1 deletion dev/full-spectrogram.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ <h2>This is a footer with some long content to test scrolling</h2>
grid-template-columns: repeat(2, 1fr);
}

/*
.large::part(canvas) {
height: 600px;
width: 100%;
}
} */
</style>
</body>
</html>
14 changes: 9 additions & 5 deletions src/components/annotate/annotate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,23 @@ test.describe("with annotation", () => {
{
name: "should position correctly if only the high frequency has overflowed",
annotation: {
startTime: 1,
endTime: 2,
lowFrequency: 21050,
highFrequency: 23050,
startTime: 2,
endTime: 2.5,
lowFrequency: 10000,
highFrequency: 13050,
},
},
{
// In this test, the annotation is not overflowing, but if the label
// was rendered in the top left position, it would overflow the
// high frequency axis
// therefore, we expect that the label will be rendered on the bottom
name: "should position correctly if only the high frequency label is overflowing",
annotation: {
startTime: 3,
endTime: 3.4,
lowFrequency: 9500,
highFrequency: 13000,
highFrequency: 10900,
},
},
] satisfies AnnotationBoundingBoxTest[];
Expand Down
4 changes: 0 additions & 4 deletions src/components/annotation/annotation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ test.describe("component template", () => {
});

test.describe("model parsing", () => {
test.fail("should throw an error if bounding attributes are missing", async ({ fixture }) => {
await fixture.create("<oe-annotation></oe-annotation>");
});

test("should not throw an error only tags are missing", async ({ fixture }) => {
// if creating the component (through fixture.create) throws an error, the
// test will fail
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 98dbcec

Please sign in to comment.