LayoutTests:
authorddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Dec 2006 04:38:12 +0000 (04:38 +0000)
committerddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Dec 2006 04:38:12 +0000 (04:38 +0000)
commitfd9919c2ac1e12cd97c7031384093d37ccbb0a6e
tree9a0d25c1c0efe1990ec72292f455d8da81544a0d
parent423c55b439543680c20de5ea65aa593033db589c
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.
        Saves WebArchive plist in xml format, then alters file:// URLs to remove path
        where WebKit was checked out.

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18466 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