OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>HTML Test: marquee-loop</title> |
| 4 <link rel="author" title="Intel" href="http://www.intel.com/"> |
| 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/multipage/obsolete
.html#the-marquee-element"> |
| 6 <script src="../../../../../../resources/testharness.js"></script> |
| 7 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 8 <div id="log"></div> |
| 9 <marquee id="test1" loop="a">Test1</marquee> |
| 10 <marquee id="test2" loop="-2">Test2</marquee> |
| 11 <marquee id="test3" loop="2">Test3</marquee> |
| 12 <script> |
| 13 test(function() { |
| 14 var mq = document.getElementById("test1"); |
| 15 assert_equals(mq.loop, -1, "The value of loop should be -1."); |
| 16 }, "marquee_loop_string"); |
| 17 |
| 18 test(function() { |
| 19 var mq = document.getElementById("test2"); |
| 20 assert_equals(mq.loop, -1, "The value of loop should be -1."); |
| 21 }, "marquee_loop_less_than_1"); |
| 22 |
| 23 test(function() { |
| 24 var mq = document.getElementById("test3"); |
| 25 assert_equals(mq.loop, 2, "The value of loop should be 2."); |
| 26 }, "marquee_loop_normal"); |
| 27 </script> |
OLD | NEW |