Files
tubestation/testing/web-platform/tests/FileAPI/idlharness-manual.html
moz-wptsync-bot 401bb9e0dd Bug 1664225 - [wpt-sync] Update web-platform-tests to 55e3f8d27d6be17fa75bebe426c39cc51b3b26d4, a=testonly, r=karlcow
A bug in the wptsync caused us to miss some pushes during recent
updates. This commit copies the head of wpt at the specified revision
over and re-applies local patches that weren't in that revision. That
means we should be able to resume normal syncs after fixing the bug.

wpt-head: 55e3f8d27d6be17fa75bebe426c39cc51b3b26d4
wpt-type: landing

Differential Revision: https://phabricator.services.mozilla.com/D90823
2020-09-21 12:53:13 +00:00

46 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>File API manual IDL tests</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="http://dev.w3.org/2006/webapi/FileAPI/#conformance">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>File API manual IDL tests</h1>
<p>Either download <a href="support/upload.txt">upload.txt</a> and select it below or select an
arbitrary local file.</p>
<form name="uploadData">
<input type="file" id="fileChooser">
</form>
<div id="log"></div>
<script>
const fileInput = document.querySelector("#fileChooser");
setup({explicit_timeout: true});
idl_test(
['FileAPI'],
['dom', 'html', 'url'],
async idl_array => {
await new Promise(resolve => {
on_event(fileInput, "change", resolve);
});
idl_array.add_objects({
FileList: [fileInput.files],
File: [fileInput.files[0]],
});
}
);
</script>
</body>
</html>