From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../confirm-different-origin-frame.sub.html | 24 ++++++ .../prompt-different-origin-frame.sub.html | 24 ++++++ .../support/confirm.html | 11 +++ .../cannot-show-simple-dialogs/support/prompt.html | 11 +++ .../user-prompts/newline-normalization-manual.html | 21 +++++ .../user-prompts/print-during-beforeunload.html | 29 +++++++ .../user-prompts/print-during-unload.html | 29 +++++++ .../user-prompts/print-in-detached-frame.html | 19 +++++ .../html/webappapis/user-prompts/print-manual.html | 93 ++++++++++++++++++++++ .../user-prompts/resources/destination.html | 8 ++ .../resources/print-during-event.sub.html | 17 ++++ 11 files changed, 286 insertions(+) create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/confirm-different-origin-frame.sub.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/prompt-different-origin-frame.sub.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/confirm.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/prompt.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/newline-normalization-manual.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/print-during-beforeunload.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/print-during-unload.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/print-manual.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/resources/destination.html create mode 100644 testing/web-platform/tests/html/webappapis/user-prompts/resources/print-during-event.sub.html (limited to 'testing/web-platform/tests/html/webappapis/user-prompts') diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/confirm-different-origin-frame.sub.html b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/confirm-different-origin-frame.sub.html new file mode 100644 index 0000000000..693cde2192 --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/confirm-different-origin-frame.sub.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/prompt-different-origin-frame.sub.html b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/prompt-different-origin-frame.sub.html new file mode 100644 index 0000000000..151def9b5a --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/prompt-different-origin-frame.sub.html @@ -0,0 +1,24 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/confirm.html b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/confirm.html new file mode 100644 index 0000000000..80b2c61b39 --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/confirm.html @@ -0,0 +1,11 @@ + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/prompt.html b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/prompt.html new file mode 100644 index 0000000000..db40774770 --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/cannot-show-simple-dialogs/support/prompt.html @@ -0,0 +1,11 @@ + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/newline-normalization-manual.html b/testing/web-platform/tests/html/webappapis/user-prompts/newline-normalization-manual.html new file mode 100644 index 0000000000..55cb5ce527 --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/newline-normalization-manual.html @@ -0,0 +1,21 @@ + + +Newline normalization in simple dialogs + + +

The dialogs should all contain text looking like:

+ +
Line 1.1
+Line 1.2
+Line 1.3
+Line 1.4
+
+Line 2.1
+ + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/print-during-beforeunload.html b/testing/web-platform/tests/html/webappapis/user-prompts/print-during-beforeunload.html new file mode 100644 index 0000000000..5925bdde4d --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/print-during-beforeunload.html @@ -0,0 +1,29 @@ + + +print() during beforeunload + + + + + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/print-during-unload.html b/testing/web-platform/tests/html/webappapis/user-prompts/print-during-unload.html new file mode 100644 index 0000000000..81259a9fe0 --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/print-during-unload.html @@ -0,0 +1,29 @@ + + +print() during unload + + + + + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html b/testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html new file mode 100644 index 0000000000..474f4f4d2a --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/print-in-detached-frame.html @@ -0,0 +1,19 @@ + + +print() in a detached iframe + + + + + diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/print-manual.html b/testing/web-platform/tests/html/webappapis/user-prompts/print-manual.html new file mode 100644 index 0000000000..67cbd0dd48 --- /dev/null +++ b/testing/web-platform/tests/html/webappapis/user-prompts/print-manual.html @@ -0,0 +1,93 @@ + + +Printing + + + + + +

Click on the button below.

+

If the browser offers to print the current page, dismiss the prompt to +return to this page. The following should then appear in the box marked as +"Output":

+
+before calling print()
+beforeprint
+afterprint
+after calling print()
+
+

If no user dialog appears, either the above or the following should be +printed in the box marked as "Output":

+
+before calling print()
+after calling print()
+
+

The test passes if the above criteria are satisfied and "PASS" appears in a +table below this paragraph. The test fails otherwise.

+ + +

Output

+

+
+
diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/resources/destination.html b/testing/web-platform/tests/html/webappapis/user-prompts/resources/destination.html
new file mode 100644
index 0000000000..87fb35cea3
--- /dev/null
+++ b/testing/web-platform/tests/html/webappapis/user-prompts/resources/destination.html
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/testing/web-platform/tests/html/webappapis/user-prompts/resources/print-during-event.sub.html b/testing/web-platform/tests/html/webappapis/user-prompts/resources/print-during-event.sub.html
new file mode 100644
index 0000000000..6f6a78b03c
--- /dev/null
+++ b/testing/web-platform/tests/html/webappapis/user-prompts/resources/print-during-event.sub.html
@@ -0,0 +1,17 @@
+
+
+Page that tries to print during an event
+
+
-- 
cgit v1.2.3