https://github.com/matype/tecsst
CSS testing framework without taking screenshots
https://github.com/matype/tecsst
Last synced: 9 months ago
JSON representation
CSS testing framework without taking screenshots
- Host: GitHub
- URL: https://github.com/matype/tecsst
- Owner: matype
- License: other
- Created: 2014-06-23T07:48:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T18:36:56.000Z (about 12 years ago)
- Last Synced: 2024-12-28T02:44:38.384Z (over 1 year ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
- License: LICENSE
Awesome Lists containing this project
README
# tecsst [](https://travis-ci.org/morishitter/tecsst)
CSS testing framework without taking screenshots
## Installation
```shell
$ npm install tecsst
```
## Example
```javascript
var Tecsst = require('tecsst')
var tecsst = new Tecsst('test/test.css')
var selector = '.btn-danger'
var browserWidth = '480px'
var expected = [
"display: inline-block",
"text-align: center",
"padding: 6px 12px",
"font-size: 14px",
"color: #fff",
"background-color: #d2322d",
"width: 95%"
]
var result = tecsst.parse(selector, browserWidth)
tecsst.equal(expected, result, ".btn-danger test")
tecsst.end()
```
result:
```
Tecsst version: 0.0.5
Browser width: 480px
# .btn-danger test:
ok
# tests 1
# pass 1
all green, test clear!
```
## License
The MIT License (MIT)
Copyright (c) 2014 Masaaki Morishita