Index: LayoutTests/presentation/presentation-api.html |
diff --git a/LayoutTests/presentation/presentation-api.html b/LayoutTests/presentation/presentation-api.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..79765b0ad56f08b18ca7f2ba4d7dcbb54b98aa42 |
--- /dev/null |
+++ b/LayoutTests/presentation/presentation-api.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script> |
+ |
+test(function() { |
+ assert_true('presentation' in navigator); |
+ assert_true('onavailablechange' in navigator.presentation); |
+}, "Test that the Presentation API is present.") |
+ |
+test(function() { |
+ assert_equals(typeof(navigator.presentation), "object"); |
+ assert_equals(typeof(navigator.presentation.onavailablechange), "object"); |
+}, "Test the Presentation API property types."); |
+ |
+test(function() { |
+ assert_true('addEventListener' in navigator.presentation); |
+ assert_true('removeEventListener' in navigator.presentation); |
+ assert_true('dispatchEvent' in navigator.presentation); |
+ 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.
|
+}, "Test that navigator.presentation is an EventTarget."); |
+ |
+</script> |
+</body> |
+</html> |
+ |