mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
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.
This commit is contained in:
committed by
GitHub
parent
09316c6bd4
commit
2358fe6fd5
@@ -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.)
|
||||
|
||||
|
||||
@@ -1155,6 +1155,14 @@ h1 {
|
||||
<block type="image_large"></block>
|
||||
<block type="image_missing"></block>
|
||||
<block type="test_with_lots_of_network_icons"></block>
|
||||
<label text="Unicode & Emojis"></label>
|
||||
<block type="emoji_label_robot_face"></block>
|
||||
<block type="text">
|
||||
<field name="TEXT">Robot face in text field: 🤖</field>
|
||||
</block>
|
||||
<block type="text">
|
||||
<field name="TEXT">Zalgo in text field: B̛̻̦̬̘̰͎̥̈̔͊͞ͅl̡͖̫̺̬̖̣̳̃̀́͑͑̕͟͠͝o̢̹͙̮̫͔͋̉̊̑̿̽̚c̸̹̹̜͙̹̠͋̒͑̊̇͝k̡͉̫͇̖̳͖̊͒́̆̄̎̂̔̕͜͞l̰̙̞̳̩̠͖̯̀̆̈́̿̈̓͗y̨̡̟͇̮͈̬̙̲̏̅̀͘͠</field>
|
||||
</block>
|
||||
</category>
|
||||
</xml>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user