This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Bug 975249 - [marionette-helper] add tapInput method"
This reverts commit b4246b2.
- Loading branch information
Showing
5 changed files
with
39 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
suite('MarionetteHelper.tapSelectOption', function() { | ||
|
||
// Require needed files | ||
var FakeApp = require('./lib/fake_app'); | ||
marionette.plugin('helper', require('../../index')); | ||
marionette.plugin('apps', require('marionette-apps')); | ||
|
||
var helper; | ||
var fakeApp; | ||
var FAKE_APP_ORIGIN = 'fakeapp.gaiamobile.org'; | ||
|
||
var apps = {}; | ||
apps[FAKE_APP_ORIGIN] = __dirname + '/fakeapp'; | ||
|
||
var client = marionette.client({ | ||
settings: { | ||
'ftu.manifestURL': null, | ||
'lockscreen.enabled': false | ||
}, | ||
apps: apps | ||
}); | ||
|
||
setup(function(done) { | ||
helper = client.helper; | ||
fakeApp = new FakeApp(client, 'app://' + FAKE_APP_ORIGIN); | ||
fakeApp.launch(); | ||
setTimeout(done, 2500); // Instead of using the BootWatcher. | ||
}); | ||
|
||
test('should set on option', function() { | ||
var optionValue = 'option2'; | ||
helper.tapSelectOption('#select', optionValue); | ||
assert.ok(fakeApp.isSpecificSelectOptionSelected(optionValue)); | ||
}); | ||
}); |