mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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,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');
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue