Test gesture triggered events and event assertion refactor (#4155)

* Refactor event assertion helpers and add assertions to gesture test.
This commit is contained in:
Monica Kozbial
2020-08-12 13:27:37 -07:00
committed by GitHub
parent 7aea5b645a
commit 332ff10672
7 changed files with 200 additions and 74 deletions

View File

@@ -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();