Index: third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html b/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html |
index b1489a7fcf5edec89453bf8ede42e372999e249f..a2f47a163b1c8590b9f37e66ac3f6c18e8cbf582 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html |
@@ -11,6 +11,7 @@ |
assert_own_property(Navigator.prototype, 'budget'); |
assert_own_property(BudgetService.prototype, 'getCost'); |
assert_own_property(BudgetService.prototype, 'getBudget'); |
+ assert_own_property(BudgetService.prototype, 'reserve'); |
assert_equals(navigator.budget, navigator.budget); |
navigator.budget.getCost() |
@@ -27,6 +28,13 @@ |
assert_equals(error.name, 'NotSupportedError'); |
assert_equals(error.message, 'Not yet implemented'); |
}); |
+ navigator.budget.reserve() |
+ .then(function(cost) { |
+ assert_unreached('reserve should have failed.'); |
+ }, function(error) { |
+ assert_equals(error.name, 'NotSupportedError'); |
+ assert_equals(error.message, 'Not yet implemented'); |
+ }); |
}, 'NavigatorBudget should be exposed and have the expected interface in a Document.'); |
</script> |
</body> |