981f34be34349711e2705b4e651ef5a0deb2bbd1
[WebKit-https.git] / LayoutTests / fast / attachment / attachment-progress.html
1 <!DOCTYPE html>
2 <html>
3 <script>
4     if (window.internals)
5         window.internals.settings.setAttachmentElementEnabled(true)
6 </script>
7 <body>
8 <attachment progress="-1.5"></attachment>
9 <attachment progress="0"></attachment>
10 <attachment progress="0.2"></attachment>
11 <attachment progress="0.4"></attachment>
12 <attachment progress="0.6"></attachment>
13 <attachment progress="0.8"></attachment>
14 <attachment progress="1"></attachment>
15 <attachment progress="1.5"></attachment>
16 <script>
17 var file;
18 if (window.internals)
19     file = window.internals.createFile("resources/test-file.txt");
20
21 var attachments = document.getElementsByTagName("attachment");
22 for (var i = 0; i < attachments.length; i++)
23     attachments[i].file = file;
24 </script>
25 </body>
26 </html>