Skip to content

Commit e114a31

Browse files
committed
add fullscreencontainer option
1 parent 7b33387 commit e114a31

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

addon-test-support/index.js

+8-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,11 @@ 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
108+
? 'fixed'
109+
: 'relative';
107110

108-
if (params.devmode) {
111+
if (params.devmode || params.fullscreencontainer) {
109112
testContainer.className = ' full-screen';
110113
}
111114

0 commit comments

Comments
 (0)