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

Unified Diff: third_party/WebKit/LayoutTests/installedapp/resources/installedapp-test-helper.js

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/resources/installedapp-test-helper.js
diff --git a/third_party/WebKit/LayoutTests/installedapp/resources/installedapp-test-helper.js b/third_party/WebKit/LayoutTests/installedapp/resources/installedapp-test-helper.js
new file mode 100644
index 0000000000000000000000000000000000000000..980831d6f11fbed82ac67fd4e67c1a53681499fe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/installedapp/resources/installedapp-test-helper.js
@@ -0,0 +1,15 @@
+'use strict';
+
+function assert_relatedapplication_equals(actual, expected, description) {
+ assert_equals(actual.platform, expected.platform, description);
+ assert_equals(actual.url, expected.url, description);
+ assert_equals(actual.id, expected.id, description);
+}
+
+function assert_array_relatedapplication_equals(
+ actual, expected, description) {
+ assert_equals(actual.length, expected.length, description);
+
+ for (let i = 0; i < actual.length; i++)
+ assert_relatedapplication_equals(actual[i], expected[i], description);
+}

Powered by Google App Engine
This is Rietveld 408576698