OLD | NEW |
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> |
OLD | NEW |