-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Class { | ||
#name : #DCParseTest, | ||
#superclass : #SBTest, | ||
#category : #'DomainCode-Parser' | ||
} | ||
|
||
{ #category : #'as yet unclassified' } | ||
DCParseTest >> testDeleteEmptyLine [ | ||
|
||
| program editor | | ||
program := DCBlock parse: 'a; | ||
b;' language: SBJavascript. | ||
editor := self editorAndWorldFor: program. | ||
program childSandblocks second startInputAtEnd. | ||
editor handle: (self keyboardEvent: Character backspace). | ||
self assert: 2 equals: editor childSandblocks first childSandblocks size | ||
] | ||
|
||
{ #category : #'as yet unclassified' } | ||
DCParseTest >> testKeepEmptyLine [ | ||
|
||
| program editor | | ||
program := DCBlock parse: 'a; | ||
b;' language: SBJavascript. | ||
editor := self editorAndWorldFor: program. | ||
program lastDeepChild startInputAtEnd. | ||
self type: 'b' in: editor. | ||
self assert: 3 equals: editor childSandblocks first childSandblocks size | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters