added test cases for basic inputs

pull/95/head
jmoenig 2020-02-14 09:29:17 +01:00
rodzic 897d64e0f8
commit 27d623d7be
1 zmienionych plików z 16 dodań i 2 usunięć

Wyświetl plik

@ -13587,14 +13587,28 @@ ScriptFocusMorph.prototype.reactToKeyEvent = function (key) {
// comment out to shave off a millisecond loading speed ;-)
(function () {
SyntaxElementMorph.prototype.setScale(2);
var c, ci, cm;
SyntaxElementMorph.prototype.setScale(2.5);
c = new CommandBlockMorph();
c.setSpec('this is a test');
ci = new CommandBlockMorph();
ci.setSpec('block with input %s unit');
cm = new CommandBlockMorph();
cm.setSpec('number %n');
BlockMorph.prototype.addToDemoMenu([
'Syntax',
[
[new HatBlockMorph(), 'Hat'],
[new CommandBlockMorph(), 'Command'],
[new ReporterBlockMorph(), 'Reporter'],
[new ReporterBlockMorph(true), 'Predicate']
[new ReporterBlockMorph(true), 'Predicate'],
[c, 'with label text'],
[ci, 'with input'],
[cm, 'input slots']
]
]);
})();