aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/fs/script-tests/FileSystemFileHandle-getFile.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/fs/script-tests/FileSystemFileHandle-getFile.js')
-rw-r--r--tests/wpt/web-platform-tests/fs/script-tests/FileSystemFileHandle-getFile.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/fs/script-tests/FileSystemFileHandle-getFile.js b/tests/wpt/web-platform-tests/fs/script-tests/FileSystemFileHandle-getFile.js
index 4c9208332f2..330b790edc6 100644
--- a/tests/wpt/web-platform-tests/fs/script-tests/FileSystemFileHandle-getFile.js
+++ b/tests/wpt/web-platform-tests/fs/script-tests/FileSystemFileHandle-getFile.js
@@ -40,3 +40,13 @@ directory_test(async (t, root) => {
assert_less_than(first_mtime, second_mtime);
}, 'getFile() returns last modified time');
+
+directory_test(async (t, root) => {
+ const fileName = "fileAttributesTest.txt";
+
+ const fileHandle = await createEmptyFile(t, fileName, root);
+ assert_equals(fileHandle.name, fileName);
+
+ const file = await fileHandle.getFile();
+ assert_equals(file.name, fileName);
+}, 'getFile() returns expected name');