Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/budget/resources/instrumentation-service-worker.js |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/budget/resources/instrumentation-service-worker.js b/third_party/WebKit/LayoutTests/http/tests/budget/resources/instrumentation-service-worker.js |
| index c4491ec18e191abe9c78231046a2f40cf57669fc..e2686ad5d2abf17e37135700b44d62e772f7dd05 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/budget/resources/instrumentation-service-worker.js |
| +++ b/third_party/WebKit/LayoutTests/http/tests/budget/resources/instrumentation-service-worker.js |
| @@ -54,7 +54,10 @@ self.addEventListener('message', function(workerEvent) { |
| WorkerNavigator.prototype.hasOwnProperty('budget') && |
| BudgetService.prototype.hasOwnProperty('getCost') && |
| BudgetService.prototype.hasOwnProperty('getBudget') && |
| - BudgetService.prototype.hasOwnProperty('reserve') |
| + BudgetService.prototype.hasOwnProperty('reserve') && |
| + 'BudgetState' in self && |
| + BudgetState.prototype.hasOwnProperty('budgetAt') && |
| + BudgetState.prototype.hasOwnProperty('time'); |
|
Peter Beverloo
2016/12/14 11:37:08
Something that crossed my mind - we have no tests
harkness
2016/12/14 13:48:58
Sure, I can look into adding something for one or
|
| } catch(err) { |
| message = err.message; |
| } |