|
|
@@ -40,3 +40,21 @@ describe( 'getPluginPath()', function() {
|
|
|
expect( path ).to.equal( basePath + 'plugins/test/' );
|
|
|
} );
|
|
|
} );
|
|
|
+
|
|
|
+describe( 'isDebug', function() {
|
|
|
+ it( 'is a boolean', function() {
|
|
|
+ var CKEDITOR = modules.ckeditor;
|
|
|
+
|
|
|
+ expect( CKEDITOR.isDebug ).to.be.a( 'boolean' );
|
|
|
+ } );
|
|
|
+
|
|
|
+ // Generally speaking these two properties are unrelated, but by default if we're in the dev mode,
|
|
|
+ // we're also debugging. The opposite isn't necessarily true - we may be debugging a build version.
|
|
|
+ it( 'is true if isDev is true', function() {
|
|
|
+ var CKEDITOR = modules.ckeditor;
|
|
|
+
|
|
|
+ if ( CKEDITOR.isDev ) {
|
|
|
+ expect( CKEDITOR.isDebug ).to.be.true;
|
|
|
+ }
|
|
|
+ } );
|
|
|
+} );
|