Commit 61c1222e authored by darin@chromium.org's avatar darin@chromium.org

2010-03-04 Darin Fisher <darin@chromium.org>

        Reviewed by Pavel Feldman.

        Fix failing DevToolsSanityTest.TestResourceContentLength
        https://bugs.webkit.org/show_bug.cgi?id=35725

        http://trac.webkit.org/changeset/55466 missed one more spot
        where contentLength needed to be renamed resourceSize.

        * src/js/Tests.js:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9cc43765
2010-03-04 Darin Fisher <darin@chromium.org>
Reviewed by Pavel Feldman.
Fix failing DevToolsSanityTest.TestResourceContentLength
https://bugs.webkit.org/show_bug.cgi?id=35725
http://trac.webkit.org/changeset/55466 missed one more spot
where contentLength needed to be renamed resourceSize.
* src/js/Tests.js:
2010-03-03 Garret Kelly <gdk@chromium.org>
Reviewed by Darin Fisher.
......
......@@ -298,16 +298,16 @@ TestSuite.prototype.testResourceContentLength = function()
if (resource.url.search("image.html") !== -1) {
var expectedLength = 87;
test.assertTrue(
resource.contentLength <= expectedLength,
resource.resourceSize <= expectedLength,
"image.html content length is greater thatn expected.");
if (expectedLength === resource.contentLength)
if (expectedLength === resource.resourceSize)
html = true;
} else if (resource.url.search("image.png") !== -1) {
var expectedLength = 257796;
test.assertTrue(
resource.contentLength <= expectedLength,
resource.resourceSize <= expectedLength,
"image.png content length is greater than expected.");
if (expectedLength === resource.contentLength)
if (expectedLength === resource.resourceSize)
png = true;
}
if (html && png) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment