mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
test: update mocha tests to use goog_module (#5440)
* Use goog.module in mocha tests * Fix compiler warnings * Make test helpers a module * Name test modules Blockly.test.* This is to be more consistent with how non-test modules are named. Also remove top-level goog.require of TestHelpers (now Blockly.test.helpers) since requiring a side-effect-less module does nothing. * Convert block_test.js and comment_test.js to goog.module syntax * Address PR comments * Goog modulify tests * Goog modulify toolbox helpers * Fixes imports and moves common tests from workspace_test.js to a helper file. * Update test deps after rebase Co-authored-by: Christopher Allen <cpcallen+git@google.com>
This commit is contained in:
@@ -33,8 +33,8 @@ Blockly.JavaScript['text_multiline'] = function(block) {
|
||||
* Enclose the provided value in 'String(...)' function.
|
||||
* Leave string literals alone.
|
||||
* @param {string} value Code evaluating to a value.
|
||||
* @return {[string, number]} Array containing code evaluating to a string and
|
||||
* the order of the returned code.
|
||||
* @return {Array<string|number>} Array containing code evaluating to a string and
|
||||
* the order of the returned code.[string, number]
|
||||
* @private
|
||||
*/
|
||||
Blockly.JavaScript.text.forceString_ = function(value) {
|
||||
|
||||
@@ -33,8 +33,8 @@ Blockly.Python['text_multiline'] = function(block) {
|
||||
* Enclose the provided value in 'str(...)' function.
|
||||
* Leave string literals alone.
|
||||
* @param {string} value Code evaluating to a value.
|
||||
* @return {[string, number]} Array containing code evaluating to a string and
|
||||
* the order of the returned code.
|
||||
* @return {Array<string|number>} Array containing code evaluating to a string and
|
||||
* the order of the returned code.[string, number]
|
||||
* @private
|
||||
*/
|
||||
Blockly.Python.text.forceString_ = function(value) {
|
||||
|
||||
Reference in New Issue
Block a user