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

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

Issue 408663002: Add the Presentation API module and a single event target (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Marked the feature as tests only Created 6 years, 3 months 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script>
6 <script>
7
8 test(function() {
9 assert_true('presentation' in navigator);
10 assert_true('onavailablechange' in navigator.presentation);
11 }, "Test that the Presentation API is present.")
12
13 test(function() {
14 assert_equals(typeof(navigator.presentation), "object");
15 assert_equals(typeof(navigator.presentation.onavailablechange), "object");
16 }, "Test the Presentation API property types.");
17
18 test(function() {
19 assert_true('addEventListener' in navigator.presentation);
20 assert_true('removeEventListener' in navigator.presentation);
21 assert_true('dispatchEvent' in navigator.presentation);
22 assert_true(navigator.presentation instanceof EventTarget)
Peter Beverloo 2014/09/12 12:22:09 I still think we only have to keep the assert from
whywhat 2014/09/12 15:01:14 Done.
23 }, "Test that navigator.presentation is an EventTarget.");
24
25 </script>
26 </body>
27 </html>
28
OLDNEW
« no previous file with comments | « no previous file | Source/core/events/EventTypeNames.in » ('j') | Source/modules/presentation/NavigatorPresentation.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698