Merge pull request #2259 from alschmiedt/fix_theme_event

Fix event description for theme
This commit is contained in:
alschmiedt
2019-02-05 14:17:49 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -708,7 +708,7 @@ Blockly.setTheme = function(theme) {
ws.toolbox_.updateColourFromTheme();
}
var event = new Blockly.Events.Ui(null, 'themeChanged');
var event = new Blockly.Events.Ui(null, 'theme');
event.workspaceId = ws.id;
Blockly.Events.fire(event);
};

View File

@@ -142,7 +142,7 @@ function test_setTheme() {
//check that the toolbox refreshed method was called
assertEquals(workspace.refreshToolboxSelection(), 3);
assertEquals(Blockly.Events.FIRE_QUEUE_.pop().element, 'themeChanged');
assertEquals(Blockly.Events.FIRE_QUEUE_.pop().element, 'theme');
undefineThemeTestBlocks();
}