From 7eabb8e8a3a61412df22f71526e7a1ca374ccf3f Mon Sep 17 00:00:00 2001 From: Monica Kozbial Date: Fri, 19 Mar 2021 16:33:41 -0700 Subject: [PATCH] Update inccorect jsdoc in mocha tests (#4707) --- tests/mocha/field_checkbox_test.js | 4 ++-- tests/mocha/field_dropdown_test.js | 2 +- tests/mocha/field_image_test.js | 2 +- tests/mocha/field_label_serializable_test.js | 4 ++-- tests/mocha/field_label_test.js | 4 ++-- tests/mocha/field_multilineinput_test.js | 4 ++-- tests/mocha/field_textinput_test.js | 4 ++-- tests/mocha/field_variable_test.js | 4 ++-- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/mocha/field_checkbox_test.js b/tests/mocha/field_checkbox_test.js index f05be9099..bc9385f67 100644 --- a/tests/mocha/field_checkbox_test.js +++ b/tests/mocha/field_checkbox_test.js @@ -53,7 +53,7 @@ suite('Checkbox Fields', function() { var defaultFieldValue = 'FALSE'; /** * Asserts that the field property values are set to default. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldCheckbox} field The field to check. */ var assertFieldDefault = function(field) { testHelpers.assertFieldValue( @@ -61,7 +61,7 @@ suite('Checkbox Fields', function() { }; /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldCheckbox} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) { diff --git a/tests/mocha/field_dropdown_test.js b/tests/mocha/field_dropdown_test.js index 5f08dfb55..e65bda2f3 100644 --- a/tests/mocha/field_dropdown_test.js +++ b/tests/mocha/field_dropdown_test.js @@ -65,7 +65,7 @@ suite('Dropdown Fields', function() { /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldDropdown} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) { diff --git a/tests/mocha/field_image_test.js b/tests/mocha/field_image_test.js index e014f2b9d..cd958b8f1 100644 --- a/tests/mocha/field_image_test.js +++ b/tests/mocha/field_image_test.js @@ -47,7 +47,7 @@ suite('Image Fields', function() { /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldImage} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) { diff --git a/tests/mocha/field_label_serializable_test.js b/tests/mocha/field_label_serializable_test.js index c32ae444d..14ccdbfc3 100644 --- a/tests/mocha/field_label_serializable_test.js +++ b/tests/mocha/field_label_serializable_test.js @@ -45,14 +45,14 @@ suite('Label Serializable Fields', function() { var defaultFieldValue = ''; /** * Asserts that the field property values are set to default. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldLabelSerializable} field The field to check. */ var assertFieldDefault = function(field) { testHelpers.assertFieldValue(field, defaultFieldValue); }; /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldLabelSerializable} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) { diff --git a/tests/mocha/field_label_test.js b/tests/mocha/field_label_test.js index c9a0a480e..a6dffebc4 100644 --- a/tests/mocha/field_label_test.js +++ b/tests/mocha/field_label_test.js @@ -45,14 +45,14 @@ suite('Label Fields', function() { var defaultFieldValue = ''; /** * Asserts that the field property values are set to default. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldLabel} field The field to check. */ var assertFieldDefault = function(field) { testHelpers.assertFieldValue(field, defaultFieldValue); }; /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldLabel} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) { diff --git a/tests/mocha/field_multilineinput_test.js b/tests/mocha/field_multilineinput_test.js index 3bf110e83..c21e4bd0c 100644 --- a/tests/mocha/field_multilineinput_test.js +++ b/tests/mocha/field_multilineinput_test.js @@ -47,14 +47,14 @@ suite('Multiline Input Fields', function() { var defaultFieldValue = ''; /** * Asserts that the field property values are set to default. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldMultilineInput} field The field to check. */ var assertFieldDefault = function(field) { testHelpers.assertFieldValue(field, defaultFieldValue); }; /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldMultilineInput} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) { diff --git a/tests/mocha/field_textinput_test.js b/tests/mocha/field_textinput_test.js index 10a2b0138..76537675d 100644 --- a/tests/mocha/field_textinput_test.js +++ b/tests/mocha/field_textinput_test.js @@ -45,14 +45,14 @@ suite('Text Input Fields', function() { var defaultFieldValue = ''; /** * Asserts that the field property values are set to default. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldTextInput} field The field to check. */ var assertFieldDefault = function(field) { testHelpers.assertFieldValue(field, defaultFieldValue); }; /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldTextInput} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) { diff --git a/tests/mocha/field_variable_test.js b/tests/mocha/field_variable_test.js index 285c1d659..0048b8e09 100644 --- a/tests/mocha/field_variable_test.js +++ b/tests/mocha/field_variable_test.js @@ -75,14 +75,14 @@ suite('Variable Fields', function() { var defaultFieldName = FAKE_VARIABLE_NAME; /** * Asserts that the field property values are set to default. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldVariable} field The field to check. */ var assertFieldDefault = function(field) { testHelpers.assertFieldValue(field, FAKE_ID, defaultFieldName); }; /** * Asserts that the field properties are correct based on the test case. - * @param {!Blockly.FieldNumber} field The field to check. + * @param {!Blockly.FieldVariable} field The field to check. * @param {!FieldValueTestCase} testCase The test case. */ var validTestCaseAssertField = function(field, testCase) {