mirror of
https://github.com/google/blockly.git
synced 2026-01-20 07:17:10 +01:00
Merge pull request #2259 from alschmiedt/fix_theme_event
Fix event description for theme
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user