An open API service indexing awesome lists of open source software.

https://github.com/fitzgen/servo-trace-dump

JS and CSS for Servo's HTML timelines
https://github.com/fitzgen/servo-trace-dump

Last synced: 6 months ago
JSON representation

JS and CSS for Servo's HTML timelines

Awesome Lists containing this project

README

          

# `servo-trace-dump`

[![Build Status](https://travis-ci.org/fitzgen/servo-trace-dump.png?branch=master)](https://travis-ci.org/fitzgen/servo-trace-dump)

This repository contains the JS and CSS that gets embedded in the
[self-contained HTML timelines generated by Servo's `--profiler-trace-path` flag](https://github.com/servo/servo/wiki/Profiling#generating-timelines).

This exists as a separate repository to enable easy unit testing of the JS code.

## Testing

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](http://mochajs.org/) test runner, and the
[chai](http://chaijs.com/) assertion library. Add new test cases to the
`test.js` file.

## Updating Servo's Copy

To udate Servo's copy of these files, run the `update-servo` script:

```
$ ./update-servo ~/path/to/servo
```