From 6c69569a4c4ca3a23635d4d7a40f0fe557194619 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 28 Sep 2016 20:08:04 -0700 Subject: 3430 --- html/edit/001-editor.mu.html | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'html/edit/001-editor.mu.html') diff --git a/html/edit/001-editor.mu.html b/html/edit/001-editor.mu.html index a5b87d06..38865350 100644 --- a/html/edit/001-editor.mu.html +++ b/html/edit/001-editor.mu.html @@ -15,9 +15,9 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color * { font-size: 12pt; font-size: 1em; } .muRecipe { color: #ff8700; } .muData { color: #ffff00; } -.Special { color: #c00000; } .muScenario { color: #00af00; } .Delimiter { color: #800080; } +.Special { color: #c00000; } .Comment { color: #9090ff; } .Constant { color: #00a0a0; } .SalientComment { color: #00ffff; } @@ -49,10 +49,10 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initially-prints-text-to-screen [ + local-scope assume-screen 10/width, 5/height run [ - 1:text <- new [abc] - new-editor 1:text, screen:&:screen, 0/left, 10/right + new-editor [abc], screen:&:screen, 0/left, 10/right ] screen-should-contain [ # top line of screen reserved for menu @@ -130,10 +130,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initializes-without-data [ + local-scope assume-screen 5/width, 3/height run [ - 1:&:editor <- new-editor 0/data, screen:&:screen, 2/left, 5/right - 2:editor <- copy *1:&:editor + e:&:editor <- new-editor 0/data, screen:&:screen, 2/left, 5/right + 2:editor/raw <- copy *e ] memory-should-contain [ # 2 (data) <- just the ยง sentinel @@ -290,11 +291,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initially-prints-multiple-lines [ + local-scope assume-screen 5/width, 5/height run [ s:text <- new [abc def] - new-editor s:text, screen:&:screen, 0/left, 5/right + new-editor s, screen:&:screen, 0/left, 5/right ] screen-should-contain [ . . @@ -305,10 +307,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initially-handles-offsets [ + local-scope assume-screen 5/width, 5/height run [ s:text <- new [abc] - new-editor s:text, screen:&:screen, 1/left, 5/right + new-editor s, screen:&:screen, 1/left, 5/right ] screen-should-contain [ . . @@ -318,11 +321,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initially-prints-multiple-lines-at-offset [ + local-scope assume-screen 5/width, 5/height run [ s:text <- new [abc def] - new-editor s:text, screen:&:screen, 1/left, 5/right + new-editor s, screen:&:screen, 1/left, 5/right ] screen-should-contain [ . . @@ -333,10 +337,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initially-wraps-long-lines [ + local-scope assume-screen 5/width, 5/height run [ s:text <- new [abc def] - new-editor s:text, screen:&:screen, 0/left, 5/right + new-editor s, screen:&:screen, 0/left, 5/right ] screen-should-contain [ . . @@ -353,10 +358,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initially-wraps-barely-long-lines [ + local-scope assume-screen 5/width, 5/height run [ s:text <- new [abcde] - new-editor s:text, screen:&:screen, 0/left, 5/right + new-editor s, screen:&:screen, 0/left, 5/right ] # still wrap, even though the line would fit. We need room to click on the # end of the line @@ -375,12 +381,12 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario editor-initializes-empty-text [ + local-scope assume-screen 5/width, 5/height run [ - 1:text <- new [] - 2:&:editor <- new-editor 1:text, screen:&:screen, 0/left, 5/right - 3:num <- get *2:&:editor, cursor-row:offset - 4:num <- get *2:&:editor, cursor-column:offset + e:&:editor <- new-editor [], screen:&:screen, 0/left, 5/right + 3:num/raw <- get *e, cursor-row:offset + 4:num/raw <- get *e, cursor-column:offset ] screen-should-contain [ . . @@ -396,12 +402,13 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color # just a little color for mu code scenario render-colors-comments [ + local-scope assume-screen 5/width, 5/height run [ s:text <- new [abc # de f] - new-editor s:text, screen:&:screen, 0/left, 5/right + new-editor s, screen:&:screen, 0/left, 5/right ] screen-should-contain [ . . @@ -477,12 +484,13 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] scenario render-colors-assignment [ + local-scope assume-screen 8/width, 5/height run [ s:text <- new [abc d <- e f] - new-editor s:text, screen:&:screen, 0/left, 8/right + new-editor s, screen:&:screen, 0/left, 8/right ] screen-should-contain [ . . -- cgit 1.4.1-2-gfad0