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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html

Issue 2479813003: Remove outdated interface tests which were hidden by promise_test behaviour. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/budget/interfaces-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a2f47a163b1c8590b9f37e66ac3f6c18e8cbf582..f73086cfbc56ffd98f939ebe5c6a07d6f347b5ba 100644
--- a/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html
+++ b/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html
@@ -7,34 +7,12 @@
</head>
<body>
<script>
- promise_test(function() {
+ test(function() {
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()
- .then(function(cost) {
- assert_unreached('getCost should have failed.');
- }, function(error) {
- assert_equals(error.name, 'NotSupportedError');
- assert_equals(error.message, 'Not yet implemented');
- });
- navigator.budget.getBudget()
- .then(function(cost) {
- assert_unreached('getBudget should have failed.');
- }, function(error) {
- 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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/budget/interfaces-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698