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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html

Issue 2476343002: PaymentApp: Initial implementation for PaymentAppManager.setManifest(). (Closed)
Patch Set: fix lint error Created 4 years, 1 month 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/http/tests/payments/payment-app-interfaces.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html b/third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html
new file mode 100644
index 0000000000000000000000000000000000000000..3f7ebe24f79275bcea74e5f093e0b11c6956e193
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/payments/payment-app-interfaces.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../serviceworker/resources/test-helpers.js"></script>
+<script>
+ // Tests that the expected Payment App API interfaces are being exposed on both
+ // the Service Worker and Document global scopes.
+ service_worker_test(
+ 'resources/payment-app.js',
+ 'Exposure of interfaces in a Service Worker.');
+
+ test(function() {
+ assert_own_property(self, 'PaymentAppManager', 'PaymentAppManager needs to be exposed as a global.');
+
+ assert_own_property(PaymentAppManager.prototype, 'setManifest');
+ assert_own_property(PaymentAppManager.prototype, 'getManifest');
+ }, 'PaymentAppManager should be exposed and have the expected interface in a Document.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698