8
0
Piotrek Koszuliński 9 лет назад
Родитель
Сommit
52da2441ce
43 измененных файлов с 273 добавлено и 182 удалено
  1. 92 62
      .jscsrc
  2. 10 11
      .jshintrc
  3. 1 1
      bender.js
  4. 10 11
      dev/.jshintrc
  5. 1 1
      dev/tasks/dev/templates/gulpfile.js
  6. 92 0
      dev/tasks/exec/functions/remove-use-strict.js
  7. 6 1
      dev/tasks/exec/tasks.js
  8. 29 6
      dev/tests/utils/ckeditor5-dirs.js
  9. 10 1
      dev/utils/ckeditor5-dirs.js
  10. 1 1
      gulpfile.js
  11. 0 2
      src/command/attributecommand.js
  12. 0 2
      src/command/command.js
  13. 0 2
      src/editor/editor.js
  14. 0 2
      src/editor/standardeditor.js
  15. 0 2
      src/feature.js
  16. 0 2
      src/keystrokehandler.js
  17. 0 2
      src/load__amd.js
  18. 0 2
      src/load__cjs.js
  19. 0 2
      src/load__esnext.js
  20. 0 2
      src/plugin.js
  21. 0 2
      src/plugincollection.js
  22. 21 23
      tests/.jshintrc
  23. 0 2
      tests/_utils-tests/classictesteditor.js
  24. 0 2
      tests/_utils-tests/createsinonsandbox.js
  25. 0 2
      tests/_utils-tests/modeltesteditor.js
  26. 0 2
      tests/_utils-tests/module__amd.js
  27. 0 2
      tests/_utils-tests/module__cjs.js
  28. 0 2
      tests/_utils-tests/virtualtesteditor.js
  29. 0 2
      tests/_utils/classictesteditor.js
  30. 0 2
      tests/_utils/modeltesteditor.js
  31. 0 2
      tests/_utils/module__amd.js
  32. 0 2
      tests/_utils/module__cjs.js
  33. 0 2
      tests/_utils/utils.js
  34. 0 2
      tests/_utils/virtualtesteditor.js
  35. 0 2
      tests/command/attributecommand.js
  36. 0 2
      tests/command/command.js
  37. 0 2
      tests/editor/editor-base.js
  38. 0 2
      tests/editor/editor.js
  39. 0 2
      tests/editor/standardeditor.js
  40. 0 2
      tests/keystrokehandler.js
  41. 0 2
      tests/load.js
  42. 0 2
      tests/plugin.js
  43. 0 2
      tests/plugincollection.js

+ 92 - 62
.jscsrc

@@ -1,63 +1,93 @@
 {
-	"esnext": true,
-
-	"requireCurlyBraces": [
-		"if", "else", "for", "while", "do", "switch", "try", "catch"
-	],
-	"requireSpaceBeforeKeywords": true,
-	"requireSpaceAfterKeywords": [
-		"do", "for", "if", "else", "switch", "case", "try", "catch", "void", "while", "with", "return", "typeof"
-	],
-	"requireSpaceBeforeBlockStatements": true,
-	"requireParenthesesAroundIIFE": true,
-	"requireSpacesInConditionalExpression": {
-		"afterTest": true,
-		"beforeConsequent": true,
-		"afterConsequent": true,
-		"beforeAlternate": true
-	},
-	"requireSpacesInFunction": {
-		"beforeOpeningCurlyBrace": true
-	},
-	"disallowSpacesInFunction": {
-		"beforeOpeningRoundBrace": true
-	},
-	"disallowSpacesInCallExpression": true,
-	"disallowMultipleVarDecl": "exceptUndefined",
-	"requireBlocksOnNewline": true,
-	"disallowPaddingNewlinesInBlocks": true,
-	"requirePaddingNewlinesBeforeKeywords": [
-		"do", "for", "if", "switch", "case", "try", "while", "with", "return"
-	],
-	"requireSpacesInsideObjectBrackets": "all",
-	"requireSpacesInsideArrayBrackets": "all",
-	"requireSpacesInsideParentheses": "all",
-	"disallowSpaceAfterObjectKeys": true,
-	"requireSpaceBeforeObjectValues": true,
-	"requireCommaBeforeLineBreak": true,
-	"requireOperatorBeforeLineBreak": true,
-	"disallowSpaceAfterPrefixUnaryOperators": true,
-	"disallowSpaceBeforePostfixUnaryOperators": true,
-	"requireSpaceBeforeBinaryOperators": true,
-	"disallowImplicitTypeConversion": [
-		"numeric", "binary", "string"
-	],
-	"requireCamelCaseOrUpperCaseIdentifiers": true,
-	"requireSpaceAfterBinaryOperators": true,
-	"disallowKeywords": [
-		"with"
-	],
-	"disallowMultipleLineStrings": true,
-	"disallowMultipleLineBreaks": true,
-	"disallowMixedSpacesAndTabs": true,
-	"disallowTrailingWhitespace": true,
-	"maximumLineLength": 140,
-	"requireCapitalizedConstructors": true,
-	"requireDotNotation": true,
-	"disallowYodaConditions": true,
-	"disallowNewlineBeforeBlockStatements": true,
-	"validateLineBreaks": "LF",
-	"validateQuoteMarks": "'",
-	"validateIndentation": "\t",
-	"safeContextKeyword": [ "that" ]
-}
+  "esnext": true,
+  "requireCurlyBraces": [
+    "if",
+    "else",
+    "for",
+    "while",
+    "do",
+    "switch",
+    "try",
+    "catch"
+  ],
+  "requireSpaceBeforeKeywords": true,
+  "requireSpaceAfterKeywords": [
+    "do",
+    "for",
+    "if",
+    "else",
+    "switch",
+    "case",
+    "try",
+    "catch",
+    "void",
+    "while",
+    "with",
+    "return",
+    "typeof"
+  ],
+  "requireSpaceBeforeBlockStatements": true,
+  "requireParenthesesAroundIIFE": true,
+  "requireSpacesInConditionalExpression": {
+    "afterTest": true,
+    "beforeConsequent": true,
+    "afterConsequent": true,
+    "beforeAlternate": true
+  },
+  "requireSpacesInFunction": {
+    "beforeOpeningCurlyBrace": true
+  },
+  "disallowSpacesInFunction": {
+    "beforeOpeningRoundBrace": true
+  },
+  "disallowSpacesInCallExpression": true,
+  "disallowMultipleVarDecl": "exceptUndefined",
+  "requireBlocksOnNewline": true,
+  "disallowPaddingNewlinesInBlocks": true,
+  "requirePaddingNewlinesBeforeKeywords": [
+    "do",
+    "for",
+    "if",
+    "switch",
+    "case",
+    "try",
+    "while",
+    "with",
+    "return"
+  ],
+  "requireSpacesInsideObjectBrackets": "all",
+  "requireSpacesInsideArrayBrackets": "all",
+  "requireSpacesInsideParentheses": "all",
+  "disallowSpaceAfterObjectKeys": true,
+  "requireSpaceBeforeObjectValues": true,
+  "requireCommaBeforeLineBreak": true,
+  "requireOperatorBeforeLineBreak": true,
+  "disallowSpaceAfterPrefixUnaryOperators": true,
+  "disallowSpaceBeforePostfixUnaryOperators": true,
+  "requireSpaceBeforeBinaryOperators": true,
+  "disallowImplicitTypeConversion": [
+    "numeric",
+    "binary",
+    "string"
+  ],
+  "requireCamelCaseOrUpperCaseIdentifiers": true,
+  "requireSpaceAfterBinaryOperators": true,
+  "disallowKeywords": [
+    "with"
+  ],
+  "disallowMultipleLineStrings": true,
+  "disallowMultipleLineBreaks": true,
+  "disallowMixedSpacesAndTabs": true,
+  "disallowTrailingWhitespace": true,
+  "maximumLineLength": 140,
+  "requireCapitalizedConstructors": true,
+  "requireDotNotation": true,
+  "disallowYodaConditions": true,
+  "disallowNewlineBeforeBlockStatements": true,
+  "validateLineBreaks": "LF",
+  "validateQuoteMarks": "'",
+  "validateIndentation": "\t",
+  "safeContextKeyword": [
+    "that"
+  ]
+}

+ 10 - 11
.jshintrc

@@ -1,13 +1,12 @@
 {
-	"browser": true,
-	"esnext": true,
-
-	"immed": true,
-	"loopfunc": true,
-	"noarg": true,
-	"nonbsp": true,
-	"undef": true,
-	"unused": true,
-	"strict": "global",
-	"varstmt": true
+  "browser": true,
+  "esnext": true,
+  "immed": true,
+  "loopfunc": true,
+  "noarg": true,
+  "nonbsp": true,
+  "undef": true,
+  "unused": true,
+  "strict": "implied",
+  "varstmt": true
 }

+ 1 - 1
bender.js

@@ -1,4 +1,4 @@
-/* jshint browser: false, node: true */
+/* jshint browser: false, node: true, strict: true */
 
 'use strict';
 

+ 10 - 11
dev/.jshintrc

@@ -1,13 +1,12 @@
 {
-	"node": true,
-	"esnext": true,
-
-	"immed": true,
-	"loopfunc": true,
-	"noarg": true,
-	"nonbsp": true,
-	"undef": true,
-	"unused": true,
-	"strict": true,
-	"varstmt": true
+  "node": true,
+  "esnext": true,
+  "immed": true,
+  "loopfunc": true,
+  "noarg": true,
+  "nonbsp": true,
+  "undef": true,
+  "unused": true,
+  "strict": true,
+  "varstmt": true
 }

+ 1 - 1
dev/tasks/dev/templates/gulpfile.js

@@ -1,4 +1,4 @@
-/* jshint node: true */
+/* jshint browser: false, node: true, strict: true */
 
 'use strict';
 

+ 92 - 0
dev/tasks/exec/functions/remove-use-strict.js

@@ -0,0 +1,92 @@
+/**
+ * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+'use strict';
+
+const gulp = require( 'gulp' );
+const path = require( 'path' );
+const replace = require( 'gulp-replace' );
+const filterGitignore = require( '../utils/filtergitignore' );
+const filter = require( 'gulp-filter' );
+const tools = require( '../../../utils/tools' );
+
+/**
+ * Removes lines with `'use strict';` directive.
+ *
+ * Example:
+ *
+ *		gulp exec --task remove-use-strict --include-root
+ *
+ * @param {String} workdir
+ * @returns {Stream}
+ */
+module.exports = function executeRemoveUseStrict( workdir ) {
+	updateJshintrc( workdir );
+	reformatOtherConfigs( workdir );
+
+	return removeUseStrict( workdir );
+};
+
+// Updates .jshintrc file's `strict` option with `implied` value.
+//
+// @param {String} workdir Path of directory to be processed.
+function updateJshintrc( workdir ) {
+	[ '/', 'tests/' ].forEach(
+		dir => {
+			const jshintrcPath = path.join( workdir, dir, '.jshintrc' );
+
+			tools.updateJSONFile( jshintrcPath, json => {
+				json.strict = 'implied';
+
+				return json;
+			} );
+		}
+	);
+}
+
+// Reformats (to match other .jshintrc files and package.json code style) the .jshintrc from dev/ and main .jscsrc.
+//
+// @param {String} workdir Path of directory to be processed.
+function reformatOtherConfigs( workdir ) {
+	tools.updateJSONFile( path.join( workdir, 'dev', '.jshintrc' ), json => json );
+	tools.updateJSONFile( path.join( workdir, '.jscsrc' ), json => json );
+}
+
+// Removes `'use strict';` directive from project's source files. Omits files listed in `.gitignore`.
+//
+// @param {String} workdir Path of directory to be processed.
+// @returns {Stream}
+function removeUseStrict( workdir ) {
+	const glob = path.join( workdir, '**/*.js' );
+	const filterDev = filter( '@(src|tests)/**/*.js', { restore: true } );
+	const filterGulpfileAndBender = filter(
+		[ 'gulpfile.js', 'dev/tasks/dev/templates/gulpfile.js', 'bender.js' ],
+		{ restore: true }
+	);
+
+	const useStrictRegex = /^\s*'use strict';\s*$/gm;
+	const jshintInlineConfigRegex = /\/\* jshint( browser: false,)? node: true \*\//;
+
+	return gulp.src( glob )
+		.pipe( filterGitignore() )
+
+		// Remove use strict from src/ and tests/.
+		.pipe( filterDev )
+		.pipe( replace(
+			useStrictRegex,
+			''
+		) )
+		.pipe( filterDev.restore )
+
+		// Fix gulpfile.js and bender.js.
+		.pipe( filterGulpfileAndBender )
+		.pipe( replace(
+			jshintInlineConfigRegex,
+			'/* jshint browser: false, node: true, strict: true */'
+		) )
+		.pipe( filterGulpfileAndBender.restore )
+
+		.pipe( gulp.dest( workdir ) );
+}

+ 6 - 1
dev/tasks/exec/tasks.js

@@ -23,6 +23,10 @@ const ckeditor5Dirs = require( '../../utils/ckeditor5-dirs' );
  *
  *		gulp exec --task task-name --repository ckeditor5-utils
  *
+ * Example of running task including root `ckeditor5` package
+ *
+ *		gulp exec --task task-name --include-root
+ *
  * @param {Object} config Task runner configuration.
  * @returns {Stream} Stream with processed files.
  */
@@ -75,8 +79,9 @@ function execute( execTask, ckeditor5Path, packageJSON, workspaceRoot, params )
 	const workspacePath = path.join( ckeditor5Path, workspaceRoot );
 	const mergedStream = merge();
 	const specificRepository = params.repository;
+	const includeRoot = !!params[ 'include-root' ];
 
-	let devDirectories = ckeditor5Dirs.getDevDirectories( workspacePath, packageJSON, ckeditor5Path );
+	let devDirectories = ckeditor5Dirs.getDevDirectories( workspacePath, packageJSON, ckeditor5Path, includeRoot );
 
 	if ( specificRepository ) {
 		devDirectories = devDirectories.filter( ( dir ) => {

+ 29 - 6
dev/tests/utils/ckeditor5-dirs.js

@@ -65,9 +65,9 @@ describe( 'utils', () => {
 				sandbox.stub( tools, 'getDirectories', () => sourceDirectories );
 				const directories = ckeditor5Dirs.getDirectories( workspacePath );
 
-				expect( directories.length ).equal( 2 );
-				expect( directories[ 0 ] ).equal( 'ckeditor5-core' );
-				expect( directories[ 1 ] ).equal( 'ckeditor5-plugin-image' );
+				expect( directories.length ).to.equal( 2 );
+				expect( directories[ 0 ] ).to.equal( 'ckeditor5-core' );
+				expect( directories[ 1 ] ).to.equal( 'ckeditor5-plugin-image' );
 			} );
 		} );
 
@@ -131,12 +131,35 @@ describe( 'utils', () => {
 
 				const directories = ckeditor5Dirs.getDevDirectories( workspacePath, packageJSONDependencies, ckeditor5Path );
 
-				expect( directories.length ).equal( 2 );
-				expect( directories[ 0 ] ).eql( {
+				expect( directories.length ).to.equal( 2 );
+				expect( directories[ 0 ] ).to.deep.equal( {
 						repositoryURL: 'ckeditor/ckeditor5-plugin-image',
 						repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-plugin-image'
 					} );
-				expect( directories[ 1 ] ).eql( {
+				expect( directories[ 1 ] ).to.deep.equal( {
+						repositoryURL: 'ckeditor/ckeditor5-core',
+						repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-core'
+					} );
+			} );
+
+			it( 'should return only ckeditor5 directories in development mode, including root directory', () => {
+				sandbox.stub( ckeditor5Dirs, 'getDirectories', () => sourceDirectories );
+				sandbox.stub( ckeditor5Dirs, 'getDependencies', () => dependencies );
+				sandbox.stub( git, 'parseRepositoryUrl' ).returns( repositoryInfo );
+				const includeRoot = true;
+
+				const directories = ckeditor5Dirs.getDevDirectories( workspacePath, packageJSONDependencies, ckeditor5Path, includeRoot );
+
+				expect( directories.length ).to.equal( 3 );
+				expect( directories[ 0 ] ).to.deep.equal( {
+						repositoryURL: 'ckeditor/ckeditor5',
+						repositoryPath: '/workspace/path/ckeditor5'
+					} );
+				expect( directories[ 1 ] ).to.deep.equal( {
+						repositoryURL: 'ckeditor/ckeditor5-plugin-image',
+						repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-plugin-image'
+					} );
+				expect( directories[ 2 ] ).to.deep.equal( {
 						repositoryURL: 'ckeditor/ckeditor5-core',
 						repositoryPath: '/workspace/path/ckeditor5/node_modules/ckeditor5-core'
 					} );

+ 10 - 1
dev/utils/ckeditor5-dirs.js

@@ -72,9 +72,10 @@ module.exports = {
 	 * @param {String} workspacePath Absolute path to workspace.
 	 * @param {Object} packageJSON Contents of `ckeditor5` repo `package.json` file.
 	 * @param {String} ckeditor5Path Absolute path to ckeditor5 root directory.
+	 * @param {Boolean} includeRoot Include main `ckeditor5` package.
 	 * @returns {Array.<Object>}
 	 */
-	getDevDirectories( workspacePath, packageJSON, ckeditor5Path ) {
+	getDevDirectories( workspacePath, packageJSON, ckeditor5Path, includeRoot ) {
 		const directories = this.getDirectories( workspacePath );
 		const dependencies = this.getDependencies( packageJSON.dependencies );
 
@@ -94,6 +95,14 @@ module.exports = {
 			}
 		}
 
+		if ( includeRoot ) {
+			// Add root dependency and directory.
+			devDirectories.unshift( {
+				repositoryPath: ckeditor5Path,
+				repositoryURL: 'ckeditor/ckeditor5'
+			} );
+		}
+
 		return devDirectories;
 	}
 };

+ 1 - 1
gulpfile.js

@@ -1,4 +1,4 @@
-/* jshint node: true */
+/* jshint browser: false, node: true, strict: true */
 
 'use strict';
 

+ 0 - 2
src/command/attributecommand.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Command from './command.js';
 import TreeWalker from '../engine/model/treewalker.js';
 import Range from '../engine/model/range.js';

+ 0 - 2
src/command/command.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import ObservableMixin from '../utils/observablemixin.js';
 import mix from '../utils/mix.js';
 

+ 0 - 2
src/editor/editor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import EmitterMixin from '../utils/emittermixin.js';
 import Config from '../utils/config.js';
 import PluginCollection from '../plugincollection.js';

+ 0 - 2
src/editor/standardeditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Editor from './editor.js';
 import KeystrokeHandler from '../keystrokehandler.js';
 import EditingController from '../engine/editingcontroller.js';

+ 0 - 2
src/feature.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Plugin from './plugin.js';
 
 /**

+ 0 - 2
src/keystrokehandler.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import EmitterMixin from './utils/emittermixin.js';
 import { getCode, parseKeystroke } from './utils/keyboard.js';
 

+ 0 - 2
src/load__amd.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 // We import the 'require' module, so Require.JS gives us a localized version of require().
 // Otherwise we would use the global one which resolves paths relatively to the base dir.
 import require from 'require';

+ 0 - 2
src/load__cjs.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 /* global require */
 
 export default function load( modulePath ) {

+ 0 - 2
src/load__esnext.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 /* global System */
 
 export default function load( modulePath ) {

+ 0 - 2
src/plugin.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import ObservableMixin from './utils/observablemixin.js';
 import mix from './utils/mix.js';
 

+ 0 - 2
src/plugincollection.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Plugin from './plugin.js';
 import CKEditorError from './utils/ckeditorerror.js';
 import log from './utils/log.js';

+ 21 - 23
tests/.jshintrc

@@ -1,25 +1,23 @@
 {
-	"browser": true,
-	"esnext": true,
-
-	"expr": true,
-	"immed": true,
-	"loopfunc": true,
-	"noarg": true,
-	"nonbsp": true,
-	"strict": "global",
-	"undef": true,
-	"unused": true,
-	"varstmt": true,
-
-	"globals": {
-		"after": false,
-		"afterEach": false,
-		"before": false,
-		"beforeEach": false,
-		"describe": false,
-		"expect": false,
-		"it": false,
-		"sinon": false
-	}
+  "browser": true,
+  "esnext": true,
+  "expr": true,
+  "immed": true,
+  "loopfunc": true,
+  "noarg": true,
+  "nonbsp": true,
+  "strict": "implied",
+  "undef": true,
+  "unused": true,
+  "varstmt": true,
+  "globals": {
+    "after": false,
+    "afterEach": false,
+    "before": false,
+    "beforeEach": false,
+    "describe": false,
+    "expect": false,
+    "it": false,
+    "sinon": false
+  }
 }

+ 0 - 2
tests/_utils-tests/classictesteditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import StandardEditor from '/ckeditor5/editor/standardeditor.js';
 import ClassicTestEditor from '/tests/ckeditor5/_utils/classictesteditor.js';
 import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';

+ 0 - 2
tests/_utils-tests/createsinonsandbox.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import testUtils from '/tests/ckeditor5/_utils/utils.js';
 
 const obj = {

+ 0 - 2
tests/_utils-tests/modeltesteditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Editor from '/ckeditor5/editor/editor.js';
 import ModelTestEditor from '/tests/ckeditor5/_utils/modeltesteditor.js';
 import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';

+ 0 - 2
tests/_utils-tests/module__amd.js

@@ -5,8 +5,6 @@
 
 /* global require, bender */
 
-'use strict';
-
 import testUtils from '/tests/ckeditor5/_utils/utils.js';
 import moduleTestUtils from '/tests/ckeditor5/_utils/module.js';
 

+ 0 - 2
tests/_utils-tests/module__cjs.js

@@ -5,8 +5,6 @@
 
 /* global require, process */
 
-'use strict';
-
 import testUtils from '/tests/ckeditor5/_utils/utils.js';
 import moduleTestUtils from '/tests/ckeditor5/_utils/module.js';
 

+ 0 - 2
tests/_utils-tests/virtualtesteditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import StandardEditor from '/ckeditor5/editor/standardeditor.js';
 import VirtualTestEditor from '/tests/ckeditor5/_utils/virtualtesteditor.js';
 import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';

+ 0 - 2
tests/_utils/classictesteditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import StandardEditor from '/ckeditor5/editor/standardeditor.js';
 
 import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';

+ 0 - 2
tests/_utils/modeltesteditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Editor from '/ckeditor5/editor/editor.js';
 import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';
 

+ 0 - 2
tests/_utils/module__amd.js

@@ -5,8 +5,6 @@
 
 /* globals bender, define, require */
 
-'use strict';
-
 /**
  * AMD tools related to CKEditor.
  */

+ 0 - 2
tests/_utils/module__cjs.js

@@ -5,8 +5,6 @@
 
 /* globals require, process */
 
-'use strict';
-
 const mockery = require( 'mockery' );
 mockery.enable( {
 	warnOnReplace: false,

+ 0 - 2
tests/_utils/utils.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 /**
  * General test utils for CKEditor.
  */

+ 0 - 2
tests/_utils/virtualtesteditor.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import StandardEditor from '/ckeditor5/editor/standardeditor.js';
 import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';
 

+ 0 - 2
tests/command/attributecommand.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Editor from '/ckeditor5/editor/editor.js';
 import Document from '/ckeditor5/engine/model/document.js';
 import AttributeCommand from '/ckeditor5/command/attributecommand.js';

+ 0 - 2
tests/command/command.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Editor from '/ckeditor5/editor/editor.js';
 import Command from '/ckeditor5/command/command.js';
 

+ 0 - 2
tests/editor/editor-base.js

@@ -5,8 +5,6 @@
 
 /* bender-tags: editor */
 
-'use strict';
-
 import Editor from '/ckeditor5/editor/editor.js';
 import Command from '/ckeditor5/command/command.js';
 import Locale from '/ckeditor5/utils/locale.js';

+ 0 - 2
tests/editor/editor.js

@@ -5,8 +5,6 @@
 
 /* bender-tags: editor, browser-only */
 
-'use strict';
-
 import moduleUtils from '/tests/ckeditor5/_utils/module.js';
 import Editor from '/ckeditor5/editor/editor.js';
 import Plugin from '/ckeditor5/plugin.js';

+ 0 - 2
tests/editor/standardeditor.js

@@ -5,8 +5,6 @@
 
 /* bender-tags: editor, browser-only */
 
-'use strict';
-
 import StandardEditor from '/ckeditor5/editor/standardeditor.js';
 import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';
 import { getData, setData } from '/tests/engine/_utils/model.js';

+ 0 - 2
tests/keystrokehandler.js

@@ -5,8 +5,6 @@
 
 /* bender-tags: browser-only */
 
-'use strict';
-
 import VirtualTestEditor from '/tests/ckeditor5/_utils/virtualtesteditor.js';
 import KeystrokeHandler from '/ckeditor5/keystrokehandler.js';
 import { keyCodes } from '/ckeditor5/utils/keyboard.js';

+ 0 - 2
tests/load.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import load from '/ckeditor5/load.js';
 
 describe( 'load()', () => {

+ 0 - 2
tests/plugin.js

@@ -3,8 +3,6 @@
  * For licensing, see LICENSE.md.
  */
 
-'use strict';
-
 import Plugin from '/ckeditor5/plugin.js';
 import Editor from '/ckeditor5/editor/editor.js';
 

+ 0 - 2
tests/plugincollection.js

@@ -5,8 +5,6 @@
 
 /* bender-tags: browser-only */
 
-'use strict';
-
 import moduleUtils from '/tests/ckeditor5/_utils/module.js';
 import testUtils from '/tests/ckeditor5/_utils/utils.js';
 import Editor from '/ckeditor5/editor/editor.js';