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