Add unit tests and code cleanup to utils (#1993)

* Add unit tests for new util functions
* Utils functions shouldn’t be package, not private.
* Use existing utility function for insertAfter
This commit is contained in:
Neil Fraser
2018-08-03 14:31:50 -07:00
committed by GitHub
parent cc60346cf0
commit c6afb08c4b
6 changed files with 53 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ Blockly.ScrollbarPair = function(workspace) {
'class': 'blocklyScrollbarBackground'
},
null);
Blockly.utils.insertAfter_(this.corner_, workspace.getBubbleCanvas());
Blockly.utils.insertAfter(this.corner_, workspace.getBubbleCanvas());
};
/**
@@ -625,7 +625,7 @@ Blockly.Scrollbar.prototype.createDom_ = function(opt_class) {
'ry': radius
},
this.svgGroup_);
Blockly.utils.insertAfter_(this.outerSvg_, this.workspace_.getParentSvg());
Blockly.utils.insertAfter(this.outerSvg_, this.workspace_.getParentSvg());
};
/**