Changeset 45615 in webkit


Ignore:
Timestamp:
Jul 7, 2009 6:41:46 PM (15 years ago)
Author:
beidson@apple.com
Message:

WebKitTools:

2009-07-07 Brady Eidson <beidson@apple.com>

Reviewed by Mark Rowe.

https://bugs.webkit.org/show_bug.cgi?id=27049 - In dumpBackForwardList() mode, DRT should normalize file urls.

Make the dump of a history item agnostic to the layout of filesystem on the testing machine.

  • DumpRenderTree/mac/DumpRenderTree.mm: (dumpHistoryItem):
  • DumpRenderTree/win/DumpRenderTree.cpp: (dumpHistoryItem):

LayoutTests:

2009-07-07 Brady Eidson <beidson@apple.com>

Reviewed by Mark Rowe.

https://bugs.webkit.org/show_bug.cgi?id=27049 - In dumpBackForwardList() mode, DRT should normalize file urls.

  • fast/loader/subframe-navigate-during-main-frame-load-expected.txt: Make the results agnostic to the layout of filesystem on the testing machine.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r45614 r45615  
     12009-07-07  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Mark Rowe.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=27049 - In dumpBackForwardList() mode, DRT should normalize file urls.
     6
     7        * fast/loader/subframe-navigate-during-main-frame-load-expected.txt: Make the results agnostic to the layout of
     8          filesystem on the testing machine.
     9
    1102009-07-07  Simon Fraser  <simon.fraser@apple.com>
    211
  • trunk/LayoutTests/fast/loader/subframe-navigate-during-main-frame-load-expected.txt

    r45606 r45615  
    55
    66============== Back Forward List ==============
    7         file:///Volumes/Data/svn/OpenSource/LayoutTests/fast/loader/subframe-navigate-during-main-frame-load.html  **nav target**
    8 curr->  file:///Volumes/Data/svn/OpenSource/LayoutTests/fast/loader/resources/subframe-navigate-during-main-frame-load2.html  **nav target**
     7        (file test):fast/loader/subframe-navigate-during-main-frame-load.html  **nav target**
     8curr->  (file test):fast/loader/resources/subframe-navigate-during-main-frame-load2.html  **nav target**
    99            data:text/html,%3Cbody%20onload=%22layoutTestController.notifyDone();%22%3E%3C/body%3E (in frame "subframe")
    1010===============================================
  • trunk/WebKitTools/ChangeLog

    r45593 r45615  
     12009-07-07  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Mark Rowe.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=27049 - In dumpBackForwardList() mode, DRT should normalize file urls.
     6
     7        Make the dump of a history item agnostic to the layout of filesystem on the testing machine.
     8
     9        * DumpRenderTree/mac/DumpRenderTree.mm:
     10        (dumpHistoryItem):
     11        * DumpRenderTree/win/DumpRenderTree.cpp:
     12        (dumpHistoryItem):
     13
    1142009-07-07  Simon Hausmann  <hausmann@webkit.org>
    215
  • trunk/WebKitTools/DumpRenderTree/mac/DumpRenderTree.mm

    r44846 r45615  
    616616    for (int i = start; i < indent; i++)
    617617        putchar(' ');
    618     printf("%s", [[item URLString] UTF8String]);
     618   
     619    NSString *urlString = [item URLString];
     620    if ([[NSURL URLWithString:urlString] isFileURL]) {
     621        NSRange range = [urlString rangeOfString:@"/LayoutTests/"];
     622
     623        range.length = range.length + range.location;
     624        range.location = 0;
     625       
     626        urlString = [urlString stringByReplacingCharactersInRange:range withString:@"(file test):"];
     627    }
     628   
     629    printf("%s", [urlString UTF8String]);
    619630    NSString *target = [item target];
    620631    if (target && [target length] > 0)
  • trunk/WebKitTools/DumpRenderTree/win/DumpRenderTree.cpp

    r45505 r45615  
    407407    if (FAILED(item->URLString(&url)))
    408408        return;
     409
     410    if (wcsstr(url, L"file:/") == url) {
     411        static wchar_t* layoutTestsString = L"/LayoutTests/";
     412        static wchar_t* fileTestString = L"(file test):";
     413       
     414        wchar_t* result = wcsstr(url, layoutTestsString);
     415        if (result == NULL)
     416            return;
     417        wchar_t* start = result + wcslen(layoutTestsString);
     418
     419        BSTR newURL = SysAllocStringLen(NULL, SysStringLen(url));
     420        wcscpy(newURL, fileTestString);
     421        wcscpy(newURL + wcslen(fileTestString), start);
     422
     423        SysFreeString(url);
     424        url = newURL;
     425    }
     426
    409427    printf("%S", url ? url : L"");
    410428    SysFreeString(url);
Note: See TracChangeset for help on using the changeset viewer.