mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
chore: Remove some more uses of AnyDuringMigration (#6785)
* chore: Remove uses of AnyDuringMigration in workspace_comment_svg.ts. * chore: Remove uses of AnyDuringMigration in toolbox.ts. * chore: Remove uses of AnyDuringMigration in field_colour.ts. * chore: Remove uses of AnyDuringMigration from field_image.ts. * chore: Remove uses of AnyDuringMigration from workspace.ts. * Update core/workspace_comment_svg.ts Co-authored-by: Christopher Allen <cpcallen+github@gmail.com> * chore: Remove uses of AnyDuringMigration in collapsible_category.ts. * chore: Revert unary - change to make clang-format happy. * chore: Remove unnecessary quotes in toolbox.ts. * Update core/workspace_comment_svg.ts Co-authored-by: Christopher Allen <cpcallen+github@gmail.com> --------- Co-authored-by: Christopher Allen <cpcallen+github@gmail.com>
This commit is contained in:
@@ -152,14 +152,14 @@ suite('Workspace comment', function() {
|
||||
});
|
||||
|
||||
test('Initial position', function() {
|
||||
const xy = this.comment.getXY();
|
||||
const xy = this.comment.getRelativeToSurfaceXY();
|
||||
chai.assert.equal(xy.x, 0, 'Initial X position');
|
||||
chai.assert.equal(xy.y, 0, 'Initial Y position');
|
||||
});
|
||||
|
||||
test('moveBy', function() {
|
||||
this.comment.moveBy(10, 100);
|
||||
const xy = this.comment.getXY();
|
||||
const xy = this.comment.getRelativeToSurfaceXY();
|
||||
chai.assert.equal(xy.x, 10, 'New X position');
|
||||
chai.assert.equal(xy.y, 100, 'New Y position');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user