Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding test blocks for Unicode and Emojis #1646

Merged
merged 1 commit into from
Feb 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/blocks/test_blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.)

Expand Down
8 changes: 8 additions & 0 deletions tests/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,14 @@ <h1>Blockly Playground</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: &#x1f916;</field>
</block>
<block type="text">
<field name="TEXT">Zalgo in text field: B&#776;&#788;&#862;&#795;&#842;&#827;&#806;&#837;&#812;&#792;&#816;&#846;&#805;l&#771;&#832;&#833;&#864;&#849;&#849;&#789;&#861;&#801;&#854;&#863;&#811;&#826;&#812;&#790;&#803;&#819;o&#843;&#777;&#778;&#785;&#831;&#829;&#794;&#825;&#857;&#814;&#802;&#811;&#852;c&#843;&#786;&#849;&#778;&#861;&#775;&#825;&#825;&#796;&#857;&#825;&#800;&#824;k&#778;&#850;&#833;&#774;&#772;&#782;&#862;&#770;&#789;&#788;&#841;&#801;&#811;&#860;&#839;&#790;&#819;&#854;l&#832;&#774;&#836;&#831;&#776;&#787;&#855;&#816;&#793;&#798;&#819;&#809;&#800;&#854;&#815;y&#864;&#783;&#856;&#773;&#832;&#808;&#799;&#839;&#814;&#840;&#812;&#793;&#818;&#801;</field>
</block>
</category>
</xml>
</body>
Expand Down