Source code

Revision control

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML Test: marquee-scrolldelay</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<marquee id="test1" scrolldelay="aa">Test1</marquee>
<marquee id="test2" scrolldelay="-1">Test2</marquee>
<marquee id="test3" scrolldelay="1">Test3</marquee>
<marquee id="test4" scrolldelay="100">Test4</marquee>
<script>
test(function() {
var mq = document.getElementById("test1");
assert_equals(mq.scrollDelay, 85, "The delay time should be 85ms.");
}, "The scrolldelay attribute is a string");
test(function() {
var mq = document.getElementById("test2");
assert_equals(mq.scrollDelay, 85, "The delay time should be 85ms.");
}, "The scrolldelay attribute is a negative");
test(function() {
var mq = document.getElementById("test3");
assert_equals(mq.scrollDelay, 1,
"The delay time should be 1ms (although this doesn't " +
"match rendering).");
}, "The scrolldelay attribute is less than 60");
test(function() {
var mq = document.getElementById("test4");
assert_equals(mq.scrollDelay, 100, "The delay time should be 100ms.");
}, "The scrolldelay attribute is greater than 60");
</script>