Skip to content

Commit

Permalink
Refactored balloon toolbar manual tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekbogdanski committed Apr 10, 2019
1 parent 7df4b59 commit 773676c
Show file tree
Hide file tree
Showing 22 changed files with 29 additions and 57 deletions.
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/context/manual/complex.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
</div>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/context/manual/context.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
</div>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ <h2>Inline editor</h2>
</div>

<script>
// Ignore on mobiles due to 'mousedown' event.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 || bender.tools.env.mobile ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.on( 'instanceReady', function( evt ) {
evt.editor.balloonToolbars.create( {
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/context/manual/imgselect.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
</div>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/context/manual/toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
</style>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/context/manual/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
</div>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
4 changes: 3 additions & 1 deletion tests/plugins/balloontoolbar/context/manual/widgetdnd.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@

<script>
// Ignore on mobiles due to lack of support for widgets drag and drop.
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 || bender.tools.env.mobile ) {
if ( bender.tools.env.mobile ) {
bender.ignore();
}

bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

CKEDITOR.skin.addIcon( 'testcommandButton', '%BASE_PATH%_assets/test_icon.png' );
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/balloontoolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
</div>
<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
5 changes: 3 additions & 2 deletions tests/plugins/balloontoolbar/manual/contextapi.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<textarea id="editor1" cols="10" rows="10"></textarea>
<script>
// Currently balloon toolbar is not integrated with old IE browsers.
// Ignore on mobiles due to browser dev console requirement.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 || bender.tools.env.mobile ) {
if ( bender.tools.env.mobile ) {
bender.ignore();
}

bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.plugins.add( 'testplugin', {
requires: 'balloontoolbar',
init: function( editor ) {
Expand Down
5 changes: 3 additions & 2 deletions tests/plugins/balloontoolbar/manual/destroy.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
</ul>
</textarea>
<script>
// Currently balloon toolbar is not integrated with old IE browsers.
// Ignore mobiles, as test requires using console.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 || bender.tools.env.mobile ) {
if ( bender.tools.env.mobile ) {
bender.ignore();
}

bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.replace( 'editor1', {
on: {
instanceReady: instanceReadyListener
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/drag.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;
function instanceReadyListener( evt ) {
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/fallbackstyles.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
</div>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );
function instanceReadyListener( evt ) {
var images = this.editable().find( 'img' ).toArray(),
panel = new CKEDITOR.ui.balloonToolbar( this );
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/focus.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@

<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;
function instanceReadyListener( evt ) {
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/kama.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );
CKEDITOR.disableAutoInline = true;

function instanceReadyListener( evt ) {
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/moono-lisa.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );
CKEDITOR.disableAutoInline = true;

function instanceReadyListener( evt ) {
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/moono.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );
CKEDITOR.disableAutoInline = true;

function instanceReadyListener( evt ) {
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/moonolisaflickering.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

function instanceReadyListener( evt ) {
var image = this.editable().findOne( 'img' ),
Expand Down
1 change: 1 addition & 0 deletions tests/plugins/balloontoolbar/manual/positioning.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<p class="spacer"></p>

<script>
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );
CKEDITOR.replace( 'editor', {
extraAllowedContent: 'span;p{margin}',
plugins: 'toolbar,wysiwygarea,basicstyles,balloontoolbar',
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/refreshposition.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
</div>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
2 changes: 2 additions & 0 deletions tests/plugins/balloontoolbar/manual/reposition.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
</form>

<script>
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.addCss( '.square{background:indianred;position:absolute}' );

editor = CKEDITOR.replace( 'editor', {
Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/skinpath.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

<script>
// Currently balloon toolbar is not integrated with old IE browsers.
if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down
4 changes: 1 addition & 3 deletions tests/plugins/balloontoolbar/manual/windowresize.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ <h2>Divarea</h2>
</textarea>

<script>
if ( CKEDITOR.env.ie && CKEDITOR.env.version === 8 ) {
bender.ignore();
}
bender.tools.ignoreUnsupportedEnvironment( 'balloontoolbar' );

CKEDITOR.disableAutoInline = true;

Expand Down

0 comments on commit 773676c

Please sign in to comment.