mirror of
https://github.com/videojs/video.js.git
synced 2025-03-17 21:18:27 +02:00
Fix touch detection test on non-touch devices
TOUCH_ENABLED is false on non-touch devices which causes our minified API test to fail when opened in a browser on a traditional destktop machine. It worked fine through the command line because apparanetly phantomjs supports touch events (ha!). Check to make sure the property is not undefined instead.
This commit is contained in:
parent
1cd81ad258
commit
ff1c9c5cf0
@ -72,7 +72,7 @@ test('should export ready api call to public', function() {
|
||||
});
|
||||
|
||||
test('should export useful components to the public', function () {
|
||||
ok(videojs.TOUCH_ENABLED, 'Touch detection should be public');
|
||||
ok(videojs.TOUCH_ENABLED !== undefined, 'Touch detection should be public');
|
||||
ok(videojs.ControlBar, 'ControlBar should be public');
|
||||
ok(videojs.Button, 'Button should be public');
|
||||
ok(videojs.PlayToggle, 'PlayToggle should be public');
|
||||
|
Loading…
x
Reference in New Issue
Block a user