Changes between Version 4 and Version 5 of Layout Test Protocol


Ignore:
Timestamp:
Jul 8, 2014, 10:43:06 AM (10 years ago)
Author:
dfarler@apple.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Layout Test Protocol

    v4 v5  
    77- DumpMalloc: Number of committed virtual memory bytes
    88
    9 Requests
     9
     10== Requests ==
    1011
    1112{{{
     
    1415}}}
    1516
    16 Responses
     17== Responses ==
    1718
    1819
    1920{{{
    20 Response -> RenderTree Image Audio Error DumpMalloc EOF
     21Response -> RenderTree Image Audio Error Leaks EOF
    2122ContentLength: -> 'Content-Length: %lu' Newline
    2223EOF -> '#EOF' Newline
    2324Newline -> '\n'
    2425
    25 RenderTree -> ContentTypeText ContentLength Data
     26RenderTree -> ContentTypeText DumpMalloc Lines EOF
    2627ContentTypeText -> 'Content-type: text/plain' Newline
    27 Data -> bytes
     28Lines -> Any text lines not solely containing '#EOF'
    2829
    2930Image -> ContentTypePNG ContentLength Data
     
    3334ContentTypeAudio -> 'Content-type: audio/wav' Newline
    3435
    35 Error -> ContentTypeText ContentLength Text
    36 
    37 DumpMalloc -> 'DumpMalloc: %li'
     36Leaks -> Leak RestLeaks
     37Leak -> 'LEAK: ' \d+ LeakType
     38RestLeaks -> Leaks | empty
    3839
    3940}}}
     41
     42=== Example response ===
     43'''Standard out'''
     44{{{
     45
     46Content-Type: text/plain
     47DumpMalloc: 0
     48layer at (0,0) size 800x600
     49  RenderView at (0,0) size 800x600
     50layer at (0,0) size 800x89
     51  RenderBlock {HTML} at (0,0) size 800x89
     52    RenderBody {BODY} at (8,8) size 784x73
     53      RenderBlock (anonymous) at (0,0) size 784x36
     54        RenderText {#text} at (0,0) size 775x36
     55          text run at (0,0) width 775: "No red text should be visible in any of the sections below. same-as-base isolate containing <br> surrounded by opposite-to-"
     56          text run at (0,18) width 55: "base text"
     57        RenderText {#text} at (0,0) size 0x0
     58      RenderBlock {DIV} at (0,36) size 784x37
     59        RenderBlock {DIV} at (0,0) size 784x37
     60          RenderText {#text} at (680,1) size 104x18
     61            text run at (680,1) width 9 RTL: ") "
     62            text run at (689,1) width 95: "things to do: (1"
     63          RenderInline {SPAN} at (0,0) size 11x18
     64            RenderText {#text} at (669,1) size 11x18
     65              text run at (669,1) width 11 RTL: "\x{5D0}"
     66            RenderBR {BR} at (669,1) size 1x18
     67          RenderText {#text} at (730,19) size 54x18
     68            text run at (730,19) width 32: "sleep"
     69            text run at (762,19) width 9 RTL: ") "
     70            text run at (771,19) width 8: "2"
     71            text run at (779,19) width 5 RTL: "("
     72#EOF
     73#EOF
     74}}}
     75
     76'''Standard error'''
     77{{{
     78#EOF
     79}}}