Changes between Initial Version and Version 1 of Layout Test Protocol


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Layout Test Protocol

    v1 v1  
     1The Layout Test Protocol (LTP) is a line-based protocol for requesting layout tests from DumpRenderTree (DRT) or WebKitTestRunner (WKTR). Requests come into DRT/WKTR from standard input or into a socket. Responses leave DRT/WKTR via standard output/error or into a socket. The protocol works similarly to HTTP, where a content type and length are sent before blocks of data. A response consists of multiple chunks, all of which are optional:
     2
     3- RenderTree: The textual representation of the render tree
     4- Image: An image capture of the web view
     5- Audio: An audio capture during the test
     6- Error: Other textual output corresponding to standard error
     7- DumpMalloc: Number of committed virtual memory bytes
     8
     9Requests
     10
     11{{{
     12Request -> [\n]+ Newline
     13}}}
     14
     15Responses
     16
     17
     18{{{
     19Response -> RenderTree Image Audio Error DumpMalloc EOF
     20ContentLength: -> 'Content-Length: %lu' Newline
     21EOF -> '#EOF' Newline
     22Newline -> '\n'
     23
     24RenderTree -> ContentTypeText ContentLength Data
     25ContentTypeText -> 'Content-type: text/plain' Newline
     26Data -> bytes
     27
     28Image -> ContentTypePNG ContentLength Data
     29ContentTypePNG -> 'Content-type: image/png' Newline
     30
     31Audio -> ContentTypeAudio ContentLength Data
     32ContentTypeAudio -> 'Content-type: audio/wav' newline
     33
     34Error -> ContentTypeText ContentLength Text
     35
     36DumpMalloc -> 'DumpMalloc: %li'
     37
     38}}}