From 99f4f483212ddab5df89f7a1b8ae9d03f3effa61 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Tue, 5 Feb 2019 13:43:54 -0800 Subject: [PATCH] Fix event description for theme --- core/blockly.js | 2 +- tests/jsunit/theme_test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/blockly.js b/core/blockly.js index 5f2a71908..a7067caa5 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -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); }; diff --git a/tests/jsunit/theme_test.js b/tests/jsunit/theme_test.js index 782b8be90..80a78ca9c 100644 --- a/tests/jsunit/theme_test.js +++ b/tests/jsunit/theme_test.js @@ -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(); }