Index: LayoutTests/inspector/extensions/extensions-resources.html |
diff --git a/LayoutTests/inspector/extensions/extensions-resources.html b/LayoutTests/inspector/extensions/extensions-resources.html |
index ab1cb30328e48d18ed6b6c0d467391acf6878efa..5b37a90089462932163511259fe22e8a78e76a8a 100644 |
--- a/LayoutTests/inspector/extensions/extensions-resources.html |
+++ b/LayoutTests/inspector/extensions/extensions-resources.html |
@@ -27,15 +27,20 @@ InspectorTest.clickOnURL = function() |
InspectorTest.waitForStyleSheetChangedEvent = function(reply) |
{ |
- var oldUpdateTimeout = WebInspector.StyleFile.updateTimeout; |
- WebInspector.StyleFile.updateTimeout = 0; |
+ var originalSetTimeout = WebInspector.Throttler.prototype._setTimeout; |
+ WebInspector.Throttler.prototype._setTimeout = innerSetTimeout; |
InspectorTest.addSniffer(WebInspector.CSSStyleModel.prototype, "_fireStyleSheetChanged", onStyleSheetChanged); |
function onStyleSheetChanged() |
{ |
- WebInspector.StyleFile.updateTimeout = oldUpdateTimeout; |
+ WebInspector.Throttler.prototype._setTimeout = originalSetTimeout; |
reply(); |
} |
+ |
+ function innerSetTimeout(operation, timeout) |
+ { |
+ return originalSetTimeout.call(this, operation, 0); |
+ } |
} |
} |