mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
Migrate core/widgetdiv.js to goog.module syntax (#5331)
* Migrate core/widgetdiv.js to ES6 const/let * Migrate core/widgetdiv.js to goog.module * Migrate core/widgetdiv.js to named requires * clang-format core/widgetdiv.js * Mark WidgetDiv.DIV as deprecated and refactor callers to use setters/getters * Fix deprecation date * Refactor tests to make setDiv() in core/widgetdiv.js test-only * Fix type annotations for WidgetDiv.DIV and move test cleanup into sharedTestTeardown
This commit is contained in:
@@ -40,7 +40,7 @@ suite('WidgetDiv', function() {
|
||||
anchorBBox, rtl, expectedX, expectedY, expectedHeight) {
|
||||
Blockly.WidgetDiv.positionWithAnchor(
|
||||
this.viewportBBox, anchorBBox, this.widgetSize, rtl);
|
||||
var style = Blockly.WidgetDiv.DIV.style;
|
||||
var style = Blockly.WidgetDiv.getDiv().style;
|
||||
chai.assert.equal(style.left, expectedX + 'px', 'Left');
|
||||
chai.assert.equal(style.top, expectedY + 'px', 'Top');
|
||||
chai.assert.equal(style.height, expectedHeight + 'px', 'Height');
|
||||
|
||||
Reference in New Issue
Block a user