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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/README.md

Issue 2572333003: Import wpt@4970d7334aaf8977c5b617075aa48be1b6e482c7 (Closed)
Patch Set: Update TestExpectations Created 4 years 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 The Web Platform Tests Project [![IRC chat](https://goo.gl/6nCIks)](http://irc.w 3.org/?channels=testing) 1 The Web Platform Tests Project [![IRC chat](https://goo.gl/6nCIks)](http://irc.w 3.org/?channels=testing)
2 ============================== 2 ==============================
3 3
4 The Web Platform Tests Project is a W3C-coordinated attempt to build a 4 The Web Platform Tests Project is a W3C-coordinated attempt to build a
5 cross-browser testsuite for the Web-platform stack. However, for mainly 5 cross-browser testsuite for the Web-platform stack. However, for mainly
6 historic reasons, the CSS WG testsuite is in a separate repository, 6 historic reasons, the CSS WG testsuite is in a separate repository,
7 [csswg-test](https://github.com/w3c/csswg-test). Writing tests in a way 7 [csswg-test](https://github.com/w3c/csswg-test). Writing tests in a way
8 that allows them to be run in all browsers gives browser projects 8 that allows them to be run in all browsers gives browser projects
9 confidence that they are shipping software that is compatible with other 9 confidence that they are shipping software that is compatible with other
10 implementations, and that later implementations will be compatible with 10 implementations, and that later implementations will be compatible with
11 their implementations. This in turn gives Web authors/developers 11 their implementations. This in turn gives Web authors/developers
12 confidence that they can actually rely on the Web platform to deliver on 12 confidence that they can actually rely on the Web platform to deliver on
13 the promise of working across browsers and devices without needing extra 13 the promise of working across browsers and devices without needing extra
14 layers of abstraction to paper over the gaps left by specification 14 layers of abstraction to paper over the gaps left by specification
15 editors and implementors. 15 editors and implementors.
16 16
17 Running the Tests 17 Running the Tests
18 ================= 18 =================
19 19
20 The tests are designed to be run from your local computer. The test 20 The tests are designed to be run from your local computer. The test
21 environment requires Python 2.7+ (but not Python 3.x). You will also 21 environment requires [Python 2.7+](http://www.python.org/downloads) (but not Pyt hon 3.x).
22 need a copy of OpenSSL. Users on Windows should read the 22 You will also need a copy of OpenSSL.
23 [Windows Notes](#windows-notes) section below. 23
24 On Windows, be sure to add the Python directory (`c:\python2x`, by default) to
25 your `%Path%` [Environment Variable](http://www.computerhope.com/issues/ch000549 .htm),
26 and read the [Windows Notes](#windows-notes) section below.
24 27
25 To get the tests running, you need to set up the test domains in your 28 To get the tests running, you need to set up the test domains in your
26 [`hosts` file](http://en.wikipedia.org/wiki/Hosts_%28file%29%23Location_in_the_f ile_system). The 29 [`hosts` file](http://en.wikipedia.org/wiki/Hosts_%28file%29%23Location_in_the_f ile_system). The
27 following entries are required: 30 following entries are required:
28 31
29 ``` 32 ```
30 127.0.0.1 web-platform.test 33 127.0.0.1 web-platform.test
31 127.0.0.1 www.web-platform.test 34 127.0.0.1 www.web-platform.test
32 127.0.0.1 www1.web-platform.test 35 127.0.0.1 www1.web-platform.test
33 127.0.0.1 www2.web-platform.test 36 127.0.0.1 www2.web-platform.test
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 "ssl": {"openssl": {"binary": "/path/to/openssl"}} 76 "ssl": {"openssl": {"binary": "/path/to/openssl"}}
74 ``` 77 ```
75 78
76 <span id="windows-notes">Windows Notes</span> 79 <span id="windows-notes">Windows Notes</span>
77 ============================================= 80 =============================================
78 81
79 Running wptserve with SSL enabled on Windows typically requires 82 Running wptserve with SSL enabled on Windows typically requires
80 installing an OpenSSL distribution. 83 installing an OpenSSL distribution.
81 [Shining Light](https://slproweb.com/products/Win32OpenSSL.html) 84 [Shining Light](https://slproweb.com/products/Win32OpenSSL.html)
82 provide a convenient installer that is known to work, but requires a 85 provide a convenient installer that is known to work, but requires a
83 little extra setup. 86 little extra setup, i.e.:
84 87
85 After installation ensure that the path to OpenSSL is on your `%Path%` 88 Run the installer for Win32_OpenSSL_v1.1.0b (30MB). During installation,
86 environment variable. 89 change the default location for where to Copy OpenSSL Dlls from the
90 System directory to the /bin directory.
87 91
88 Then set the path to the default OpenSSL configuration file (usually 92 After installation, ensure that the path to OpenSSL (typically,
89 something like `C:\OpenSSL-Win32\bin\openssl.cfg` in the server 93 this will be `C:\OpenSSL-Win32\bin`) is in your `%Path%`
90 configuration. To do this copy `config.default.json` in the 94 [Environment Variable](http://www.computerhope.com/issues/ch000549.htm).
91 web-platform-tests root to `config.json`. Then edit the JSON so that 95 If you forget to do this part, you will most likely see a 'File Not Found'
92 the key `ssl/openssl/base_conf_path` has a value that is the path to 96 error when you start wptserve.
93 the OpenSSL config file. 97
98 Finally, set the path value in the server configuration file to the
99 default OpenSSL configuration file location. To do this,
100 copy `config.default.json` in the web-platform-tests root to `config.json`.
101 Then edit the JSON so that the key `ssl/openssl/base_conf_path` has a
102 value that is the path to the OpenSSL config file (typically this
103 will be `C:\\OpenSSL-Win32\\bin\\openssl.cfg`).
94 104
95 Alternatively, you may also use 105 Alternatively, you may also use
96 [Bash on Ubuntu on Windows](https://msdn.microsoft.com/en-us/commandline/wsl/abo ut) 106 [Bash on Ubuntu on Windows](https://msdn.microsoft.com/en-us/commandline/wsl/abo ut)
97 in the Windows 10 Anniversary Update build, then access your windows 107 in the Windows 10 Anniversary Update build, then access your windows
98 partition from there to launch wptserve. 108 partition from there to launch wptserve.
99 109
100 Test Runner 110 Test Runner
101 =========== 111 ===========
102 112
103 There is a test runner that is designed to provide a 113 There is a test runner that is designed to provide a
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 [contributing]: https://github.com/w3c/web-platform-tests/blob/master/CONTRIBUTI NG.md 265 [contributing]: https://github.com/w3c/web-platform-tests/blob/master/CONTRIBUTI NG.md
256 [ircw3org]: https://www.w3.org/wiki/IRC 266 [ircw3org]: https://www.w3.org/wiki/IRC
257 [ircarchive]: http://krijnhoetmer.nl/irc-logs/testing/ 267 [ircarchive]: http://krijnhoetmer.nl/irc-logs/testing/
258 [mailarchive]: http://lists.w3.org/Archives/Public/public-test-infra/ 268 [mailarchive]: http://lists.w3.org/Archives/Public/public-test-infra/
259 269
260 Documentation 270 Documentation
261 ============= 271 =============
262 272
263 * [How to write and review tests](http://testthewebforward.org/docs/) 273 * [How to write and review tests](http://testthewebforward.org/docs/)
264 * [Documentation for the wptserve server](http://wptserve.readthedocs.org/en/lat est/) 274 * [Documentation for the wptserve server](http://wptserve.readthedocs.org/en/lat est/)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698