Release Unicode Tools 0.2.0
Verify / verify (push) Canceled after 0s

This commit is contained in:
2026-09-02 07:50:37 +02:00
parent dca0cb0e79
commit 424605e61f
35 changed files with 1686 additions and 127 deletions
+60 -1
View File
@@ -40,7 +40,7 @@ test("serves the release identity and hardened headers", async ({
const manifest = await request.get("/deep/nested/unicode/toolbox-app.json");
await expect(manifest.json()).resolves.toMatchObject({
id: "de.add-ideas.unicode-tools",
version: "0.1.0",
version: "0.2.0",
entry: "./",
});
});
@@ -59,3 +59,62 @@ test("searches the pinned catalog in a worker and shows character properties", a
await expect(page.getByText("Common / Emoticons")).toBeVisible();
expect(external).toEqual([]);
});
test("virtualizes a range and labels surrogate code units explicitly", async ({
page,
}) => {
const external = await localOnly(page);
await page.goto("/deep/nested/unicode/");
await page.getByRole("button", { name: "Code chart" }).click();
await page.getByLabel("Range start").fill("U+D7F0");
await page.getByLabel("Range end").fill("U+D810");
await page.getByRole("button", { name: "Open range" }).click();
const surrogate = page.getByRole("gridcell", {
name: /U\+D800 UTF-16 SURROGATE CODE UNIT, surrogate/u,
});
await expect(surrogate).toBeVisible({ timeout: 60_000 });
await surrogate.click();
await expect(page.getByText(/not a Unicode scalar value/u)).toBeVisible();
await expect(
page.getByRole("button", { name: "Copy scalar" }),
).toBeDisabled();
await surrogate.press("ArrowRight");
await expect(
page.getByRole("gridcell", { name: /U\+D801 UTF-16 SURROGATE/u }),
).toBeFocused();
expect(external).toEqual([]);
});
test("inspects graphemes and compares UTS #39 confusable skeletons locally", async ({
page,
}) => {
const external = await localOnly(page);
await page.goto("/deep/nested/unicode/");
await page.getByRole("button", { name: "Text inspector" }).click();
await page.getByLabel("Text to inspect").fill("👨‍👩‍👧‍👦 🇩🇪");
await page.getByRole("button", { name: "Inspect text" }).click();
await expect(page.getByText("pictographic · ZWJ")).toBeVisible();
await expect(page.getByText("2 regional indicator(s)")).toBeVisible();
await page.getByRole("button", { name: "Normalize & confusables" }).click();
const normalization = page
.getByRole("heading", {
name: "Compare forms and compute a confusable skeleton",
})
.locator("..");
await normalization
.getByRole("textbox", { name: "Text", exact: true })
.fill("раypal");
await normalization
.getByRole("textbox", { name: "Compare identifier (optional)" })
.fill("paypal");
await page.getByRole("button", { name: "Analyze confusables" }).click();
await expect(
page.getByRole("heading", { name: "UTS #39 confusable analysis" }),
).toBeVisible({ timeout: 60_000 });
await expect(
page.getByText("yes — review", { exact: true }).last(),
).toBeVisible();
await expect(page.getByText(/mixed-script/u).first()).toBeVisible();
expect(external).toEqual([]);
});