Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/bluetooth/README |
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/README b/third_party/WebKit/LayoutTests/bluetooth/README |
| index 66ef8a7aec1c1d818258b73aa71d4ddbea0f59d3..9497e1bbf2e6a6b37390bfbe39991cacddf0859a 100644 |
| --- a/third_party/WebKit/LayoutTests/bluetooth/README |
| +++ b/third_party/WebKit/LayoutTests/bluetooth/README |
| @@ -4,13 +4,37 @@ This directory contains Web Bluetooth API layout tests. |
| # generator.py |
| -The following files are generated by the generator.py script: |
| - - /getPrimaryService/gen-* |
| - - /getPrimaryServices/gen-* |
| +TL;DR |
|
scheib
2016/12/02 22:40:36
:P I have TL;DR phobia. Just remove the "TL;DR" li
|
| + |
| +Directories in bluetooth/script-tests generate tests in bluetooth/ |
| + |
| +Overview |
| + |
| +For all .js files in script-tests/, generator.py will attempt to build test |
| +in bluetooth/. |
| + |
| +Note that for each subdirectory in script-test there is a matching directory |
| +under bluetooth/. The generator will expand CALL functions into this |
| +corresponding directory. |
| + |
| +Example: |
| + |
| +bluetooth/script-tests/server/get-same-object.js expanded CALL will generate 3 |
| +files: |
| + |
| +bluetooth/server/getPrimaryService/gen-get-same-object.html |
| +bluetooth/server/getPrimaryServices/gen-get-same-object.html |
| +bluetooth/server/getPrimaryServices/gen-get-same-object-with-uuid.html |
| + |
| +This is because of the following lines CALL: |
| + |
| +gattServer.CALLS([ |
| + getPrimaryService('heart_rate')| |
| + getPrimaryServices()| |
| + getPrimaryServices('heart_rate')[UUID]]), |
| -TODO(crbug.com/654670): Generate tests for getCharacteristic(s) and |
| -readValue/writeValue/startNotifications. |
| Run |
| + |
| $ python //third_party/WebKit/LayoutTests/bluetooth/generate.py |
| to generate these files from templates in script-tests/*.js |