Skip to content

Commit

Permalink
add fullscreencontainer option
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Oct 23, 2020
1 parent 7b33387 commit 18390dc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions addon-test-support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ export function setupApplicationTest(hooks, _options) {
Uses current URL configuration to setup the test container.
* If `?nocontainer` is set, the test container will be hidden.
* If `?dockcontainer` or `?devmode` are set the test container will be
absolutely positioned.
* If `?devmode` is set, the test container will be made full screen.
* If `?dockcontainer`, `?fullscreencontainer` or `?devmode` are set the test
container will be absolutely positioned.
* If `?devmode` or `?fullscreencontainer` is set, the test container will be
made full screen.
@method setupTestContainer
*/
Expand All @@ -103,9 +104,9 @@ export function setupTestContainer() {

let containerVisibility = params.nocontainer ? 'hidden' : 'visible';
let containerPosition =
params.dockcontainer || params.devmode ? 'fixed' : 'relative';
params.dockcontainer || params.devmode || params.fullscreencontainer ? 'fixed' : 'relative';

if (params.devmode) {
if (params.devmode || params.fullscreencontainer) {
testContainer.className = ' full-screen';
}

Expand Down

0 comments on commit 18390dc

Please sign in to comment.