| Index: LayoutTests/push_messaging/push-messaging.html
|
| diff --git a/LayoutTests/push_messaging/push-messaging.html b/LayoutTests/push_messaging/push-messaging.html
|
| deleted file mode 100644
|
| index cc58cc378ee822cc85cbbd84aa6152e5edd26859..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/push_messaging/push-messaging.html
|
| +++ /dev/null
|
| @@ -1,54 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| -<script src="../resources/js-test.js"></script>
|
| -</head>
|
| -<body>
|
| -<script>
|
| -description('Tests for the Push API.');
|
| -
|
| -if (!window.testRunner)
|
| - debug('This test can not run without testRunner');
|
| -
|
| -window.jsTestIsAsync = true;
|
| -
|
| -function testPushRegistrationError() {
|
| - window.testRunner.setMockPushClientError('message');
|
| - navigator.push.register().then(function() {
|
| - testFailed('Success callback invoked unexpectedly.');
|
| - testPushRegistrationSuccess();
|
| - }, function(e) {
|
| - error = e;
|
| - shouldBeEqualToString('error.name', 'AbortError');
|
| - testPushRegistrationSuccess();
|
| - });
|
| -}
|
| -testPushRegistrationError();
|
| -
|
| -function testPushRegistrationSuccess() {
|
| - window.testRunner.setMockPushClientSuccess('endpoint', 'registrationId');
|
| - navigator.push.register().then(function(reg) {
|
| - registration = reg;
|
| - shouldBeEqualToString('registration.pushEndpoint', 'endpoint');
|
| - shouldBeEqualToString('registration.pushRegistrationId', 'registrationId');
|
| - testPushHasPermission();
|
| - }, function(e) {
|
| - testFailed('Error callback invoked unexpectedly.');
|
| - finishJSTest();
|
| - });
|
| -}
|
| -
|
| -function testPushHasPermission() {
|
| - navigator.push.hasPermission().then(function(permissionStatus) {
|
| - status = permissionStatus;
|
| - shouldBeEqualToString('status', 'granted');
|
| - finishJSTest();
|
| - }, function() {
|
| - testFailed('Error callback invoked unexpectedly.');
|
| - finishJSTest();
|
| - });
|
| -}
|
| -
|
| -</script>
|
| -</body>
|
| -</html>
|
|
|