summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/devtools/js/tests.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/webkit/glue/devtools/js/tests.js b/webkit/glue/devtools/js/tests.js
index 4a50c55..798dcca 100644
--- a/webkit/glue/devtools/js/tests.js
+++ b/webkit/glue/devtools/js/tests.js
@@ -369,11 +369,10 @@ TestSuite.prototype.testProfilerTab = function() {
this.showPanel('profiles');
var test = this;
- this.addSniffer(WebInspector, 'addProfileHeader',
- function(type, profile) {
+ this.addSniffer(WebInspector.panels.profiles, 'addProfileHeader',
+ function(typeOrProfile, profile) {
if (!profile) {
- profile = type;
- type = profile.typeId;
+ profile = typeOrProfile;
}
var panel = WebInspector.panels.profiles;
panel.showProfile(profile);