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,19 @@
// META: title=Synchronous NativeIO API: File deletion is reflected in listing.
// META: global=!default,dedicatedworker
'use strict';
test(testCase => {
const file = nativeIO.openSync('test_file');
testCase.add_cleanup(() => {
nativeIO.deleteSync('test_file');
});
file.close();
const fileNamesBeforeDelete = nativeIO.getAllSync();
assert_in_array('test_file', fileNamesBeforeDelete);
nativeIO.deleteSync('test_file');
const fileNames = nativeIO.getAllSync();
assert_equals(fileNames.indexOf('test_file'), -1);
}, 'nativeIO.getAllSync does not return file deleted by nativeIO.deleteSync');