summaryrefslogtreecommitdiffstats
path: root/dom/animation/test/mozilla/file_disable_animations_api_get_animations.html
blob: 3d484444a79e6f9d8376181562bc614f92657516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<meta charset=utf-8>
<script src="../testcommon.js"></script>
<body>
<script>
'use strict';

test(t => {
  assert_false('getAnimations' in addDiv(t));
}, 'Element.getAnimations() is not available when getAnimations pref is'
    + ' disabled');

test(t => {
  assert_false('getAnimations' in document);
}, 'Document.getAnimations() is not available when getAnimations pref is'
    + ' disabled');

done();
</script>
</body>