Fix unit tests

This commit is contained in:
Neil Fraser
2019-07-02 15:59:25 -07:00
committed by Neil Fraser
parent 20d4a27f0a
commit 52b6ce18a5
68 changed files with 186 additions and 186 deletions

View File

@@ -780,7 +780,7 @@ FactoryUtils.getBlockTypeFromJsDefinition = function(blockDef) {
*/
FactoryUtils.generateCategoryXml = function(blocks, categoryName) {
// Create category DOM element.
var categoryElement = document.createElement('category');
var categoryElement = Blockly.utils.xml.createElement('category');
categoryElement.setAttribute('name', categoryName);
// For each block, add block element to category.