Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / presentation / presentation-api.html
blob96cfd41e50d75232998b915d6af55a37a3bd4b56
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <script>
8 test(function() {
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.")
16 test(function() {
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.");
22 test(function() {
23 assert_true(navigator.presentation instanceof EventTarget);
24 }, "Test that navigator.presentation is an EventTarget.");
26 test(function() {
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.");
36 </script>
37 </body>
38 </html>