Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
74
gaia/apps/camera/test/marionette/settings_test.js
Executable file
74
gaia/apps/camera/test/marionette/settings_test.js
Executable file
|
|
@ -0,0 +1,74 @@
|
|||
marionette('Settings', function() {
|
||||
'use strict';
|
||||
|
||||
// sadly must come before the client call because the client call creates
|
||||
// a teardown which close the connection before this gets invoked if called
|
||||
// after it.
|
||||
teardown(function() {
|
||||
camera.close();
|
||||
});
|
||||
|
||||
var assert = require('assert');
|
||||
var client = marionette.client({
|
||||
desiredCapabilities: { raisesAccessibilityExceptions: false }
|
||||
});
|
||||
var camera = new (require('./lib/camera'))(client);
|
||||
|
||||
setup(function() {
|
||||
camera.launch();
|
||||
});
|
||||
|
||||
test('enables grid', function() {
|
||||
camera.waitForHudReady();
|
||||
camera.tapSettings();
|
||||
camera.waitForSettingsPanel();
|
||||
camera.tapGridSettings();
|
||||
camera.waitForSettingOptionsPanel();
|
||||
camera.tapOnOption();
|
||||
camera.waitForGridOn();
|
||||
});
|
||||
|
||||
test('disables grid', function() {
|
||||
camera.waitForHudReady();
|
||||
camera.tapSettings();
|
||||
camera.waitForSettingsPanel();
|
||||
camera.tapGridSettings();
|
||||
camera.waitForSettingOptionsPanel();
|
||||
camera.tapOffOption();
|
||||
camera.waitForGridOff();
|
||||
});
|
||||
|
||||
test('enables timer', function() {
|
||||
camera.waitForHudReady();
|
||||
camera.tapSettings();
|
||||
camera.waitForSettingsPanel();
|
||||
camera.tapSelfTimerSettings();
|
||||
camera.waitForSettingOptionsPanel();
|
||||
camera.tapSelfTimer2SecsOption();
|
||||
camera.waitForNotification();
|
||||
});
|
||||
|
||||
test('takes picture with 2 seconds timer', function() {
|
||||
camera.waitForHudReady();
|
||||
camera.tapSettings();
|
||||
camera.waitForSettingsPanel();
|
||||
camera.tapSelfTimerSettings();
|
||||
camera.waitForSettingOptionsPanel();
|
||||
camera.tapSelfTimer2SecsOption();
|
||||
camera.waitForNotification();
|
||||
camera.tapCapture();
|
||||
camera.waitForCountDown();
|
||||
camera.waitForThumbnail();
|
||||
});
|
||||
|
||||
test('disables timer', function() {
|
||||
camera.waitForHudReady();
|
||||
camera.tapSettings();
|
||||
camera.waitForSettingsPanel();
|
||||
camera.tapSelfTimerSettings();
|
||||
camera.waitForSettingOptionsPanel();
|
||||
camera.tapOffOption();
|
||||
camera.waitForNotification();
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Reference in a new issue