summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/file-system-access
diff options
context:
space:
mode:
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.ini190
-rw-r--r--testing/web-platform/meta/file-system-access/showPicker-errors.https.window.js.ini209
5 files changed, 455 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..c47d99a7d7
--- /dev/null
+++ b/testing/web-platform/meta/file-system-access/sandboxed_FileSystemDirectoryHandle-move.https.any.js.ini
@@ -0,0 +1,190 @@
+[sandboxed_FileSystemDirectoryHandle-move.https.any.worker.html]
+ expected:
+ if (os == "win") and not swgl and not debug and (processor == "x86_64"): [OK, TIMEOUT]
+ if (os == "win") and not swgl and not debug and (processor == "x86"): [OK, TIMEOUT]
+ if (os == "win") and not swgl and debug: [OK, TIMEOUT]
+ [move(dir) to move a non-empty directory to a new directory]
+ expected:
+ if (os == "win") and not debug: [FAIL, NOTRUN]
+ FAIL
+
+ [move(dir, name) to move a non-empty directory to a new directory]
+ expected:
+ if (processor == "x86_64") and (os == "win") and not debug: [FAIL, NOTRUN]
+ if (processor == "x86") and (os == "win") and not debug: [FAIL, TIMEOUT, NOTRUN]
+ if (processor == "x86") and (os == "win") and debug: [FAIL, TIMEOUT]
+ if (processor == "x86") and (os == "linux"): [FAIL, TIMEOUT, NOTRUN]
+ FAIL
+
+ [move(dir) can be called multiple times]
+ expected:
+ if (processor == "x86_64") and (os == "win") and not debug: [PASS, TIMEOUT, NOTRUN]
+ if processor == "x86": [PASS, NOTRUN]
+
+ [move(dir, name) can be called multiple times]
+ expected:
+ if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN, TIMEOUT]
+ if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]
+
+ [move(dir, name) with a name with invalid characters 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 and (processor == "x86"): [PASS, NOTRUN]
+
+ [move(dir, "") should fail]
+ expected:
+ if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [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 and (processor == "x86"): [PASS, NOTRUN]
+
+ [move(dir, name) to move a directory within itself and rename fails]
+ expected:
+ if (os == "win") and not swgl and not debug and (processor == "x86_64"): [PASS, NOTRUN]
+ if (os == "win") and not swgl and not debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not swgl and debug and (processor == "x86_64"): [PASS, TIMEOUT]
+ if (os == "win") and not swgl and debug and (processor == "x86"): [PASS, NOTRUN]
+
+ [move(dir) to move a directory within a descendent fails]
+ expected:
+ if (os == "win") and not swgl and not debug and (processor == "x86_64"): [PASS, NOTRUN]
+ if (os == "win") and not swgl and not debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not swgl and debug: [PASS, NOTRUN]
+
+ [move(dir, name) to move a directory within a descendent fails]
+ expected:
+ if (os == "win") and not swgl and not debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not swgl and not debug and (processor == "x86_64"): [PASS, NOTRUN, TIMEOUT]
+ if (os == "win") and not swgl and debug: [PASS, NOTRUN]
+
+ [move(dir, name) to rename an empty directory]
+ expected:
+ if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT]
+
+ [move(dir, name) to rename a non-empty directory]
+ expected:
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]
+
+ [move(dir) to move an empty directory to a new directory]
+ expected:
+ 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 and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN]
+
+ [move(name) to rename a non-empty directory]
+ expected:
+ if (processor == "x86") and not debug: [PASS, TIMEOUT]
+
+
+[sandboxed_FileSystemDirectoryHandle-move.https.any.html]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [OK, TIMEOUT]
+ if (os == "win") and not debug and (processor == "x86"): [OK, TIMEOUT]
+ if (os == "win") and not debug and (processor == "x86_64"): [OK, ERROR, TIMEOUT]
+ if (os == "win") and debug and (processor == "x86"): [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"): [FAIL, TIMEOUT, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [FAIL, NOTRUN]
+ if (os == "win") and debug and swgl: [FAIL, TIMEOUT]
+ FAIL
+
+ [move(dir, name) to move a non-empty directory to a new directory]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [FAIL, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [FAIL, TIMEOUT, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [FAIL, NOTRUN]
+ if (os == "win") and debug and (processor == "x86"): [FAIL, TIMEOUT]
+ FAIL
+
+ [move(dir, name) can be called multiple times]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, TIMEOUT, NOTRUN]
+ if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN]
+
+ [move(dir, name) with a name with invalid characters should fail]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN]
+ 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, "") should fail]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]
+
+ [move(dir, name) to move a directory within itself fails]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN]
+ 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 directory within itself and rename fails]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ 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 and (processor == "x86"): [PASS, NOTRUN]
+
+ [move(dir) to move a directory within a descendent fails]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ 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 and (processor == "x86"): [PASS, NOTRUN]
+
+ [move(dir, name) to move a directory within a descendent fails]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN]
+ if (os == "win") and debug and (processor == "x86"): [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, NOTRUN]
+
+ [move(dir) can be called multiple times]
+ expected:
+ if (os == "win") and debug and (processor == "x86_64") and swgl: [PASS, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86"): [PASS, TIMEOUT, NOTRUN]
+ if (os == "win") and not debug and (processor == "x86_64"): [PASS, NOTRUN, TIMEOUT]
+ if (os == "win") and debug and (processor == "x86"): [PASS, NOTRUN]
+
+ [move(dir, name) to move an empty directory to a new directory]
+ expected:
+ if (os == "win") and not debug: [PASS, NOTRUN]
+
+ [move(name) to rename a non-empty directory]
+ expected:
+ if (processor == "x86") and not debug: [PASS, TIMEOUT, NOTRUN]
+
+ [move("") to rename an empty directory fails]
+ expected:
+ if (processor == "x86") and not debug: [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..da55eba38e
--- /dev/null
+++ b/testing/web-platform/meta/file-system-access/showPicker-errors.https.window.js.ini
@@ -0,0 +1,209 @@
+[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