Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: LayoutTests/presentation/presentation-api.html

Issue 685263003: The rest of the Presentation API IDL as stubs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added OWNERS file for real Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../resources/testharness.js"></script> 4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script> 5 <script src="../resources/testharnessreport.js"></script>
6 <script> 6 <script>
7 7
8 test(function() { 8 test(function() {
9 assert_true('presentation' in navigator); 9 assert_true('presentation' in navigator);
10 assert_true('session' in navigator.presentation);
11 assert_true('startSession' in navigator.presentation);
12 assert_true('joinSession' in navigator.presentation);
10 assert_true('onavailablechange' in navigator.presentation); 13 assert_true('onavailablechange' in navigator.presentation);
11 }, "Test that the Presentation API is present.") 14 }, "Test that the Presentation API is present.")
12 15
13 test(function() { 16 test(function() {
14 assert_equals(typeof(navigator.presentation), "object"); 17 assert_equals(typeof(navigator.presentation), "object");
18 assert_equals(typeof(navigator.presentation.session), "object");
19 assert_equals(typeof(navigator.presentation.startSession), "function");
20 assert_equals(typeof(navigator.presentation.joinSession), "function");
15 assert_equals(typeof(navigator.presentation.onavailablechange), "object"); 21 assert_equals(typeof(navigator.presentation.onavailablechange), "object");
16 }, "Test the Presentation API property types."); 22 }, "Test the Presentation API property types.");
17 23
18 test(function() { 24 test(function() {
19 assert_true(navigator.presentation instanceof EventTarget); 25 assert_true(navigator.presentation instanceof EventTarget);
20 }, "Test that navigator.presentation is an EventTarget."); 26 }, "Test that navigator.presentation is an EventTarget.");
21 27
22 </script> 28 </script>
23 </body> 29 </body>
24 </html> 30 </html>
25 31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698