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 --- .../meta/file-system-access/__dir__.ini | 1 + .../file-system-access/idlharness.https.any.js.ini | 44 +++++ .../opaque-origin.https.window.js.ini | 11 ++ ...FileSystemDirectoryHandle-move.https.any.js.ini | 166 ++++++++++++++++ .../showPicker-errors.https.window.js.ini | 215 +++++++++++++++++++++ 5 files changed, 437 insertions(+) create mode 100644 testing/web-platform/meta/file-system-access/__dir__.ini create mode 100644 testing/web-platform/meta/file-system-access/idlharness.https.any.js.ini create mode 100644 testing/web-platform/meta/file-system-access/opaque-origin.https.window.js.ini create mode 100644 testing/web-platform/meta/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js.ini create mode 100644 testing/web-platform/meta/file-system-access/showPicker-errors.https.window.js.ini (limited to 'testing/web-platform/meta/file-system-access') diff --git a/testing/web-platform/meta/file-system-access/__dir__.ini b/testing/web-platform/meta/file-system-access/__dir__.ini new file mode 100644 index 0000000000..df6673fa87 --- /dev/null +++ b/testing/web-platform/meta/file-system-access/__dir__.ini @@ -0,0 +1 @@ +prefs: [dom.fs.enabled:true, dom.fs.writable_file_stream.enabled:true] diff --git a/testing/web-platform/meta/file-system-access/idlharness.https.any.js.ini b/testing/web-platform/meta/file-system-access/idlharness.https.any.js.ini new file mode 100644 index 0000000000..7e74026eba --- /dev/null +++ b/testing/web-platform/meta/file-system-access/idlharness.https.any.js.ini @@ -0,0 +1,44 @@ +[idlharness.https.any.html] + [FileSystemHandle interface: operation queryPermission(optional FileSystemHandlePermissionDescriptor)] + expected: FAIL + + [FileSystemHandle interface: operation requestPermission(optional FileSystemHandlePermissionDescriptor)] + expected: FAIL + + [DataTransferItem interface: operation getAsFileSystemHandle()] + expected: FAIL + + [Window interface: operation showOpenFilePicker(optional OpenFilePickerOptions)] + expected: FAIL + + [Window interface: operation showSaveFilePicker(optional SaveFilePickerOptions)] + expected: FAIL + + [Window interface: operation showDirectoryPicker(optional DirectoryPickerOptions)] + expected: FAIL + + [Window interface: window must inherit property "showOpenFilePicker(optional OpenFilePickerOptions)" with the proper type] + expected: FAIL + + [Window interface: calling showOpenFilePicker(optional OpenFilePickerOptions) on window with too few arguments must throw TypeError] + expected: FAIL + + [Window interface: window must inherit property "showSaveFilePicker(optional SaveFilePickerOptions)" with the proper type] + expected: FAIL + + [Window interface: calling showSaveFilePicker(optional SaveFilePickerOptions) on window with too few arguments must throw TypeError] + expected: FAIL + + [Window interface: window must inherit property "showDirectoryPicker(optional DirectoryPickerOptions)" with the proper type] + expected: FAIL + + [Window interface: calling showDirectoryPicker(optional DirectoryPickerOptions) on window with too few arguments must throw TypeError] + expected: FAIL + + +[idlharness.https.any.worker.html] + [FileSystemHandle interface: operation queryPermission(optional FileSystemHandlePermissionDescriptor)] + expected: FAIL + + [FileSystemHandle interface: operation requestPermission(optional FileSystemHandlePermissionDescriptor)] + expected: FAIL diff --git a/testing/web-platform/meta/file-system-access/opaque-origin.https.window.js.ini b/testing/web-platform/meta/file-system-access/opaque-origin.https.window.js.ini new file mode 100644 index 0000000000..17643bcf8f --- /dev/null +++ b/testing/web-platform/meta/file-system-access/opaque-origin.https.window.js.ini @@ -0,0 +1,11 @@ +[opaque-origin.https.window.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [navigator.storage.getDirectory() and showDirectoryPicker() must reject in a sandboxed iframe.] + expected: FAIL + + [navigator.storage.getDirectory() and showDirectoryPicker() must reject in a sandboxed opened window.] + expected: FAIL + + [FileSystemDirectoryHandle must be undefined for data URI iframes.] + expected: FAIL diff --git a/testing/web-platform/meta/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js.ini b/testing/web-platform/meta/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js.ini new file mode 100644 index 0000000000..0e49ecffcf --- /dev/null +++ b/testing/web-platform/meta/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js.ini @@ -0,0 +1,166 @@ +[sandboxed_FileSystemDirectoryHandle-move.https.any.worker.html] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [OK, TIMEOUT] + if (os == "win") and not debug and (processor == "x86"): [OK, TIMEOUT] + if (os == "win") and debug: [OK, TIMEOUT] + [move(dir) to move a non-empty directory to a new directory] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN] + + [move(dir, name) to move a non-empty directory to a new directory] + expected: + if (processor == "x86_64") and (os == "win") and not debug: [PASS, NOTRUN] + if (processor == "x86") and (os == "win") and debug: [PASS, TIMEOUT] + if (processor == "x86") and (os == "win") and not debug: [PASS, NOTRUN, TIMEOUT] + if (processor == "x86") and (os == "linux"): [PASS, TIMEOUT, NOTRUN] + + [move(dir) can be called multiple times] + expected: + if (processor == "x86_64") and (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + if (processor == "x86") and (os == "win") and debug: [PASS, NOTRUN] + if (processor == "x86") and (os == "win") and not debug: [PASS, NOTRUN] + if (processor == "x86") and (os == "linux"): [PASS, NOTRUN] + + [move(dir, name) can be called multiple times] + expected: + if (os == "win") and debug and (processor == "x86_64"): [PASS, TIMEOUT] + if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN] + if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN, TIMEOUT] + + [move(dir, name) with a name with invalid characters should fail] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN, TIMEOUT] + if (os == "win") and debug: [PASS, NOTRUN] + + [move(dir, "") should fail] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN] + if (os == "win") and debug: [PASS, NOTRUN] + + [move(dir, name) to move a directory within itself fails] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN] + if (os == "win") and debug: [PASS, NOTRUN] + + [move(dir, name) to move a directory within itself and rename fails] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN] + if (os == "win") and debug: [PASS, NOTRUN] + + [move(dir) to move a directory within a descendent fails] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN] + if (os == "win") and debug: [PASS, NOTRUN] + + [move(dir, name) to move a directory within a descendent fails] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN, TIMEOUT] + if (os == "win") and debug: [PASS, NOTRUN] + + [move(dir, name) to rename an empty directory] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN] + + [move(dir, name) to rename a non-empty directory] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN, TIMEOUT] + + [move(dir) to move an empty directory to a new directory] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN, TIMEOUT] + + [move(dir, name) to move an empty directory to a new directory] + expected: + if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN] + if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN, TIMEOUT] + + [move(name) to rename a non-empty directory] + expected: + if (os == "win") and not debug: [PASS, TIMEOUT] + + +[sandboxed_FileSystemDirectoryHandle-move.https.any.html] + expected: + if (os == "win") and debug: [OK, TIMEOUT] + if (os == "win") and not debug: [OK, ERROR, TIMEOUT] + [move(dir) to move a non-empty directory to a new directory] + expected: + if (os == "win") and debug and (processor == "x86_64"): [PASS, TIMEOUT] + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(dir, name) to move a non-empty directory to a new directory] + expected: + if (os == "win") and debug and (processor == "x86_64"): [PASS, NOTRUN] + if (os == "win") and debug and (processor == "x86"): [PASS, TIMEOUT] + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(dir, name) can be called multiple times] + expected: + if (os == "win") and debug: [PASS, NOTRUN] + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(dir, name) with a name with invalid characters should fail] + expected: + if (os == "win") and debug: [PASS, NOTRUN] + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(dir, "") should fail] + expected: + if (os == "win") and debug: [PASS, NOTRUN] + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(dir, name) to move a directory within itself fails] + expected: + if os == "win": [PASS, NOTRUN] + + [move(dir, name) to move a directory within itself and rename fails] + expected: + if os == "win": [PASS, NOTRUN] + + [move(dir) to move a directory within a descendent fails] + expected: + if os == "win": [PASS, NOTRUN] + + [move(dir, name) to move a directory within a descendent fails] + expected: + if os == "win": [PASS, NOTRUN] + + [move(dir, name) to rename an empty directory] + expected: + if (os == "win") and not debug: [PASS, NOTRUN] + + [move(dir, name) to rename a non-empty directory] + expected: + if (os == "win") and not debug: [PASS, NOTRUN] + + [move(dir) to move an empty directory to a new directory] + expected: + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(dir) can be called multiple times] + expected: + if (os == "win") and debug: [PASS, NOTRUN] + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(dir, name) to move an empty directory to a new directory] + expected: + if (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN] + + [move(name) to rename a non-empty directory] + expected: + if (processor == "x86") and (os == "linux"): [PASS, TIMEOUT, NOTRUN] + + [move("") to rename an empty directory fails] + expected: + if (processor == "x86") and (os == "linux"): [PASS, TIMEOUT] diff --git a/testing/web-platform/meta/file-system-access/showPicker-errors.https.window.js.ini b/testing/web-platform/meta/file-system-access/showPicker-errors.https.window.js.ini new file mode 100644 index 0000000000..8d60a6d227 --- /dev/null +++ b/testing/web-platform/meta/file-system-access/showPicker-errors.https.window.js.ini @@ -0,0 +1,215 @@ +[showPicker-errors.https.window.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [showOpenFilePicker: Showing a picker requires user activation.] + expected: FAIL + + [showSaveFilePicker: Showing a picker requires user activation.] + expected: FAIL + + [showDirectoryPicker: Showing a picker requires user activation.] + expected: FAIL + + [showOpenFilePicker: File picker requires at least one accepted type.] + expected: FAIL + + [showOpenFilePicker: MIME type can't be an empty string.] + expected: FAIL + + [showOpenFilePicker: MIME type must have subtype.] + expected: FAIL + + [showOpenFilePicker: MIME type can't have empty type.] + expected: FAIL + + [showOpenFilePicker: MIME type can't have empty subtype.] + expected: FAIL + + [showOpenFilePicker: MIME type can't have parameters.] + expected: FAIL + + [showOpenFilePicker: MIME type can't have invalid characters in type.] + expected: FAIL + + [showOpenFilePicker: MIME type can't have whitespace in the middle.] + expected: FAIL + + [showOpenFilePicker: MIME type can't have invalid characters in subtype.] + expected: FAIL + + [showOpenFilePicker: unknown well-known starting directory.] + expected: FAIL + + [showOpenFilePicker: invalid extension ".extensiontoolong". extension length more than 16..] + expected: FAIL + + [showOpenFilePicker: invalid extension ".txt.". extenstion ends with ".".] + expected: FAIL + + [showOpenFilePicker: invalid extension "txt". extenstion does not start with ".".] + expected: FAIL + + [showOpenFilePicker: invalid extension ".$txt". illegal character "$".] + expected: FAIL + + [showOpenFilePicker: invalid extension ".t