Index: LayoutTests/http/tests/push_messaging/pushmessagedata.html |
diff --git a/LayoutTests/http/tests/push_messaging/pushmessagedata.html b/LayoutTests/http/tests/push_messaging/pushmessagedata.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a9cf5b5f3e3e1bc36ae8bd0862469e5f2d55e1f0 |
--- /dev/null |
+++ b/LayoutTests/http/tests/push_messaging/pushmessagedata.html |
@@ -0,0 +1,19 @@ |
+<!doctype html> |
+<html> |
+ <head> |
+ <title>Push API: PushMessageData initialization and accessor behaviour.</title> |
+ <script src="../resources/testharness.js"></script> |
+ <script src="../resources/testharnessreport.js"></script> |
+ <script src="../serviceworker/resources/test-helpers.js"></script> |
+ </head> |
+ <body> |
+ <script> |
+ // Tests that the PushMessageData object exists, can be initialized using |
+ // a string or an ArrayBuffer(View) through the PushEvent and returns the |
+ // expected values through its various accessors. |
+ service_worker_test( |
+ 'resources/pushmessagedata-worker.js', |
+ 'PushMessageData initialization and accessor behaviour in a ServiceWorker.'); |
+ </script> |
+ </body> |
+</html> |