ndex, 0);
}, "disconnected frame element .tabIndex should return 0 by default");

for (const setValue of [-1, 0, 1]) {
  test(() => {
    const frame = document.createElement("frame");
    frame.setAttribute("tabindex", setValue);
    assert_equals(frame.tabIndex, setValue);
  }, `disconnected frame element .tabIndex should return ${setValue} when set to ${setValue}`);
}

promise_test(async t => {
  const frame = await getFrame(t);
  assert_equals(frame.tabIndex, 0);
}, "connected frame element inside frame