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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <link rel="manifest" href="resources/manifest.json">
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="resources/installedapp-test-helper.js"></script>
6 <script>
7
8 promise_test(() => {
9 // The manifest for this file has two related apps, but for now we can only
10 // expect to see an empty list in response (since we do not check whether any
11 // of the apps are installed).
12 return navigator.getInstalledRelatedApps().then(result => {
13 assert_array_relatedapplication_equals(result, []);
14 });
15 }, 'getInstalledRelatedApps with related apps, none installed');
16
17 // TODO(mgiuca): Add another test for when the browser returns a non-empty list
18 // of installed apps.
19
20 </script>
OLDNEW
« 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