Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30540 from chenpighead/Bug1173706
Browse files Browse the repository at this point in the history
Bug 1173706 - Let system bootup and fake app launch use the same marionette client.
  • Loading branch information
rvandermeulen committed Jun 15, 2015
2 parents e6267fd + c1aae51 commit 0a19986
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions apps/system/test/marionette/text_selection_test.js
Expand Up @@ -11,20 +11,6 @@ marionette('Text selection >', function() {
apps[FakeTextSelectionApp.ORIGIN] =
__dirname + '/../apps/faketextselectionapp';

var client = marionette.client({
apps: apps,
prefs: {
'dom.w3c_touch_events.enabled': 1,
'docshell.device_size_is_page_size': true,
'dom.mozInputMethod.enabled': false
}
});

setup(function() {
system = client.loader.getAppClass('system');
system.waitForFullyLoaded();
});

suite('without lockscreen', function() {
var fakeTextselectionApp;
var client = marionette.client({
Expand All @@ -38,6 +24,8 @@ marionette('Text selection >', function() {
});

setup(function() {
system = client.loader.getAppClass('system');
system.waitForFullyLoaded();
fakeTextselectionApp = new FakeTextSelectionApp(client);
action = new Actions(client);
});
Expand Down Expand Up @@ -370,8 +358,9 @@ marionette('Text selection >', function() {
fakeTextselectionApp.selectAll('BugTextarea');
assert.ok(fakeTextselectionApp.bubbleVisiblity,
'bubble should show since we press selectall');
});
});
});
});

suite('with lockscreen enabled', function() {
var fakeTextselectionAppWithLockscreen;
Expand All @@ -389,6 +378,8 @@ marionette('Text selection >', function() {
});

setup(function() {
system = clientWithLockscreen.loader.getAppClass('system');
system.waitForFullyLoaded();
fakeTextselectionAppWithLockscreen =
new FakeTextSelectionApp(clientWithLockscreen);
fakeTextselectionAppWithLockscreen.setTestFrame('bug');
Expand Down Expand Up @@ -422,7 +413,6 @@ marionette('Text selection >', function() {
clientWithLockscreen.waitFor(function() {
return !fakeTextselectionAppWithLockscreen.bubbleVisiblity;
});
});
});
});
});

0 comments on commit 0a19986

Please sign in to comment.