Index: tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html |
diff --git a/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html b/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html |
index aba17c374d053c63018c424490d4181d55200351..04c93f5f653a8f117600a69c7f68bf8fcd86388b 100644 |
--- a/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html |
+++ b/tracing/tracing/ui/extras/about_tracing/mock_tracing_controller_client.html |
@@ -39,8 +39,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() { |
_request: function(method, args) { |
return new Promise(function(resolve) { |
var requestIndex = this.nextRequestIndex; |
- if (requestIndex >= this.requests.length) |
+ if (requestIndex >= this.requests.length) { |
throw new Error('Unhandled request'); |
+ } |
if (!this.allowLooping) { |
this.nextRequestIndex++; |
} else { |
@@ -56,8 +57,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() { |
}, |
assertAllRequestsHandled: function() { |
- if (this.allowLooping) |
+ if (this.allowLooping) { |
throw new Error('Incompatible with allowLooping'); |
+ } |
assert.equal(this.requests.length, this.nextRequestIndex); |
}, |