14 lines
341 B
HTML
14 lines
341 B
HTML
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] -->
|
|
<html>
|
|
<body>
|
|
<attachment id="attachment" subtitle="1024 bytes"></attachment>
|
|
<script>
|
|
var file;
|
|
if (window.internals)
|
|
file = window.internals.createFile("resources/test-file.txt");
|
|
|
|
document.getElementById("attachment").file = file;
|
|
</script>
|
|
</body>
|
|
</html>
|