Adding blocks tests (#1620)
* Adding blocks tests * Moving block tests * Adding chromium to travis yml
This commit is contained in:
53
libs/core/blocks-test/basic.blocks
Normal file
53
libs/core/blocks-test/basic.blocks
Normal file
@ -0,0 +1,53 @@
|
||||
<xml xmlns="http://www.w3.org/1999/xhtml">
|
||||
<variables>
|
||||
<variable type="" id="PGGhch1kuMF##st8~wFr">receivedNumber</variable>
|
||||
</variables>
|
||||
<block type="pxt-on-start" x="77" y="38">
|
||||
<statement name="HANDLER">
|
||||
<block type="device_show_number">
|
||||
<value name="number">
|
||||
<shadow type="math_number">
|
||||
<field name="NUM">12</field>
|
||||
</shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="basic_show_icon">
|
||||
<field name="i">IconNames.Umbrella</field>
|
||||
<next>
|
||||
<block type="device_print_message">
|
||||
<value name="text">
|
||||
<shadow type="text">
|
||||
<field name="TEXT">Hello!</field>
|
||||
</shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="device_pause">
|
||||
<value name="pause">
|
||||
<shadow type="math_number">
|
||||
<field name="NUM">100</field>
|
||||
</shadow>
|
||||
</value>
|
||||
<next>
|
||||
<block type="device_clear_display">
|
||||
<next>
|
||||
<block type="basic_show_arrow">
|
||||
<value name="i">
|
||||
<shadow type="device_arrow">
|
||||
<field name="arrow">ArrowNames.South</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</next>
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
<block type="device_forever" x="418" y="25"></block>
|
||||
</xml>
|
Reference in New Issue
Block a user