blob: 9f2431b87e05c03f574e904906d097881622c052 [file] [log] [blame]
Joshua Bell2f76ef22017-10-11 16:22:231<!DOCTYPE html>
2<meta charset=utf-8>
3<title>Entries API: FileSystemEntry attributes manual test</title>
4<link rel=help href="https://wicg.github.io/entries-api/#api-entry">
5<script src="/resources/testharness.js"></script>
6<script src="/resources/testharnessreport.js"></script>
7<script src="support.js"></script>
8
9<script>
10entry_test((t, entry) => {
11 assert_idl_attribute(entry, 'isFile', 'FileSystemEntry has isFile attribute');
12 assert_equals(typeof entry.isFile, 'boolean', 'isFile is boolean');
13
14 assert_idl_attribute(entry, 'isDirectory', 'FileSystemEntry has isDirectory attribute');
15 assert_equals(typeof entry.isDirectory, 'boolean', 'isFile is boolean');
16
17 assert_idl_attribute(entry, 'name', 'FileSystemEntry has name attribute');
18 assert_equals(typeof entry.name, 'string', 'name is a string');
19
20 assert_idl_attribute(entry, 'fullPath', 'FileSystemEntry has fullPath attribute');
21 assert_equals(typeof entry.fullPath, 'string', 'fullPath is a string');
22
23 assert_idl_attribute(entry, 'filesystem', 'FileSystemEntry has filesystem attribute');
24 assert_equals(typeof entry.filesystem, 'object', 'filesystem is an object');
25
26 t.done();
27}, 'FileSystemEntry - attribute types');
28
29</script>