Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: docs/how_to_extend_layout_test_framework.md

Issue 2505683002: Update links to layout test documentation. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # How to Extend the Layout Test Framework 1 # How to Extend the Layout Test Framework
2 2
3 The Layout Test Framework that Blink uses is a regression testing tool that is 3 The Layout Test Framework that Blink uses is a regression testing tool that is
4 multi-platform and it has a large amount of tools that help test varying types 4 multi-platform and it has a large amount of tools that help test varying types
5 of regression, such as pixel diffs, text diffs, etc. The framework is mainly 5 of regression, such as pixel diffs, text diffs, etc. The framework is mainly
6 used by Blink, however it was made to be extensible so that other projects can 6 used by Blink, however it was made to be extensible so that other projects can
7 use it test different parts of chrome (such as Print Preview). This is a guide 7 use it test different parts of chrome (such as Print Preview). This is a guide
8 to help people who want to actually the framework to test whatever they want. 8 to help people who want to actually the framework to test whatever they want.
9 9
10 [TOC] 10 [TOC]
11 11
12 ## Background 12 ## Background
13 13
14 Before you can start actually extending the framework, you should be familiar 14 Before you can start actually extending the framework, you should be familiar
15 with how to use it. This wiki is basically all you need to learn how to use it 15 with how to use it. This wiki is basically all you need to learn how to use it
pwnall 2016/11/15 18:23:11 I wouldn't call it "wiki" anymore :)
qyearsley 2016/11/15 19:04:57 Done, updated
16 http://www.chromium.org/developers/testing/webkit-layout-tests 16 https://chromium.googlesource.com/chromium/src/+/master/docs/testing/layout_test s.md
17 17
18 ## How to Extend the Framework 18 ## How to Extend the Framework
19 19
20 There are two parts to actually extending framework to test a piece of software. 20 There are two parts to actually extending framework to test a piece of software.
21 The first part is extending certain files in: 21 The first part is extending certain files in:
22 [/third_party/Webkit/Tools/Scripts/webkitpy/layout_tests/](/third_party/Webkit/T ools/Scripts/webkitpy/layout_tests/) 22 [/third_party/Webkit/Tools/Scripts/webkitpy/layout_tests/](/third_party/Webkit/T ools/Scripts/webkitpy/layout_tests/)
23 The code in `webkitpy/layout_tests` is the layout test framework itself 23 The code in `webkitpy/layout_tests` is the layout test framework itself
24 24
25 The second part is creating a driver (program) to actually communicate the 25 The second part is creating a driver (program) to actually communicate the
26 layout test framework. This part is significantly more tricky and dependant on 26 layout test framework. This part is significantly more tricky and dependant on
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 * In this case this is how your output should look. 252 * In this case this is how your output should look.
253 * “Content-type: image/png\n” 253 * “Content-type: image/png\n”
254 * “ActualHash: hashData\n” 254 * “ActualHash: hashData\n”
255 * “Content-Length: lengthOfPng\n” 255 * “Content-Length: lengthOfPng\n”
256 * “pngdata” 256 * “pngdata”
257 * This part doesn’t need a header specifying that you are 257 * This part doesn’t need a header specifying that you are
258 sending png data, just send it 258 sending png data, just send it
259 * “#EOF\n” on both stdout and stderr 259 * “#EOF\n” on both stdout and stderr
260 * To see the structure of the data required, look at the 260 * To see the structure of the data required, look at the
261 `read_block` functions in Driver.py 261 `read_block` functions in Driver.py
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698