mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
* Propagate the visible state when blocks connect This fixes #1967. In rendered connections when connecting: - If the superior connection is hidden this hides the newly connected block. - If the superior connection isn't hidden it makes sure the block is visible. In rendered connections when disconnecting: - If the superior connection is hidden, make the disconnected block stack visible. TODO before review: - write tests. - update collapsed message * Add missing overrides * Add tests for hidden connections and fix a bug while disposing
39 lines
1.0 KiB
HTML
39 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Mocha Tests for Blockly</title>
|
|
|
|
<link href="https://unpkg.com/mocha@5.2.0/mocha.css" rel="stylesheet" />
|
|
<script src="../../blockly_uncompressed.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="mocha"></div>
|
|
<script src="https://unpkg.com/chai/chai.js"></script>
|
|
<script src="https://unpkg.com/mocha@5.2.0/mocha.js"></script>
|
|
<script src="https://unpkg.com/sinon/pkg/sinon.js"></script>
|
|
<script>
|
|
mocha.setup({
|
|
ui: 'tdd'
|
|
});
|
|
</script>
|
|
<script src="test_helpers.js"></script>
|
|
<script src="block_test.js"></script>
|
|
<script src="event_test.js"></script>
|
|
<script src="connection_test.js"></script>
|
|
<script src="field_variable_test.js"></script>
|
|
<script src="utils_test.js"></script>
|
|
|
|
<div id="blocklyDiv"></div>
|
|
<xml id="toolbox-connections" style="display: none">
|
|
<block type="stack_block"></block>
|
|
<block type="row_block"></block>
|
|
</xml>
|
|
|
|
<script>
|
|
mocha.run();
|
|
</script>
|
|
</body>
|
|
</html>
|