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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script>
4 <script src="resources/installedapp-test-helper.js"></script> 5 <script src="resources/installedapp-test-helper.js"></script>
5 <script> 6 <script>
6 7
7 promise_test(() => { 8 installedapp_test((t, mock) => {
8 // With no manifest, expect an empty list in response. 9 // With no manifest, expect the Mojo call to FilterInstalledApps to be empty,
10 // and return an empty list.
11 mock.pushExpectedCall([], []);
9 return navigator.getInstalledRelatedApps().then(result => { 12 return navigator.getInstalledRelatedApps().then(result => {
10 assert_array_relatedapplication_equals(result, []); 13 assert_array_relatedapplication_equals(result, []);
11 }); 14 });
12 }, 'getInstalledRelatedApps with no apps'); 15 }, 'getInstalledRelatedApps with no apps');
13 16
14 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698