From 2358fe6fd50a5b8699d3fae412a2c2873e441b8a Mon Sep 17 00:00:00 2001 From: Andrew n marshall Date: Wed, 21 Feb 2018 13:53:44 -0800 Subject: [PATCH] Adding test cases for Unicode in blocks. (#1646) Adds test blocks to demonstrate capabilities. Stopped short of adding BiDi override characters. I added to the toolbox category "Images". It isn't really images, but it didn't seem worth making a separate category at this stage. --- tests/blocks/test_blocks.js | 5 +++++ tests/playground.html | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/tests/blocks/test_blocks.js b/tests/blocks/test_blocks.js index 57ed9a037..b4c02a254 100644 --- a/tests/blocks/test_blocks.js +++ b/tests/blocks/test_blocks.js @@ -483,6 +483,11 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT "type": "block_colour_hex5", "message0": "Block color: #RRGGBB (invalid)", "colour": "#NotHex" + }, + { + "type": "emoji_label_robot_face", + "message0": "Robot Face: \uD83E\uDD16", + "colour": "#AAAAAA" } ]); // END JSON EXTRACT (Do not delete this comment.) diff --git a/tests/playground.html b/tests/playground.html index 21f7ba0e9..1185ad983 100644 --- a/tests/playground.html +++ b/tests/playground.html @@ -1155,6 +1155,14 @@ h1 { + + + + Robot face in text field: 🤖 + + + Zalgo in text field: B̛̻̦̬̘̰͎̥̈̔͊͞ͅl̡͖̫̺̬̖̣̳̃̀́͑͑̕͟͠͝o̢̹͙̮̫͔͋̉̊̑̿̽̚c̸̹̹̜͙̹̠͋̒͑̊̇͝k̡͉̫͇̖̳͖̊͒́̆̄̎̂̔̕͜͞l̰̙̞̳̩̠͖̯̀̆̈́̿̈̓͗y̨̡̟͇̮͈̬̙̲̏̅̀͘͠ +