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

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

Issue 2671683002: getInstalledRelatedApps: Add browser-side Mojo service (stub). (Closed)
Patch Set: Added TODO. Created 3 years, 9 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-empty.html
diff --git a/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html b/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html
index 5e1bd757001267ed0aa27c13a4846230ca451d1f..51f22445af6401a4b81b93554bb049d3a919e2b4 100644
--- a/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html
+++ b/third_party/WebKit/LayoutTests/installedapp/getinstalledrelatedapps-empty.html
@@ -1,11 +1,14 @@
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
+<script src="../resources/mojo-helpers.js"></script>
<script src="resources/installedapp-test-helper.js"></script>
<script>
-promise_test(() => {
- // With no manifest, expect an empty list in response.
+installedapp_test((t, mock) => {
+ // With no manifest, expect the Mojo call to FilterInstalledApps to be empty,
+ // and return an empty list.
+ mock.pushExpectedCall([], []);
return navigator.getInstalledRelatedApps().then(result => {
assert_array_relatedapplication_equals(result, []);
});

Powered by Google App Engine
This is Rietveld 408576698