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

Unified Diff: Source/devtools/front_end/common/Throttler.js

Issue 553803003: [DevTools] Fix race in testDeviceMetricsOverrides. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: utility function Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/Tests.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/common/Throttler.js
diff --git a/Source/devtools/front_end/common/Throttler.js b/Source/devtools/front_end/common/Throttler.js
index 398e03fd2c7db285c9c8cddf6c86e8d3e9e60b2f..302d3f67b14df4a7789860b02f304f489b2d2ea1 100644
--- a/Source/devtools/front_end/common/Throttler.js
+++ b/Source/devtools/front_end/common/Throttler.js
@@ -21,6 +21,12 @@ WebInspector.Throttler.prototype = {
this._isRunningProcess = false;
if (this._process)
this._innerSchedule(false);
+ this._processCompletedForTests();
+ },
+
+ _processCompletedForTests: function()
+ {
+ // For sniffing in tests.
},
_onTimeout: function()
« no previous file with comments | « Source/devtools/front_end/Tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698