mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 66e7f134c43e83a70edf4028ec4738ddfea28e15
This commit is contained in:
parent
145c3a5502
commit
d23cb97662
97 changed files with 2817 additions and 110 deletions
|
@ -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');
|
Loading…
Add table
Add a link
Reference in a new issue