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

Commit

Permalink
Bug 1173706 - Let system bootup and fake app launch use the same mari…
Browse files Browse the repository at this point in the history
…onette client.
  • Loading branch information
chenpighead committed Jun 15, 2015
1 parent 5a06fc6 commit c1aae51
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions apps/system/test/marionette/text_selection_test.js
Original file line number Diff line number Diff line change
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 @@ -371,8 +359,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 @@ -390,6 +379,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 @@ -423,7 +414,6 @@ marionette('Text selection >', function() {
clientWithLockscreen.waitFor(function() {
return !fakeTextselectionAppWithLockscreen.bubbleVisiblity;
});
});
});
});
});

0 comments on commit c1aae51

Please sign in to comment.