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

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

Issue 2578513002: Expose BudgetState interface to Workers. (Closed)
Patch Set: Created 4 years 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: Verifies that the right Budget API interfaces get exposed .</title> 4 <title>Budget API: Verifies that the right Budget API interfaces get exposed .</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 </head> 7 </head>
8 <body> 8 <body>
9 <script> 9 <script>
10 test(function() { 10 test(function() {
11 assert_own_property(Navigator.prototype, 'budget'); 11 assert_own_property(Navigator.prototype, 'budget');
12 assert_true('BudgetService' in self);
12 assert_own_property(BudgetService.prototype, 'getCost'); 13 assert_own_property(BudgetService.prototype, 'getCost');
13 assert_own_property(BudgetService.prototype, 'getBudget'); 14 assert_own_property(BudgetService.prototype, 'getBudget');
14 assert_own_property(BudgetService.prototype, 'reserve'); 15 assert_own_property(BudgetService.prototype, 'reserve');
16 assert_true('BudgetState' in self);
17 assert_own_property(BudgetState.prototype, 'budgetAt');
18 assert_own_property(BudgetState.prototype, 'time');
15 assert_equals(navigator.budget, navigator.budget); 19 assert_equals(navigator.budget, navigator.budget);
16 assert_true('BudgetService' in self);
17 }, 'NavigatorBudget should be exposed and have the expected interface in a Document.'); 20 }, 'NavigatorBudget should be exposed and have the expected interface in a Document.');
18 </script> 21 </script>
19 </body> 22 </body>
20 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698