mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
fix: fieldDropdown.getText works in node (#9048)
* fix: dropdown getText works in node * chore: comment
This commit is contained in:
@@ -181,4 +181,11 @@ suite('Test Node.js', function () {
|
||||
|
||||
assert.deepEqual(jsonAfter, json);
|
||||
});
|
||||
test('Dropdown getText works with no HTMLElement defined', function () {
|
||||
const field = new Blockly.FieldDropdown([
|
||||
['firstOption', '1'],
|
||||
['secondOption', '2'],
|
||||
]);
|
||||
assert.equal(field.getText(), 'firstOption');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user