blob: dd7d029fb0d3fbfae4ceea20b0b1ed8565794a71 [file] [log] [blame]
// META: title=Synchronous NativeIO API: File creation is reflected in listing.
// META: global=dedicatedworker
'use strict';
test(testCase => {
const file = storageFoundation.openSync('test_file');
testCase.add_cleanup(() => {
storageFoundation.deleteSync('test_file');
});
file.close();
const fileNames = storageFoundation.getAllSync();
assert_in_array('test_file', fileNames);
}, 'storageFoundation.getAllSync returns file created by' +
' storageFoundation.openSync');