mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
chore: fix v11 branch build (#7836)
* chore: fix render management lint * fix: build
This commit is contained in:
@@ -16,7 +16,7 @@ const rootBlocks = new Set<BlockSvg>();
|
|||||||
const dirtyBlocks = new WeakSet<BlockSvg>();
|
const dirtyBlocks = new WeakSet<BlockSvg>();
|
||||||
|
|
||||||
/** A map from queued blocks to the event group from when they were queued. */
|
/** A map from queued blocks to the event group from when they were queued. */
|
||||||
let eventGroups = new WeakMap<BlockSvg, string>();
|
const eventGroups = new WeakMap<BlockSvg, string>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The promise which resolves after the current set of renders is completed. Or
|
* The promise which resolves after the current set of renders is completed. Or
|
||||||
|
|||||||
@@ -208,8 +208,6 @@ const JSCOMP_ERROR = [
|
|||||||
'conformanceViolations',
|
'conformanceViolations',
|
||||||
'const',
|
'const',
|
||||||
'constantProperty',
|
'constantProperty',
|
||||||
'deprecated',
|
|
||||||
'deprecatedAnnotations',
|
|
||||||
'duplicateMessage',
|
'duplicateMessage',
|
||||||
'es5Strict',
|
'es5Strict',
|
||||||
'externsValidation',
|
'externsValidation',
|
||||||
@@ -256,6 +254,8 @@ const JSCOMP_ERROR = [
|
|||||||
* it's generally sufficient to remove them from JSCOMP_ERROR.
|
* it's generally sufficient to remove them from JSCOMP_ERROR.
|
||||||
*/
|
*/
|
||||||
const JSCOMP_WARNING = [
|
const JSCOMP_WARNING = [
|
||||||
|
'deprecated',
|
||||||
|
'deprecatedAnnotations',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -74,6 +74,8 @@ suite('Render Management', function () {
|
|||||||
isDisposed: () => false,
|
isDisposed: () => false,
|
||||||
getRelativeToSurfaceXY: () => ({x: 0, y: 0}),
|
getRelativeToSurfaceXY: () => ({x: 0, y: 0}),
|
||||||
updateComponentLocations: () => {},
|
updateComponentLocations: () => {},
|
||||||
|
bumpNeighbours: () => {},
|
||||||
|
initialized: true,
|
||||||
workspace: ws || createMockWorkspace(),
|
workspace: ws || createMockWorkspace(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,4 +28,4 @@ testGenerator.forBlock['test_block'] = function (
|
|||||||
return ['a fake code string', Order.ADDITION];
|
return ['a fake code string', Order.ADDITION];
|
||||||
};
|
};
|
||||||
|
|
||||||
phpGenerator.quote_();
|
phpGenerator.quote_('a string');
|
||||||
|
|||||||
Reference in New Issue
Block a user