testing/web-platform/tests/html/obsolete/requirements-for-implementations/the-marquee-element-0/marquee-loop.html
author Cristian Tuns <ctuns@mozilla.com>
Thu, 26 May 2022 00:25:00 -0400
changeset 618916 e7aef329a267c324e972b46f50dcea1d7a5bd956
parent 216659 f642698590301f923237de6d2479429096b61edd
permissions -rw-r--r--
Backed out changeset b1345ce6dcd3 (bug 1685375) for causing xpcshell failures on test_crash_backgroundtask_moz_crash.js,nsX11ErrorHandler.cpp CLOSED TREE

<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML Test: marquee-loop</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<link rel="help" href="https://html.spec.whatwg.org/multipage/multipage/obsolete.html#the-marquee-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<marquee id="test1" loop="a">Test1</marquee>
<marquee id="test2" loop="-2">Test2</marquee>
<marquee id="test3" loop="2">Test3</marquee>
<script>
  test(function() {
    var mq = document.getElementById("test1");
    assert_equals(mq.loop, -1, "The value of loop should be -1.");
  }, "marquee_loop_string");

  test(function() {
    var mq = document.getElementById("test2");
    assert_equals(mq.loop, -1, "The value of loop should be -1.");
  }, "marquee_loop_less_than_1");

  test(function() {
    var mq = document.getElementById("test3");
    assert_equals(mq.loop, 2, "The value of loop should be 2.");
  }, "marquee_loop_normal");
</script>