summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/file-system-access
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/file-system-access
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/file-system-access')
-rw-r--r--testing/web-platform/meta/file-system-access/__dir__.ini1
-rw-r--r--testing/web-platform/meta/file-system-access/idlharness.https.any.js.ini44
-rw-r--r--testing/web-platform/meta/file-system-access/opaque-origin.https.window.js.ini11
-rw-r--r--testing/web-platform/meta/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js.ini166
-rw-r--r--testing/web-platform/meta/file-system-access/showPicker-errors.https.window.js.ini215
5 files changed, 437 insertions, 0 deletions
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<xt". illegal character "<".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".t/xt". illegal character "".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".\txt". illegal character "/".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".txt\\". illegal characters "\\".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".txt?". illegal character "?".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".txt*". illegal character "*".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".{txt". illegal character "{".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".}txt". illegal character "}".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension " .txt". illegal whitespace at front of extension.]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ". txt". illegal whitespace in extension.]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".txt ". illegal whitespace at end of extension.]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".‮txt‮". illegal RTL character.]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".tæxt". non-ASCII character "æ".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".קום". non-ASCII character "קום".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".txt🙂". non-ASCII character "🙂".]
+ expected: FAIL
+
+ [showOpenFilePicker: invalid extension ".{txt}". illegal characters "{" and "}".]
+ expected: FAIL
+
+ [showSaveFilePicker: File picker requires at least one accepted type.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type can't be an empty string.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type must have subtype.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type can't have empty type.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type can't have empty subtype.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type can't have parameters.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type can't have invalid characters in type.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type can't have whitespace in the middle.]
+ expected: FAIL
+
+ [showSaveFilePicker: MIME type can't have invalid characters in subtype.]
+ expected: FAIL
+
+ [showSaveFilePicker: unknown well-known starting directory.]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".extensiontoolong". extension length more than 16..]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".txt.". extenstion ends with ".".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension "txt". extenstion does not start with ".".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".$txt". illegal character "$".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".t<xt". illegal character "<".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".t/xt". illegal character "".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".\txt". illegal character "/".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".txt\\". illegal characters "\\".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".txt?". illegal character "?".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".txt*". illegal character "*".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".{txt". illegal character "{".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".}txt". illegal character "}".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension " .txt". illegal whitespace at front of extension.]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ". txt". illegal whitespace in extension.]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".txt ". illegal whitespace at end of extension.]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".‮txt‮". illegal RTL character.]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".tæxt". non-ASCII character "æ".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".קום". non-ASCII character "קום".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".txt🙂". non-ASCII character "🙂".]
+ expected: FAIL
+
+ [showSaveFilePicker: invalid extension ".{txt}". illegal characters "{" and "}".]
+ expected: FAIL
+
+ [showOpenFilePicker: starting directory ID contains invalid characters.]
+ expected: FAIL
+
+ [showOpenFilePicker: starting directory ID cannot exceed 32 characters.]
+ expected: FAIL
+
+ [showSaveFilePicker: starting directory ID contains invalid characters.]
+ expected: FAIL
+
+ [showSaveFilePicker: starting directory ID cannot exceed 32 characters.]
+ expected: FAIL
+
+ [showOpenFilePicker: starting directory can\t be null.]
+ expected: FAIL
+
+ [showSaveFilePicker: starting directory can\t be null.]
+ expected: FAIL
+
+ [showOpenFilePicker: starting directory can\t be empty.]
+ expected: FAIL
+
+ [showSaveFilePicker: starting directory can\t be empty.]
+ expected: FAIL