Skip to content

Commit 18390dc

Browse files
committedOct 23, 2020
add fullscreencontainer option
1 parent 7b33387 commit 18390dc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
 

‎addon-test-support/index.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ export function setupApplicationTest(hooks, _options) {
8787
Uses current URL configuration to setup the test container.
8888
8989
* If `?nocontainer` is set, the test container will be hidden.
90-
* If `?dockcontainer` or `?devmode` are set the test container will be
91-
absolutely positioned.
92-
* If `?devmode` is set, the test container will be made full screen.
90+
* If `?dockcontainer`, `?fullscreencontainer` or `?devmode` are set the test
91+
container will be absolutely positioned.
92+
* If `?devmode` or `?fullscreencontainer` is set, the test container will be
93+
made full screen.
9394
9495
@method setupTestContainer
9596
*/
@@ -103,9 +104,9 @@ export function setupTestContainer() {
103104

104105
let containerVisibility = params.nocontainer ? 'hidden' : 'visible';
105106
let containerPosition =
106-
params.dockcontainer || params.devmode ? 'fixed' : 'relative';
107+
params.dockcontainer || params.devmode || params.fullscreencontainer ? 'fixed' : 'relative';
107108

108-
if (params.devmode) {
109+
if (params.devmode || params.fullscreencontainer) {
109110
testContainer.className = ' full-screen';
110111
}
111112

0 commit comments

Comments
 (0)