From 33ae6b87ee574d8a8e151c8d5d802d43a3648da2 Mon Sep 17 00:00:00 2001 From: Sanket Joshi Date: Mon, 23 Sep 2024 12:36:06 -0700 Subject: [PATCH] Add tests for programmatic focus. --- programmatic-focus-iframe.html | 37 ++++++++++++++++++++++++++++++++++ programmatic-focus.html | 32 +++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 programmatic-focus-iframe.html create mode 100644 programmatic-focus.html diff --git a/programmatic-focus-iframe.html b/programmatic-focus-iframe.html new file mode 100644 index 0000000..cf64dda --- /dev/null +++ b/programmatic-focus-iframe.html @@ -0,0 +1,37 @@ + + + +

Iframed Page

+

This page will steal focus after the countdown

+

3

+ + + + + \ No newline at end of file diff --git a/programmatic-focus.html b/programmatic-focus.html new file mode 100644 index 0000000..544ed5a --- /dev/null +++ b/programmatic-focus.html @@ -0,0 +1,32 @@ + + + +

Focus Steal Sample

+

Click on the "Load frame" button below to see focus being stole by the iframed page. You will see the focus rect move into the frame after it loads.

+

Click on the "Focus frame" button below to programmatically move focus to the iframed page. You should see the focus rect move into the frame.

+ + + + + + + \ No newline at end of file