1 |
|
2 | var assert = require('assert')
|
3 | var detect = require('..')
|
4 |
|
5 | describe('prop-detect', function() {
|
6 | it('should be transition', function () {
|
7 | assert(/transition/i.test(detect.transition))
|
8 | })
|
9 |
|
10 | it('should be transform', function () {
|
11 | assert(/transform/i.test(detect.transform))
|
12 | })
|
13 |
|
14 | it('should be touchAction', function () {
|
15 | if (detect.touchAction) {
|
16 | assert.equal('touchAction', detect.touchAction)
|
17 | } else {
|
18 | assert.equal(null, detect.touchAction)
|
19 | }
|
20 | })
|
21 |
|
22 | it('should be transitionend', function () {
|
23 | assert(/transition/i.test(detect.transitionend))
|
24 | })
|
25 |
|
26 | it('should be has3d', function () {
|
27 | assert.equal(detect.has3d, true)
|
28 | })
|
29 |
|
30 |
|
31 | })
|