Index: tracing/tracing/ui/base/overlay_test.html |
diff --git a/tracing/tracing/ui/base/overlay_test.html b/tracing/tracing/ui/base/overlay_test.html |
index caf03dab11f5c7cc551d4ba97168dce704db9dbd..8f050cdf78d262f549c780f856de6ab6439acf09 100644 |
--- a/tracing/tracing/ui/base/overlay_test.html |
+++ b/tracing/tracing/ui/base/overlay_test.html |
@@ -111,10 +111,11 @@ tr.b.unittest.testSuite(function() { |
return new Promise(function(resolve, reject) { |
function pressClose() { |
closeBtn.click(); |
- if (closeClicked) |
+ if (closeClicked) { |
resolve(); |
- else |
+ } else { |
reject(new Error('closeclick event is not dispatched')); |
+ } |
} |
dlg.visible = true; |
setTimeout(pressClose, 60); |