Index: third_party/WebKit/LayoutTests/webshare/share-error.html |
diff --git a/third_party/WebKit/LayoutTests/webshare/share-error.html b/third_party/WebKit/LayoutTests/webshare/share-error.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..edade47c025f8e19ba4b288fe843389594af5c97 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/webshare/share-error.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="../resources/mojo-helpers.js"></script> |
+<script src="resources/mock-share-service.js"></script> |
+<script> |
+ |
+share_test((t, mock) => { |
+ mock.pushShareResult('the title', 'the message', 'error from browser'); |
+ return promise_rejects( |
+ t, new DOMException('error from browser', 'AbortError'), |
+ navigator.share('the title', 'the message')); |
+}, 'share with browser-side error'); |
+ |
+</script> |