about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--405screen.mu10
1 files changed, 6 insertions, 4 deletions
diff --git a/405screen.mu b/405screen.mu
index 8555b494..1c3fbadb 100644
--- a/405screen.mu
+++ b/405screen.mu
@@ -550,11 +550,11 @@ fn check-screen-row-from screen-on-stack: (addr screen), row-idx: int, col-idx:
 
 # various variants by screen-cell attribute; spaces in the 'expected' data should not match the attribute
 
-fn check-screen-row-in-color screen: (addr screen), fg: color, row-idx: int, expected: (addr array byte), msg: (addr array byte) {
+fn check-screen-row-in-color screen: (addr screen), fg: int, row-idx: int, expected: (addr array byte), msg: (addr array byte) {
   check-screen-row-in-color-from screen, fg, row-idx, 1, expected, msg
 }
 
-fn check-screen-row-in-color-from screen-on-stack: (addr screen), fg: color, row-idx: int, col-idx: int, expected: (addr array byte), msg: (addr array byte) {
+fn check-screen-row-in-color-from screen-on-stack: (addr screen), fg: int, row-idx: int, col-idx: int, expected: (addr array byte), msg: (addr array byte) {
   var screen/esi: (addr screen) <- copy screen-on-stack
   var idx/ecx: int <- screen-cell-index screen, row-idx, col-idx
   # compare 'expected' with the screen contents starting at 'idx', grapheme by grapheme
@@ -587,6 +587,8 @@ fn check-screen-row-in-color-from screen-on-stack: (addr screen), fg: color, row
         break-if-!= $check-screen-row-in-color-from:compare-graphemes
       }
       check-ints-equal g2, expected-grapheme2, msg
+      var color/eax: int <- screen-color-at-idx screen, idx
+      check-ints-equal color, fg, msg
     }
     idx <- increment
     loop
@@ -595,10 +597,10 @@ fn check-screen-row-in-color-from screen-on-stack: (addr screen), fg: color, row
 
 # background color is visible even for spaces, so 'expected' behaves as an array of booleans.
 # non-space = given background must match; space = background must not match
-fn check-screen-row-in-background-color screen-on-stack: (addr screen), fg: color, row-idx: int, expected: (addr array byte), msg: (addr array byte) {
+fn check-screen-row-in-background-color screen-on-stack: (addr screen), fg: int, row-idx: int, expected: (addr array byte), msg: (addr array byte) {
 }
 
-fn check-screen-row-in-background-color-from screen-on-stack: (addr screen), fg: color, row-idx: int, col-idx: int, expected: (addr array byte), msg: (addr array byte) {
+fn check-screen-row-in-background-color-from screen-on-stack: (addr screen), fg: int, row-idx: int, col-idx: int, expected: (addr array byte), msg: (addr array byte) {
 }
 
 fn check-screen-row-in-bold screen-on-stack: (addr screen), row-idx: int, expected: (addr array byte), msg: (addr array byte) {
='/akkartik/mu/commit/003trace.test.cc?h=main&id=5af8334699b54162423fa3290ffef9fd5d247816'>5af83346 ^
51530916 ^
5af83346 ^

51530916 ^

5af83346 ^


51530916 ^

d7494165 ^




51530916 ^



5af83346 ^
51530916 ^

51530916 ^











eba30983 ^




51530916 ^

36594a43 ^





51530916 ^







05d17773 ^
51530916 ^




05d17773 ^
51530916 ^




05d17773 ^

51530916 ^




05d17773 ^


51530916 ^




05d17773 ^


51530916 ^
d7494165 ^















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121