Update web-platform-tests to revision e710d1d6bbe007a6a9344f79e17b445cf97cc623

This commit is contained in:
WPT Sync Bot 2019-10-09 10:23:00 +00:00
parent ec408e9a57
commit 5a5336aaf0
1981 changed files with 64719 additions and 2377 deletions

View file

@ -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');