summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/entries-api/filesystemdirectoryentry-createReader-manual.html
blob: f9369c6f74eb217c170b14c539b569d435d381a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<meta charset=utf-8>
<title>Entries API: FileSystemDirectoryEntry createReader() manual test</title>
<link rel=help href="https://wicg.github.io/entries-api/#api-directoryentry">
<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, 'createReader', 'FileSystemDirectoryEntry has createReader');
  assert_equals(typeof entry.createReader, 'function', 'createReader() is a method');

  t.done();
}, 'FileSystemDirectoryEntry - createReader()');

entry_test((t, entry) => {
  assert_not_equals(entry.createReader(), entry.createReader(),
                    'createReader() returns a new object each time');
  t.done();
}, 'FileSystemDirectoryEntry - createReader() distinct objects');
</script>