| Index: third_party/WebKit/LayoutTests/ballista/share-error.html
|
| diff --git a/third_party/WebKit/LayoutTests/ballista/share-error.html b/third_party/WebKit/LayoutTests/ballista/share-error.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..328dc3f964c46b8f0eba2845c5459a96d9465fc0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/ballista/share-error.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../resources/js-test.js"></script>
|
| +<script src="../resources/mojo-helpers.js"></script>
|
| +<script src="resources/mock-ballista-service.js"></script>
|
| +<script>
|
| +description('Test navigator.actions.share with a browser-side error.');
|
| +
|
| +if (!window.testRunner)
|
| + debug('This test cannot be run without the TestRunner');
|
| +
|
| +// Clean-up any unused objects from previous tests.
|
| +gc();
|
| +jsTestIsAsync = true;
|
| +testRunner.waitUntilDone();
|
| +
|
| +debug('page is visible');
|
| +mockBallistaServiceReady.then(() => {
|
| + navigator.actions.share('the title', 'the message').then(shareSuccess, shareFailure);
|
| + pushMockBallistaServiceResult('the title', 'the message', 'error from browser');
|
| +});
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|