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

Unified Diff: third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps.html

Issue 2488573002: Refactor getInstalledRelatedApps code and add manifest logic and tests. (Closed)
Patch Set: Use SecurityOrigin, not WebSecurityOrigin. 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/installedapp/getinstalledrelatedapps.html
diff --git a/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps.html b/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps.html
new file mode 100644
index 0000000000000000000000000000000000000000..4c13b6cebb012ce83d41a30d4dab96c36b0873a9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<link rel="manifest" href="resources/manifest.json">
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/installedapp-test-helper.js"></script>
+<script>
+
+promise_test(() => {
+ // The manifest for this file has two related apps, but for now we can only
+ // expect to see an empty list in response (since we do not check whether any
+ // of the apps are installed).
+ return navigator.getInstalledRelatedApps().then(result => {
+ assert_array_relatedapplication_equals(result, []);
+ });
+}, 'getInstalledRelatedApps with related apps, none installed');
+
+// TODO(mgiuca): Add another test for when the browser returns a non-empty list
+// of installed apps.
+
+</script>
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698