mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision e710d1d6bbe007a6a9344f79e17b445cf97cc623
This commit is contained in:
parent
ec408e9a57
commit
5a5336aaf0
1981 changed files with 64719 additions and 2377 deletions
|
@ -0,0 +1,8 @@
|
|||
directory_test(async (t, root) => {
|
||||
const fileContents = 'awesome content';
|
||||
let handle = await createFileWithContents(t, 'foo.txt', fileContents, /*parent=*/ root);
|
||||
let file = await handle.getFile();
|
||||
let slice = file.slice(1, file.size);
|
||||
let actualContents = await slice.text();
|
||||
assert_equals(actualContents, fileContents.slice(1, fileContents.length));
|
||||
}, 'getFile() provides a file that can be sliced');
|
Loading…
Add table
Add a link
Reference in a new issue