blob: 0487ef5e2f2f2908b82d78994ba2675cf9e1c2df [file] [edit]
// META: title=NativeIO API: File creation is reflected in listing.
// META: global=window,worker
'use strict';
promise_test(async testCase => {
const file = await nativeIO.open('test_file');
testCase.add_cleanup(async () => {
await nativeIO.delete('test_file');
});
await file.close();
const fileNames = await nativeIO.getAll();
assert_in_array('test_file', fileNames);
}, 'nativeIO.getAll returns file created by nativeIO.open');