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

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

Issue 2249043002: Disable WebShare on platforms other than android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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-not-available.html
diff --git a/third_party/WebKit/LayoutTests/webshare/share-not-available.html b/third_party/WebKit/LayoutTests/webshare/share-not-available.html
new file mode 100644
index 0000000000000000000000000000000000000000..74aac489dea22ff745dc5587c4130ac77c577d06
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/webshare/share-not-available.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+
+test((t, mock) => {
+ assert_equals(navigator.share, undefined);
+ assert_false('share' in navigator);
+}, 'navigator.share should not be defined');
+</script>

Powered by Google App Engine
This is Rietveld 408576698