mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Test gesture triggered events and event assertion refactor (#4155)
* Refactor event assertion helpers and add assertions to gesture test.
This commit is contained in:
@@ -149,9 +149,9 @@ suite('Theme', function() {
|
||||
// Checks that the toolbox refreshed method was called
|
||||
sinon.assert.calledOnce(refreshToolboxSelectionStub);
|
||||
|
||||
assertLastCallEventArgEquals(
|
||||
this.eventsFireStub, Blockly.Events.UI, workspace.id,
|
||||
null, {element: 'theme'});
|
||||
assertEventFired(
|
||||
this.eventsFireStub, Blockly.Events.Ui, {element: 'theme'},
|
||||
workspace.id, null);
|
||||
} finally {
|
||||
workspaceTeardown.call(this, workspace);
|
||||
undefineThemeTestBlocks();
|
||||
|
||||
Reference in New Issue
Block a user