Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
29 lines
707 B
JavaScript
Executable file
29 lines
707 B
JavaScript
Executable file
'use strict';
|
|
|
|
var Video = require('./lib/video');
|
|
|
|
marionette('video overlay', function() {
|
|
var assert = require('assert');
|
|
var client = marionette.client({
|
|
profile: {
|
|
prefs: {
|
|
'device.storage.enabled': true,
|
|
'device.storage.testing': true,
|
|
'device.storage.prompt.testing': true
|
|
}
|
|
}
|
|
});
|
|
var app;
|
|
|
|
setup(function() {
|
|
// Remove all files in temp device storage.
|
|
client.fileManager.removeAllFiles();
|
|
app = new Video(client);
|
|
app.launch();
|
|
});
|
|
|
|
test('check for empty overlay', function() {
|
|
var overlay = client.helper.waitForElement(Video.Selector.overlay);
|
|
assert.ok(overlay.displayed(), 'The list should be empty');
|
|
});
|
|
});
|