mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
fix: Fix compilation errors under Closure's strict mode (#6073)
* fix: Fix errors under strict compilation. * fix: Fix tests that referenced properties converted to data attributes. * fix: Incorporate feedback on resolving compiler errors. * refactor: Revert changes to skew and translate attributes. * refactor: Introduce LegacyContextMenuOption type to correspond to documented fields. * refactor: Introduce PathLeftShape and PathDownShape vs casting to PuzzleTab/Notch. * chore: Added nullability modifiers to type annotations. * refactor: Export FlyoutItem directly. * chore: clang-format renderers/zelos/drawer.js.
This commit is contained in:
@@ -105,9 +105,9 @@ suite('Text Input Fields', function() {
|
||||
suite('Validators', function() {
|
||||
setup(function() {
|
||||
this.field = new Blockly.FieldTextInput('value');
|
||||
this.field.htmlInput_ = Object.create(null);
|
||||
this.field.htmlInput_.oldValue_ = 'value';
|
||||
this.field.htmlInput_.untypedDefaultValue_ = 'value';
|
||||
this.field.htmlInput_ = document.createElement('input');
|
||||
this.field.htmlInput_.setAttribute('data-old-value', 'value');
|
||||
this.field.htmlInput_.setAttribute('data-untyped-default-value', 'value');
|
||||
this.stub = sinon.stub(this.field, 'resizeEditor_');
|
||||
});
|
||||
teardown(function() {
|
||||
|
||||
Reference in New Issue
Block a user