mirror of
https://github.com/servo/servo.git
synced 2025-10-14 23:40:26 +01:00
Update web-platform-tests to revision e91d7d8c9a1f14438e44000dcd05ce6e658e4ae5
This commit is contained in:
parent
242e7e2630
commit
1a3fdf7a13
567 changed files with 9823 additions and 2333 deletions
|
@ -104,14 +104,20 @@ directory_test(async (t, root) => {
|
|||
directory_test(async (t, root) => {
|
||||
const handle = await createEmptyFile(t, 'contents', root);
|
||||
const stream = await handle.createWritable();
|
||||
assert_false(stream.locked);
|
||||
|
||||
stream.write('abc');
|
||||
assert_false(stream.locked);
|
||||
stream.write('def');
|
||||
assert_false(stream.locked);
|
||||
stream.truncate(9);
|
||||
assert_false(stream.locked);
|
||||
stream.seek(0);
|
||||
assert_false(stream.locked);
|
||||
stream.write('xyz');
|
||||
assert_false(stream.locked);
|
||||
await stream.close();
|
||||
|
||||
assert_equals(await getFileContents(handle), 'xyzdef\0\0\0');
|
||||
assert_equals(await getFileSize(handle), 9);
|
||||
}, 'commands are queued');
|
||||
}, 'commands are queued, stream is unlocked after each operation');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue