mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3
This commit is contained in:
parent
6f8bb4dd40
commit
edff458e23
791 changed files with 17647 additions and 10322 deletions
|
@ -3,8 +3,8 @@ promise_test(async t => cleanupSandboxedFileSystem(),
|
|||
'Cleanup to setup test environment');
|
||||
|
||||
promise_test(async t => {
|
||||
const handle = await createFileWithContents(t, 'file-to-remove', '12345');
|
||||
const dir = await handle.getParent();
|
||||
const dir = await FileSystemDirectoryHandle.getSystemDirectory({ type: 'sandbox' });
|
||||
const handle = await createFileWithContents(t, 'file-to-remove', '12345', dir);
|
||||
await createFileWithContents(t, 'file-to-keep', 'abc');
|
||||
await handle.remove();
|
||||
|
||||
|
@ -38,4 +38,4 @@ promise_test(async t => {
|
|||
await promise_rejects(t, 'InvalidModificationError', dir.remove());
|
||||
assert_array_equals(await getSortedDirectoryEntries(root), ['dir-to-remove/']);
|
||||
assert_array_equals(await getSortedDirectoryEntries(dir), ['file-in-dir']);
|
||||
}, 'remove() on a non-empty directory should fail');
|
||||
}, 'remove() on a non-empty directory should fail');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue