| |
| PASS getDirectoryHandle(create=false) rejects for non-existing directories |
| FAIL getDirectoryHandle(create=true) creates an empty directory promise_test: Unhandled rejection with value: object "TypeError: undefined is not a function (near '...entry of handle...')" |
| PASS getDirectoryHandle(create=false) returns existing directories |
| PASS getDirectoryHandle(create=true) returns existing directories without erasing |
| FAIL getDirectoryHandle() when a file already exists with the same name promise_rejects_dom: function "function () { throw e }" threw object "TypeError: Type error" that is not a DOMException TypeMismatchError: property "code" is equal to undefined, expected 17 |
| FAIL getDirectoryHandle() with empty name assert_unreached: Should have rejected: undefined Reached unreachable code |
| FAIL getDirectoryHandle() with "." name promise_rejects_js: function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { |
| [native code] |
| }" ("TypeError") |
| FAIL getDirectoryHandle() with ".." name promise_rejects_js: function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { |
| [native code] |
| }" ("TypeError") |
| FAIL getDirectoryHandle(create=false) with a path separator when the directory exists promise_rejects_js: getDirectoryHandle() must reject names containing "/" function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { |
| [native code] |
| }" ("TypeError") |
| FAIL getDirectoryHandle(create=true) with a path separator promise_rejects_js: getDirectoryHandle(true) must reject names containing "/" function "function () { throw e }" threw object "UnknownError: Name is invalid" ("UnknownError") expected instance of function "function TypeError() { |
| [native code] |
| }" ("TypeError") |
| |