test: finalize Menu and Dropdown acceptance with CSSOM coverage
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { expect, it } from "vitest";
|
||||
|
||||
// These identifiers are valid browser inputs; the jsdom fallback must not
|
||||
// hide selector errors or fail to resolve them during Presence animations.
|
||||
it.each([
|
||||
["-1menu", "-\\31 menu"],
|
||||
["-", "\\-"],
|
||||
["0menu", "\\30 menu"],
|
||||
["a.b", "a\\.b"],
|
||||
["\u0000", "\uFFFD"],
|
||||
["\u0001a\u007f", "\\1 a\\7f "],
|
||||
["通知_--menu", "通知_--menu"],
|
||||
])("CSS.escape serializes %j like a browser", (input, expected) => {
|
||||
expect(CSS.escape(input)).toBe(expected);
|
||||
});
|
||||
Reference in New Issue
Block a user