Update web-platform-tests to revision 66e7f134c43e83a70edf4028ec4738ddfea28e15

This commit is contained in:
WPT Sync Bot 2020-03-26 08:19:21 +00:00
parent 145c3a5502
commit d23cb97662
97 changed files with 2817 additions and 110 deletions

View file

@ -0,0 +1,20 @@
// META: title=NativeIO API: File deletion 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 fileNamesBeforeDelete = await nativeIO.getAll();
assert_in_array('test_file', fileNamesBeforeDelete);
await nativeIO.delete('test_file');
const fileNames = await nativeIO.getAll();
assert_equals(fileNames.indexOf('test_file'), -1);
}, 'nativeIO.getAll does not return file deleted by nativeIO.delete');