4 <script src=
"../resources/testharness.js"></script>
5 <script src=
"../resources/testharnessreport.js"></script>
9 assert_true('presentation' in navigator
);
10 assert_true('defaultRequest' in navigator
.presentation
);
11 assert_true('session' in navigator
.presentation
);
13 assert_true('PresentationRequest' in window
);
14 }, "Test that the Presentation API is present.")
17 assert_equals(typeof(navigator
.presentation
), "object");
18 assert_equals(typeof(navigator
.presentation
.defaultRequest
), "object");
19 assert_equals(typeof(navigator
.presentation
.session
), "object");
20 }, "Test the Presentation API property types.");
23 assert_true(navigator
.presentation
instanceof EventTarget
);
24 }, "Test that navigator.presentation is an EventTarget.");
27 var request
= new PresentationRequest('foo.html');
28 assert_equals(typeof(request
.start
), "function");
29 assert_equals(typeof(request
.reconnect
), "function");
30 assert_equals(typeof(request
.getAvailability
), "function");
31 assert_equals(typeof(request
.onsessionconnect
), "object");
33 assert_true(request
instanceof EventTarget
);
34 }, "Test PresentationRequest API types.");