diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 18:11:44 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 18:11:44 +0000 |
commit | 3be0269ec9121cd1dc6827ca9f9bc217dfd3bedf (patch) | |
tree | 429408077dbd6284b0cf2dd7038ef4c686a86752 /webkit | |
parent | a716d37ebfe7e46bfabecdd8c51f9157a35870e4 (diff) | |
download | chromium_src-3be0269ec9121cd1dc6827ca9f9bc217dfd3bedf.zip chromium_src-3be0269ec9121cd1dc6827ca9f9bc217dfd3bedf.tar.gz chromium_src-3be0269ec9121cd1dc6827ca9f9bc217dfd3bedf.tar.bz2 |
DevTools: fix sanity tests insanity.
TBR=dglazkov
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/devtools/js/tests.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/devtools/js/tests.js b/webkit/glue/devtools/js/tests.js index 59de44d..53ce7f2 100644 --- a/webkit/glue/devtools/js/tests.js +++ b/webkit/glue/devtools/js/tests.js @@ -227,7 +227,7 @@ TestSuite.prototype.testEnableResourcesTab = function() { this.showPanel('resources'); var test = this; - this.addSniffer(WebInspector, 'addResource', + this.addSniffer(WebInspector, '_addResource', function(identifier, payload) { test.assertEquals('simple_page.html', payload.lastPathComponent); WebInspector.panels.resources.refresh(); @@ -315,7 +315,7 @@ TestSuite.prototype.testResourceHeaders = function() { var responseOk = false; var timingOk = false; - this.addSniffer(WebInspector, 'addResource', + this.addSniffer(WebInspector, '_addResource', function(identifier, payload) { var resource = this.resources[identifier]; if (resource.mainResource) { @@ -331,7 +331,7 @@ TestSuite.prototype.testResourceHeaders = function() { this.addSniffer(WebInspector, 'updateResource', function(identifier, payload) { var resource = this.resources[identifier]; - if (resource.mainResource) { + if (!resource || resource.mainResource) { // We are only interested in secondary resources in this test. return; } @@ -375,7 +375,7 @@ TestSuite.prototype.testCachedResourceMimeType = function() { this.addSniffer(WebInspector, 'updateResource', function(identifier, payload) { var resource = this.resources[identifier]; - if (resource.mainResource) { + if (!resource || resource.mainResource) { // We are only interested in secondary resources in this test. return; } |