/**
* @jsxImportSource @solidjs/web
*
* #4891: a bound `
}>
));
expect(selected(html)).toEqual(["z"]);
});
test("concurrent streamed renders keep their own select values", async () => {
const page = (value: string, ms: number) => {
const list = later(["a", "b", "c"], ms);
const Options = () => {
const items = createMemo(() => list);
return {o => {o}};
};
return () => (
);
};
const [one, two] = await Promise.all([
renderComplete(page("a", 10)),
renderComplete(page("c", 2))
]);
expect(selected(one)).toEqual(["a"]);
expect(selected(two)).toEqual(["c"]);
});
test("a spread select and spread options match", () => {
const props = { value: "b", name: "s" };
const opt = (v: string) => ({ value: v });
const html = renderToString(() => (
));
expect(selected(html)).toEqual(["b"]);
expect(html).not.toMatch(/