https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1d41dd1610a2dc69e5febf50e5574848ef2173ca authored by James Graham on 14 March 2018, 15:05:06 UTC
Exit wptrunner with an error status if no tests ran
Tip revision: 1d41dd1
filesystemdirectoryentry-createReader-manual.html
<!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>
back to top