Revision 8ba8d81fc0a97e9f5332a23d532ee9b40cf3104b authored by moz-wptsync-bot on 11 January 2018, 16:11:49 UTC, committed by moz-wptsync-bot on 11 January 2018, 16:11:49 UTC
bugzilla-url: https://bugzilla-dev.allizom.org/show_bug.cgi?id=1420672
gecko-commit: 976d54360e53438f9f7029b636b4585ee974f891
gecko-integration-branch: central
gecko-reviewers: bkelly
1 parent b5b0297
Raw File
filesystementry-attributes-manual.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Entries API: FileSystemEntry attributes manual test</title>
<link rel=help href="https://wicg.github.io/entries-api/#api-entry">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>

<script>
entry_test((t, entry) => {
  assert_idl_attribute(entry, 'isFile', 'FileSystemEntry has isFile attribute');
  assert_equals(typeof entry.isFile, 'boolean', 'isFile is boolean');

  assert_idl_attribute(entry, 'isDirectory', 'FileSystemEntry has isDirectory attribute');
  assert_equals(typeof entry.isDirectory, 'boolean', 'isFile is boolean');

  assert_idl_attribute(entry, 'name', 'FileSystemEntry has name attribute');
  assert_equals(typeof entry.name, 'string', 'name is a string');

  assert_idl_attribute(entry, 'fullPath', 'FileSystemEntry has fullPath attribute');
  assert_equals(typeof entry.fullPath, 'string', 'fullPath is a string');

  assert_idl_attribute(entry, 'filesystem', 'FileSystemEntry has filesystem attribute');
  assert_equals(typeof entry.filesystem, 'object', 'filesystem is an object');

  t.done();
}, 'FileSystemEntry - attribute types');

</script>
back to top