Skip to content
11 changes: 10 additions & 1 deletion tests/mocha/layering_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ suite('Layering', function () {
const g = Blockly.utils.dom.createSvgElement('g', {});
return {
getSvgRoot: () => g,
getFocusableElement: () => {
throw new Error('Unsupported.');
},
getFocusableTree: () => {
throw new Error('Unsupported.');
},
onNodeFocus: () => {},
onNodeBlur: () => {},
canBeFocused: () => false,
};
}

Expand Down Expand Up @@ -80,7 +89,7 @@ suite('Layering', function () {
});

suite('dragging', function () {
test('moving an element to the drag layer adds it to the drag group', function () {
test.only('moving an element to the drag layer adds it to the drag group', function () {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reset to test( so you're not skipping all the other tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forget this far too often until I do my self-review. :) Thanks & removed in latest.

const elem = createRenderedElement();

this.layerManager.moveToDragLayer(elem);
Expand Down