mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Allow terminal blocks to replace other terminal blocks (#433)
* Allow terminal blocks to replace other terminal blocks * Updated test to allow replacing terminal blocks
This commit is contained in:
committed by
Neil Fraser
parent
3ffd7a2d27
commit
7a1db20765
@@ -309,7 +309,8 @@ function test_isConnectionAllowed_NoNext() {
|
||||
three.sourceBlock_.previousConnection = three;
|
||||
Blockly.Connection.connectReciprocally_(one, three);
|
||||
|
||||
assertFalse(two.isConnectionAllowed(one));
|
||||
// A terminal block is allowed to replace another terminal block.
|
||||
assertTrue(two.isConnectionAllowed(one));
|
||||
}
|
||||
|
||||
function testCheckConnection_Okay() {
|
||||
|
||||
Reference in New Issue
Block a user