LayoutTests:
authorddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Jan 2007 03:31:04 +0000 (03:31 +0000)
committerddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Jan 2007 03:31:04 +0000 (03:31 +0000)
commit036d1f23318d84ef7ce8c20799b688f775645fec
tree76bc378803413da80be114292c3cdb1d4c112dae
parentce2b9a841944fc11a7ca0eb123a43d4b78e8a623
LayoutTests:

        Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=11882
        Need a way to regression test .webarchive output files

        Created webarchive tests that exercise various features of the WebArchive format.

        * webarchive/resources/apple.gif: Copied from fast/canvas/resources/apple.gif.
        * webarchive/resources/dump-webarchive.js: Added.
        * webarchive/resources/test-frame.html: Added.
        * webarchive/resources/test-style.css: Added.
        * webarchive/test-body-background-expected.txt: Added.
        * webarchive/test-body-background.html: Added.
        * webarchive/test-duplicate-resources-expected.txt: Added.
        * webarchive/test-duplicate-resources.html: Added.
        * webarchive/test-frameset-expected.txt: Added.
        * webarchive/test-frameset.html: Added.
        * webarchive/test-img-src-expected.txt: Added.
        * webarchive/test-img-src.html: Added.
        * webarchive/test-input-src-expected.txt: Added.
        * webarchive/test-input-src.html: Added.
        * webarchive/test-link-href-expected.txt: Added.
        * webarchive/test-link-href.html: Added.
        * webarchive/test-object-data-expected.txt: Added.
        * webarchive/test-object-data.html: Added.
        * webarchive/test-script-src-expected.txt: Added.
        * webarchive/test-script-src.html: Added.
        * webarchive/test-table-background-expected.txt: Added.
        * webarchive/test-table-background.html: Added.
        * webarchive/test-td-background-expected.txt: Added.
        * webarchive/test-td-background.html: Added.

WebKitTools:

        Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=11882
        Need a way to regression test .webarchive output files

        Implement layoutTestController.dumpAsWebArchive() to test WebArchive format.
        Alters WebResourceResponse and WebResourceURL properties within WebArchive format
        to normalize URLs to remove path where WebKit was checked out.  Also converts
        WebDataResource properties from data to string if the corresponding
        WebResourceMIMEType property starts with "text/" or equals
        "application/x-javascript".

        * DumpRenderTree/DumpRenderTree.m:
        (convertWebResourceDataToString): Added.
        (normalizeWebResourceURL): Added.
        (normalizeWebResourceResponse): Added.
        (serializeWebArchiveToXML): Added.
        (dump):
        (+[LayoutTestController isSelectorExcludedFromWebScript:]):
        (-[LayoutTestController dumpAsWebArchive]): Added.
        (runTest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
27 files changed:
LayoutTests/ChangeLog
LayoutTests/webarchive/resources/apple.gif [new file with mode: 0644]
LayoutTests/webarchive/resources/dump-webarchive.js [new file with mode: 0644]
LayoutTests/webarchive/resources/test-frame.html [new file with mode: 0644]
LayoutTests/webarchive/resources/test-style.css [new file with mode: 0644]
LayoutTests/webarchive/test-body-background-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-body-background.html [new file with mode: 0644]
LayoutTests/webarchive/test-duplicate-resources-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-duplicate-resources.html [new file with mode: 0644]
LayoutTests/webarchive/test-frameset-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-frameset.html [new file with mode: 0644]
LayoutTests/webarchive/test-img-src-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-img-src.html [new file with mode: 0644]
LayoutTests/webarchive/test-input-src-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-input-src.html [new file with mode: 0644]
LayoutTests/webarchive/test-link-href-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-link-href.html [new file with mode: 0644]
LayoutTests/webarchive/test-object-data-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-object-data.html [new file with mode: 0644]
LayoutTests/webarchive/test-script-src-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-script-src.html [new file with mode: 0644]
LayoutTests/webarchive/test-table-background-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-table-background.html [new file with mode: 0644]
LayoutTests/webarchive/test-td-background-expected.txt [new file with mode: 0644]
LayoutTests/webarchive/test-td-background.html [new file with mode: 0644]
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/DumpRenderTree.m