@@ -2927,6 +2927,68 @@ var testBlocks =
29272927 </block>
29282928 </next>
29292929 </block>
2930+ </xml>`
2931+ } ,
2932+ {
2933+ name : 'array inside class' ,
2934+ data :`<xml xmlns="https://developers.google.com/blockly/xml">
2935+ <variables>
2936+ <variable id="$sp!v9t+BX;Ji(aw:=kP">var_EmployeeX</variable>
2937+ <variable id="pqiw3n@o%q}kBq,\`bLO~">var_DepartmentX</variable>
2938+ </variables>
2939+ <block type="variables_set" x="261" y="290">
2940+ <field name="VAR" id="$sp!v9t+BX;Ji(aw:=kP">var_EmployeeX</field>
2941+ <value name="VALUE">
2942+ <block type="TestBlocklyHtml_Controllers_EmployeeX">
2943+ <value name="val_Name">
2944+ <shadow type="text">
2945+ <field name="TEXT">NameEmployee</field>
2946+ </shadow>
2947+ </value>
2948+ </block>
2949+ </value>
2950+ <next>
2951+ <block type="variables_set">
2952+ <field name="VAR" id="pqiw3n@o%q}kBq,\`bLO~">var_DepartmentX</field>
2953+ <value name="VALUE">
2954+ <block type="TestBlocklyHtml_Controllers_DepartmentX">
2955+ <value name="val_Name">
2956+ <shadow type="text">
2957+ <field name="TEXT">NameDepartment</field>
2958+ </shadow>
2959+ </value>
2960+ <value name="val_Employees">
2961+ <shadow type="lists_create_with">
2962+ <mutation items="3"></mutation>
2963+ </shadow>
2964+ <block type="lists_create_with">
2965+ <mutation items="1"></mutation>
2966+ <value name="ADD0">
2967+ <block type="variables_get">
2968+ <field name="VAR" id="$sp!v9t+BX;Ji(aw:=kP">var_EmployeeX</field>
2969+ </block>
2970+ </value>
2971+ </block>
2972+ </value>
2973+ </block>
2974+ </value>
2975+ <next>
2976+ <block type="text_print">
2977+ <value name="TEXT">
2978+ <block type="api_VariousTests_TestArray_POST">
2979+ <value name="val_id">
2980+ <shadow type="TestBlocklyHtml_Controllers_DepartmentX"></shadow>
2981+ <block type="variables_get">
2982+ <field name="VAR" id="pqiw3n@o%q}kBq,\`bLO~">var_DepartmentX</field>
2983+ </block>
2984+ </value>
2985+ </block>
2986+ </value>
2987+ </block>
2988+ </next>
2989+ </block>
2990+ </next>
2991+ </block>
29302992</xml>`
29312993 }
29322994]
0 commit comments