aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/native-file-system/script-tests/FileSystemFileHandle-getFile.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/native-file-system/script-tests/FileSystemFileHandle-getFile.js')
-rw-r--r--tests/wpt/web-platform-tests/native-file-system/script-tests/FileSystemFileHandle-getFile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/native-file-system/script-tests/FileSystemFileHandle-getFile.js b/tests/wpt/web-platform-tests/native-file-system/script-tests/FileSystemFileHandle-getFile.js
index 6b7d9f9a317..80593418bb1 100644
--- a/tests/wpt/web-platform-tests/native-file-system/script-tests/FileSystemFileHandle-getFile.js
+++ b/tests/wpt/web-platform-tests/native-file-system/script-tests/FileSystemFileHandle-getFile.js
@@ -20,8 +20,8 @@ directory_test(async (t, root) => {
});
await timeout;
- const writer = await handle.createWriter({keepExistingData: false});
- await writer.write(0, new Blob(['foo']));
+ const writer = await handle.createWritable({keepExistingData: false});
+ await writer.write(new Blob(['foo']));
await writer.close();
file = await handle.getFile();