Index: third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html |
diff --git a/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html b/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5e1bd757001267ed0aa27c13a4846230ca451d1f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="resources/installedapp-test-helper.js"></script> |
+<script> |
+ |
+promise_test(() => { |
+ // With no manifest, expect an empty list in response. |
+ return navigator.getInstalledRelatedApps().then(result => { |
+ assert_array_relatedapplication_equals(result, []); |
+ }); |
+}, 'getInstalledRelatedApps with no apps'); |
+ |
+</script> |