From bb19b4ce0c22e2b6f6157a73b64fec84d8e64830 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Mon, 8 Jul 2019 10:44:20 -0700 Subject: [PATCH] Reenabled parameter case tests. --- blocks/procedures.js | 2 +- tests/mocha/procedures_test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/procedures.js b/blocks/procedures.js index ed7bafd36..ae8f5040b 100644 --- a/blocks/procedures.js +++ b/blocks/procedures.js @@ -331,7 +331,7 @@ Blockly.Blocks['procedures_defnoreturn'] = { displayRenamedVar_: function(oldName, newName) { this.updateParams_(); // Update the mutator's variables if the mutator is open. - if (this.mutator.isVisible()) { + if (this.mutator && this.mutator.isVisible()) { var blocks = this.mutator.workspace_.getAllBlocks(false); for (var i = 0, block; block = blocks[i]; i++) { if (block.type == 'procedures_mutatorarg' && diff --git a/tests/mocha/procedures_test.js b/tests/mocha/procedures_test.js index 3dd048ae6..1b5850f31 100644 --- a/tests/mocha/procedures_test.js +++ b/tests/mocha/procedures_test.js @@ -377,7 +377,7 @@ suite('Procedures', function() { clearVariables.call(this); }, 'name'); }); - test.skip('lower -> CAPS', function() { + test('lower -> CAPS', function() { this.callForAllTypes(function() { createMutator.call(this, ['arg']); this.argBlock.setFieldValue('ARG', 'NAME'); @@ -386,7 +386,7 @@ suite('Procedures', function() { clearVariables.call(this); }, 'name'); }); - test.skip('CAPS -> lower', function() { + test('CAPS -> lower', function() { this.callForAllTypes(function() { createMutator.call(this, ['ARG']); this.argBlock.setFieldValue('arg', 'NAME');