From 55a94a14f06848b584314f278db669006383b2f5 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Wed, 9 Mar 2016 11:51:57 -0800 Subject: [PATCH] Add naked variable to generator test. --- blocks/text.js | 6 +----- demos/blockfactory/index.html | 2 +- demos/fixed/index.html | 2 +- demos/generator/index.html | 2 +- demos/graph/index.html | 2 +- demos/interpreter/index.html | 2 +- demos/resizable/index.html | 2 +- demos/resizable/overlay.html | 2 +- demos/storage/index.html | 2 +- demos/toolbox/index.html | 2 +- tests/generators/variables.xml | 4 ++++ 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/blocks/text.js b/blocks/text.js index 55308e1d1..ddf619735 100644 --- a/blocks/text.js +++ b/blocks/text.js @@ -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. diff --git a/demos/blockfactory/index.html b/demos/blockfactory/index.html index dfa98de78..e9d31e633 100644 --- a/demos/blockfactory/index.html +++ b/demos/blockfactory/index.html @@ -142,7 +142,7 @@ diff --git a/demos/fixed/index.html b/demos/fixed/index.html index c3805bee1..34c31e54a 100644 --- a/demos/fixed/index.html +++ b/demos/fixed/index.html @@ -23,7 +23,7 @@

This is a simple demo of injecting Blockly into a fixed-sized 'div' element.

-

→ More info on injecting fixed-sized Blockly...

+

→ More info on injecting fixed-sized Blockly

diff --git a/demos/generator/index.html b/demos/generator/index.html index 593eb4ba4..31890a665 100644 --- a/demos/generator/index.html +++ b/demos/generator/index.html @@ -24,7 +24,7 @@

This is a simple demo of generating code from blocks.

-

→ More info on Code Generators...

+

→ More info on Code Generators

diff --git a/demos/graph/index.html b/demos/graph/index.html index 83a6b71e2..1d70f5e84 100644 --- a/demos/graph/index.html +++ b/demos/graph/index.html @@ -39,7 +39,7 @@

This is a demo of giving instant feedback as blocks are changed.

-

→ More info on Realtime generation...

+

→ More info on Realtime generation

diff --git a/demos/interpreter/index.html b/demos/interpreter/index.html index a6bcb8da5..a4fadc9d0 100644 --- a/demos/interpreter/index.html +++ b/demos/interpreter/index.html @@ -25,7 +25,7 @@

This is a simple demo of executing code with a sandboxed JavaScript interpreter.

-

→ More info on JS Interpreter...

+

→ More info on JS Interpreter

diff --git a/demos/resizable/index.html b/demos/resizable/index.html index f326e1b0d..54f838af7 100644 --- a/demos/resizable/index.html +++ b/demos/resizable/index.html @@ -39,7 +39,7 @@ CSS or tables to create an area for it. Next, inject Blockly over that area.

-

→ More info on injecting resizable Blockly...

+

→ More info on injecting resizable Blockly

diff --git a/demos/resizable/overlay.html b/demos/resizable/overlay.html index 68487a08a..747300489 100644 --- a/demos/resizable/overlay.html +++ b/demos/resizable/overlay.html @@ -42,7 +42,7 @@ A resize handler keeps it in position as the page changes.

-

→ More info on injecting resizable Blockly...

+

→ More info on injecting resizable Blockly

diff --git a/demos/storage/index.html b/demos/storage/index.html index f21a48b92..da43ec004 100644 --- a/demos/storage/index.html +++ b/demos/storage/index.html @@ -41,7 +41,7 @@ } -

→ More info on Cloud Storage...

+

→ More info on Cloud Storage

diff --git a/demos/toolbox/index.html b/demos/toolbox/index.html index ef737d0db..f67decf3b 100644 --- a/demos/toolbox/index.html +++ b/demos/toolbox/index.html @@ -23,7 +23,7 @@

This is a demo of a complex category structure for the toolbox.

-

→ More info on the Toolbox...

+

→ More info on the Toolbox

diff --git a/tests/generators/variables.xml b/tests/generators/variables.xml index dfb77e539..544d897d0 100644 --- a/tests/generators/variables.xml +++ b/tests/generators/variables.xml @@ -51,4 +51,8 @@ + + naked + Intentionally non-connected variable. +