30 consoleWrite("** Caption button should be visible and enabled because we have a captions track.");
31 testExpected("captionsButtonCoordinates[0]", 0, ">");
32 testExpected("captionsButtonCoordinates[1]", 0, ">");
33 testExpected("captionsButtonElement.disabled", false);
42 if (expected == true) {
43 consoleWrite("** Caption button should be visible and enabled because we have a captions track.");
44 testExpected("captionsButtonCoordinates[0]", 0, ">");
45 testExpected("captionsButtonCoordinates[1]", 0, ">");
46 testExpected("captionsButtonElement.disabled", false);
47 } else {
48 consoleWrite("** Caption button should not be visible as there are no captions track.");
49 testExpected("captionsButtonCoordinates[0]", 0, "<=");
50 testExpected("captionsButtonCoordinates[1]", 0, "<=");
51 }
52 }
53
54 function startTest()
55 {
56 if (!window.eventSender) {
57 consoleWrite("No eventSender found.");
58 failTest();
59 }
60
61 findMediaElement();
62 testClosedCaptionsButtonVisibility(true);