4 <script src="../../resources/js-test.js"></script>
8 description("Verify that VTTCue exceptions are properly messaged to developers.");
10 var cue = new VTTCue(0, 0, "Test.");
12 function testPercentage(property) {
13 shouldThrow("cue." + property + " = -1;");
14 shouldThrow("cue." + property + " = 101;");
17 cue.snapToLines = false;
18 testPercentage("line");
20 testPercentage("position");
21 testPercentage("size");