Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/forms/the-progress-element/progress-2.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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').va lue;
30 assert_equals(document.getElementById('p00').position, 0);
31 }, "progress position equals 0");
32 </script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698