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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/budget/get-budget.html

Issue 2812223004: Adding an origin trial for Budget API (Closed)
Patch Set: Fix expected output for virtual LayoutTests Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Budget API: Make basic getBudget call.</title> 4 <title>Budget API: Make basic getBudget call.</title>
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 <script src="/js-test-resources/mojo-helpers.js"></script> 7 <script src="/js-test-resources/mojo-helpers.js"></script>
8 <script src="budget-service-mock.js"></script> 8 <script src="budget-service-mock.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
(...skipping 14 matching lines...) Expand all
25 return budgetServiceMock.then(mock => { 25 return budgetServiceMock.then(mock => {
26 assert_own_property(Navigator.prototype, 'budget'); 26 assert_own_property(Navigator.prototype, 'budget');
27 mock.setError("database-error"); 27 mock.setError("database-error");
28 return navigator.budget.getBudget(); 28 return navigator.budget.getBudget();
29 }).then(budget => { 29 }).then(budget => {
30 assert_unreached('getBudget should have failed.'); 30 assert_unreached('getBudget should have failed.');
31 }, function(error) { 31 }, function(error) {
32 assert_equals(error.name, 'DataError'); 32 assert_equals(error.name, 'DataError');
33 assert_equals(error.message, "Error reading the budget database."); 33 assert_equals(error.message, "Error reading the budget database.");
34 }); 34 });
35 }, 'BudgetService.GetBudget should return correct results.'); 35 }, 'BudgetService.GetBudget should return an error if there is an internal error.');
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698