Index: third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html b/third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..013c82f0fe55dd4fbe323a7e377e87de1b3fd653 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html |
@@ -0,0 +1,19 @@ |
+<!doctype html> |
+<html> |
+ <head> |
+ <title>Budget API: Verifies that the right Budget API interfaces get exposed.</title> |
+ <script src="../resources/testharness.js"></script> |
+ <script src="../resources/testharnessreport.js"></script> |
+ <script src="../serviceworker/resources/test-helpers.js"></script> |
+ </head> |
+ <body> |
+ <script> |
+ test(function() { |
+ assert_own_property(Navigator.prototype, 'getCost'); |
+ assert_own_property(Navigator.prototype, 'getBudget'); |
+ assert_own_property(Navigator.prototype, 'getBudgetDetails'); |
Peter Beverloo
2016/07/01 13:21:59
nit: You could reject the promises for now rather
harkness
2016/07/20 09:41:47
Done.
|
+ |
+ }, 'NavigatorBudget should be exposed and have the expected interface in a Document.'); |
+ </script> |
+ </body> |
+</html> |