mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Fix unit tests
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user