summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/webappapis/animation-frames/cancel-invoked.html
blob: d075c0fdac1abdcd0c48e5f3841c646bfcdd2c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
  <head>
    <title>cancelAnimationFrame does nothing</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <link rel="help" href="https://w3c.github.io/web-performance/specs/RequestAnimationFrame/Overview.html#dom-windowanimationtiming-cancelanimationframe"/>
  </head>
  <body>
    <div id="log"></div>
    <script>
      test(function (t) {
        window.cancelAnimationFrame(42);
        assert_true(true);
      }, "cancelAnimationFrame does nothing if there is no callback with the given handle");
    </script>
  </body>
</html>