From 4e73cb1fa35d15b51e0eb807ad6169fc7d6d177c Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Fri, 4 Oct 2019 14:57:48 +0000 Subject: [PATCH] Bug 1564758 [wpt PR 17654] - [Native File System] Remove remove and removeRecursively operations, a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests [Native File System] Remove remove and removeRecursively operations These operations are no longer part of the spec. This CL removes their implementation. Bug: 968553 Change-Id: If2600a55bd724bf2fee537b36a3bece8fd5c1313 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1680173 Commit-Queue: Eero Häkkinen Reviewed-by: Marijn Kruisselbrink Reviewed-by: Chris Palmer Cr-Commit-Position: refs/heads/master{#674922} -- wpt-commits: 8327a0378e5cbd6f31db6511bd2f4707ca2b1c20 wpt-pr: 17654 UltraBlame original commit: 64879d77d7aa3d72baed210b5930923e1761f63c --- ...ystemBaseHandle-remove.tentative.window.js | 427 ------------------ 1 file changed, 427 deletions(-) diff --git a/testing/web-platform/tests/native-file-system/FileSystemBaseHandle-remove.tentative.window.js b/testing/web-platform/tests/native-file-system/FileSystemBaseHandle-remove.tentative.window.js index bdd3a1ba85074..bc21d664d0b0e 100644 --- a/testing/web-platform/tests/native-file-system/FileSystemBaseHandle-remove.tentative.window.js +++ b/testing/web-platform/tests/native-file-system/FileSystemBaseHandle-remove.tentative.window.js @@ -37,433 +37,6 @@ t > { 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 -( -) -; -assert_array_equals -( -await -getSortedDirectoryEntries -( -dir -) -[ -' -file -- -to -- -keep -' -] -) -; -await -promise_rejects -( -t -' -NotFoundError -' -getFileContents -( -handle -) -) -; -} -' -remove -( -) -to -remove -a -file -' -) -; -promise_test -( -async -t -= -> -{ -const -handle -= -await -createFileWithContents -( -t -' -file -- -to -- -remove -' -' -12345 -' -) -; -await -handle -. -remove -( -) -; -await -promise_rejects -( -t -' -NotFoundError -' -handle -. -remove -( -) -) -; -} -' -remove -( -) -on -an -already -removed -file -should -fail -' -) -; -promise_test -( -async -t -= -> -{ -const -root -= -await -FileSystemDirectoryHandle -. -getSystemDirectory -( -{ -type -: -' -sandbox -' -} -) -; -const -dir -= -await -root -. -getDirectory -( -' -dir -- -to -- -remove -' -{ -create -: -true -} -) -; -await -createFileWithContents -( -t -' -file -- -to -- -keep -' -' -abc -' -) -; -await -dir -. -remove -( -) -; -assert_array_equals -( -await -getSortedDirectoryEntries -( -root -) -[ -' -file -- -to -- -keep -' -] -) -; -await -promise_rejects -( -t -' -NotFoundError -' -getSortedDirectoryEntries -( -dir -) -) -; -} -' -remove -( -) -to -remove -an -empty -directory -' -) -; -promise_test -( -async -t -= -> -{ -const -root -= -await -FileSystemDirectoryHandle -. -getSystemDirectory -( -{ -type -: -' -sandbox -' -} -) -; -const -dir -= -await -root -. -getDirectory -( -' -dir -- -to -- -remove -' -{ -create -: -true -} -) -; -t -. -add_cleanup -( -( -) -= -> -dir -. -removeRecursively -( -) -) -; -await -createEmptyFile -( -t -' -file -- -in -- -dir -' -dir -) -; -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 -' -) -; -promise_test -( -async -t -= -> -{ -const root = await