OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>HTML Test: marquee-scrolldelay</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" scrolldelay="aa">Test1</marquee> |
| 10 <marquee id="test2" scrolldelay="-1">Test2</marquee> |
| 11 <marquee id="test3" scrolldelay="1">Test3</marquee> |
| 12 <marquee id="test4" scrolldelay="100">Test4</marquee> |
| 13 <script> |
| 14 test(function() { |
| 15 var mq = document.getElementById("test1"); |
| 16 assert_equals(mq.scrollDelay, 85, "The delay time should be 85ms."); |
| 17 }, "The scrolldelay attribute is a string"); |
| 18 |
| 19 test(function() { |
| 20 var mq = document.getElementById("test2"); |
| 21 assert_equals(mq.scrollDelay, 85, "The delay time should be 85ms."); |
| 22 }, "The scrolldelay attribute is a negative"); |
| 23 |
| 24 test(function() { |
| 25 var mq = document.getElementById("test3"); |
| 26 assert_equals(mq.scrollDelay, 60, "The delay time should be 60ms."); |
| 27 }, "The scrolldelay attribute is less than 60"); |
| 28 |
| 29 test(function() { |
| 30 var mq = document.getElementById("test4"); |
| 31 assert_equals(mq.scrollDelay, 100, "The delay time should be 100ms."); |
| 32 }, "The scrolldelay attribute is greater than 60"); |
| 33 </script> |
OLD | NEW |