mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
fix: flyout id is different than first placed block (#7618)
* add saveIds param and logic to save correctly * remove whitespace * add saveIds to recursive calls * run format * change name from addIds to saveIds * add saveIds test * change blockId on false saveIds to undefined
This commit is contained in:
@@ -61,6 +61,12 @@ suite('JSO Serialization', function () {
|
||||
assertProperty(jso, 'id', 'id0');
|
||||
});
|
||||
|
||||
test('saveId false', function () {
|
||||
const block = this.workspace.newBlock('row_block');
|
||||
const jso = Blockly.serialization.blocks.save(block, {saveIds: false});
|
||||
assertProperty(jso, 'id', undefined);
|
||||
});
|
||||
|
||||
suite('Attributes', function () {
|
||||
suite('Collapsed', function () {
|
||||
test('True', function () {
|
||||
|
||||
Reference in New Issue
Block a user