This repository contains the JS and CSS that gets embedded in the
self-contained HTML timelines generated by Servo's --profiler-trace-path
flag.
This exists as a separate repository to enable easy unit testing of the JS code.
Requires node
and npm
.
First time set up:
$ npm install --dev
After the dependencies are installed, run the tests like this:
$ npm test
We use the mocha test runner, and the
chai assertion library. Add new test cases to the
test.js
file.
To udate Servo's copy of these files, run the update-servo
script:
$ ./update-servo ~/path/to/servo