progress-2.html (1262B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Progress Element Tests</title> 5 <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com" /> 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-progress-element" /> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 </head> 11 <body> 12 <div id="log"></div> 13 <progress id="p00" style="display: none"></progress> 14 <progress id="p01" max="5.5" value=".5" style="display: none"></progress> 15 <script> 16 test(function () { 17 assert_equals(document.getElementById('p00').position, -1); 18 }, "progress position equals -1"); 19 20 test(function () { 21 assert_equals(document.getElementById('p00').value, 0); 22 }, "progress value equals 0"); 23 24 test(function () { 25 assert_equals(document.getElementById('p01').value, .5); 26 }, "progress value equals .5"); 27 28 test(function () { 29 document.getElementById('p00').value = document.getElementById('p00').value; 30 assert_equals(document.getElementById('p00').position, 0); 31 }, "progress position equals 0"); 32 </script> 33 </body> 34 </html>