blob: 18c7f569b060372bdc743d1d141743e2f1a2315e [file] [log] [blame]
Web Bluetooth API LayoutTests README
This directory contains Web Bluetooth API layout tests.
# generator.py
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]]),
Run
$ python //third_party/WebKit/LayoutTests/bluetooth/generate.py
to generate these files from templates in script-tests/*.js