Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Unified Diff: third_party/WebKit/LayoutTests/webshare/share-types.html

Issue 2703333002: Web Share: Refactor Mojo interface to now return an enum error. (Closed)
Patch Set: Fix assignment statement. #oops Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webshare/share-types.html
diff --git a/third_party/WebKit/LayoutTests/webshare/share-types.html b/third_party/WebKit/LayoutTests/webshare/share-types.html
index ac183c28993acd9e8d46da47c17901b1feb97baf..dcdf202539d9d2beba329562b2f3b98cf2341f2d 100644
--- a/third_party/WebKit/LayoutTests/webshare/share-types.html
+++ b/third_party/WebKit/LayoutTests/webshare/share-types.html
@@ -5,8 +5,8 @@
<script src="resources/mock-share-service.js"></script>
<script>
-share_test((t, mock) => {
- mock.pushShareResult('384957', '[object Object]', '', null);
+share_test((t, webshare, mock) => {
+ mock.pushShareResult('384957', '[object Object]', '', webshare.ShareError.OK);
return callWithKeyDown(() => navigator.share({title: 384957, text: {}}));
}, 'share of types other than string (expect implicitly converted to string)');

Powered by Google App Engine
This is Rietveld 408576698