mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Add naked variable to generator test.
This commit is contained in:
@@ -608,11 +608,7 @@ Blockly.Blocks['text_prompt_ext'] = {
|
||||
* @this Blockly.Block
|
||||
*/
|
||||
updateType_: function(newOp) {
|
||||
if (newOp == 'NUMBER') {
|
||||
this.outputConnection.setCheck('Number');
|
||||
} else {
|
||||
this.outputConnection.setCheck('String');
|
||||
}
|
||||
this.outputConnection.setCheck(newOp == 'NUMBER' ? 'Number' : 'String');
|
||||
},
|
||||
/**
|
||||
* Create XML to represent the output type.
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
<select id="format">
|
||||
<option value="JavaScript">JavaScript</option>
|
||||
<option value="JSON">JSON</option>
|
||||
<option value="Manual">Manual edit...</option>
|
||||
<option value="Manual">Manual edit…</option>
|
||||
</select>
|
||||
</h3>
|
||||
</td>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<p>This is a simple demo of injecting Blockly into a fixed-sized 'div' element.</p>
|
||||
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/injecting-fixed-size">injecting fixed-sized Blockly</a>...</p>
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/injecting-fixed-size">injecting fixed-sized Blockly</a>…</p>
|
||||
|
||||
<div id="blocklyDiv" style="height: 480px; width: 600px;"></div>
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
<p>This is a simple demo of generating code from blocks.</p>
|
||||
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/code-generators">Code Generators</a>...</p>
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/code-generators">Code Generators</a>…</p>
|
||||
|
||||
<p>
|
||||
<button onclick="showCode()">Show JavaScript</button>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<p>This is a demo of giving instant feedback as blocks are changed.</p>
|
||||
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/code-generators#realtime_generation">Realtime generation</a>...</p>
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/code-generators#realtime_generation">Realtime generation</a>…</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<p>This is a simple demo of executing code with a sandboxed JavaScript interpreter.</p>
|
||||
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/js-interpreter">JS Interpreter</a>...</p>
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/js-interpreter">JS Interpreter</a>…</p>
|
||||
|
||||
<p>
|
||||
<button onclick="parseCode()">Parse JavaScript</button>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
CSS or tables to create an area for it.
|
||||
Next, <a href="overlay.html">inject Blockly</a> over that area.</p>
|
||||
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/injecting-resizable">injecting resizable Blockly</a>...</p>
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/injecting-resizable">injecting resizable Blockly</a>…</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
A resize handler keeps it in position as the page changes.
|
||||
</p>
|
||||
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/injecting-resizable">injecting resizable Blockly</a>...</p>
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/injecting-resizable">injecting resizable Blockly</a>…</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/cloud-storage">Cloud Storage</a>...</p>
|
||||
<p>→ More info on <a href="https://developers.google.com/blockly/installation/cloud-storage">Cloud Storage</a>…</p>
|
||||
|
||||
<p>
|
||||
<button onclick="BlocklyStorage.link()">Save Blocks</button>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<p>This is a demo of a complex category structure for the toolbox.</p>
|
||||
|
||||
<p>→ More info on the <a href="https://developers.google.com/blockly/installation/toolbox">Toolbox</a>...</p>
|
||||
<p>→ More info on the <a href="https://developers.google.com/blockly/installation/toolbox">Toolbox</a>…</p>
|
||||
|
||||
<div id="blocklyDiv" style="height: 600px; width: 800px;"></div>
|
||||
|
||||
|
||||
@@ -51,4 +51,8 @@
|
||||
</block>
|
||||
</statement>
|
||||
</block>
|
||||
<block type="variables_get" x="300" y="100">
|
||||
<field name="VAR">naked</field>
|
||||
<comment pinned="true" h="80" w="160">Intentionally non-connected variable.</comment>
|
||||
</block>
|
||||
</xml>
|
||||
|
||||
Reference in New Issue
Block a user