summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/navigation-api/focus-reset
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/meta/navigation-api/focus-reset')
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/autofocus.html.ini21
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/basic.html.ini24
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/change-focus-again-in-blur-during-intercept.html.ini3
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/change-focus-back-to-origial-during-intercept.html.ini5
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/change-focus-during-intercept.html.ini5
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/change-focus-then-remove-during-intercept.html.ini5
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/focus-reset-timing.html.ini6
-rw-r--r--testing/web-platform/meta/navigation-api/focus-reset/multiple-intercept.html.ini20
8 files changed, 89 insertions, 0 deletions
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/autofocus.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/autofocus.html.ini
new file mode 100644
index 0000000000..f7bbc836a5
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/autofocus.html.ini
@@ -0,0 +1,21 @@
+[autofocus.html]
+ [An element with autofocus, present before navigation, gets focused]
+ expected: FAIL
+
+ [Two elements with autofocus, present before navigation; the first gets focused]
+ expected: FAIL
+
+ [An element with autofocus, present before navigation but disabled before finished, does not get focused]
+ expected: FAIL
+
+ [An element with autofocus, present before navigation but with its autofocus attribute removed before finished, does not get focused]
+ expected: FAIL
+
+ [Two elements with autofocus, present before navigation, but the first gets disabled; the second gets focused]
+ expected: FAIL
+
+ [An element with autofocus, introduced between committed and finished, gets focused]
+ expected: FAIL
+
+ [An element with autofocus, introduced after finished, does not get focused]
+ expected: FAIL
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/basic.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/basic.html.ini
new file mode 100644
index 0000000000..fd1cae51da
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/basic.html.ini
@@ -0,0 +1,24 @@
+[basic.html]
+ [Invalid values for focusReset throw]
+ expected: FAIL
+
+ [Does not reset the focus when no navigate handler is present]
+ expected: FAIL
+
+ [Resets the focus when no focusReset option is provided]
+ expected: FAIL
+
+ [Resets the focus when focusReset is explicitly set to undefined]
+ expected: FAIL
+
+ [Resets the focus when no focusReset option is provided (nontrivial fulfilled promise)]
+ expected: FAIL
+
+ [Resets the focus when no focusReset option is provided (rejected promise)]
+ expected: FAIL
+
+ [Resets the focus when focusReset is explicitly set to 'after-transition']
+ expected: FAIL
+
+ [Does not reset the focus when focusReset is set to 'manual']
+ expected: FAIL
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/change-focus-again-in-blur-during-intercept.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-again-in-blur-during-intercept.html.ini
new file mode 100644
index 0000000000..882d05964b
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-again-in-blur-during-intercept.html.ini
@@ -0,0 +1,3 @@
+[change-focus-again-in-blur-during-intercept.html]
+ [change-focus-again-in-blur-during-intercept]
+ expected: FAIL
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/change-focus-back-to-origial-during-intercept.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-back-to-origial-during-intercept.html.ini
new file mode 100644
index 0000000000..34a3c8861e
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-back-to-origial-during-intercept.html.ini
@@ -0,0 +1,5 @@
+[change-focus-back-to-origial-during-intercept.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [change-focus-back-to-origial-during-intercept]
+ expected: FAIL
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/change-focus-during-intercept.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-during-intercept.html.ini
new file mode 100644
index 0000000000..d606f69227
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-during-intercept.html.ini
@@ -0,0 +1,5 @@
+[change-focus-during-intercept.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [change-focus-during-intercept]
+ expected: FAIL
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/change-focus-then-remove-during-intercept.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-then-remove-during-intercept.html.ini
new file mode 100644
index 0000000000..9895f1a2d1
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/change-focus-then-remove-during-intercept.html.ini
@@ -0,0 +1,5 @@
+[change-focus-then-remove-during-intercept.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [change-focus-then-remove-during-intercept]
+ expected: FAIL
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/focus-reset-timing.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/focus-reset-timing.html.ini
new file mode 100644
index 0000000000..2dc13cf4a0
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/focus-reset-timing.html.ini
@@ -0,0 +1,6 @@
+[focus-reset-timing.html]
+ [Focus should be reset before navigatesuccess]
+ expected: FAIL
+
+ [Focus should be reset before navigateerror]
+ expected: FAIL
diff --git a/testing/web-platform/meta/navigation-api/focus-reset/multiple-intercept.html.ini b/testing/web-platform/meta/navigation-api/focus-reset/multiple-intercept.html.ini
new file mode 100644
index 0000000000..c342d1a671
--- /dev/null
+++ b/testing/web-platform/meta/navigation-api/focus-reset/multiple-intercept.html.ini
@@ -0,0 +1,20 @@
+[multiple-intercept.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [(not provided) + after-transition]
+ expected: FAIL
+
+ [(not provided) + manual]
+ expected: FAIL
+
+ [after-transition + manual]
+ expected: FAIL
+
+ [after-transition + (not provided)]
+ expected: FAIL
+
+ [manual + after-transition]
+ expected: FAIL
+
+ [manual + (not provided)]
+ expected: FAIL