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:
Aaron Dodson
2022-04-19 14:17:17 -07:00
committed by GitHub
parent b0612da6f3
commit edc2a5cd0c
58 changed files with 758 additions and 369 deletions

View File

@@ -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() {