2 <script src=
"../resources/testharness.js"></script>
3 <script src=
"../resources/testharnessreport.js"></script>
6 function assert_throws_with_message(e
, f
, m
) {
10 assert_equals(exception
.name
, e
);
11 assert_equals(exception
.message
, m
);
16 assert_throws_with_message('InvalidModificationError',
18 document
.documentElement
.animate([
23 "Failed to execute 'animate' on 'Element': Keyframes with specified offsets are not sorted"
26 assert_throws_with_message('InvalidModificationError',
28 document
.documentElement
.animate([
32 "Failed to execute 'animate' on 'Element': Non numeric offset provided"
35 assert_throws_with_message('InvalidModificationError',
37 document
.documentElement
.animate([
41 "Failed to execute 'animate' on 'Element': Offsets provided outside the range [0, 1]"