Skip to content

Commit 4bd1087

Browse files
committed
Add test related to Grease issue 33.
FastCGI uses GRUtf8CodecStream instances. A missing selector was not detected by other test cases which use WriteStream instances. See: GsDevKit/Grease#33
1 parent 1523181 commit 4bd1087

File tree

7 files changed

+29
-1
lines changed

7 files changed

+29
-1
lines changed

Diff for: repository/BaselineOfSeaside3.package/BaselineOfSeaside3.class/instance/baselinejavascript..st

+5-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ baselinejavascript: spec
5050
package: 'Javascript-Core'
5151
with: [ spec includes: #('Javascript-GemStone-Core') ];
5252
package: 'Javascript-GemStone-Core'
53-
with: [ spec requires: #('Javascript-Core') ] ].
53+
with: [ spec requires: #('Javascript-Core') ];
54+
package: 'Javascript-Tests-GemStone-Core'
55+
with: [ spec requires: #('Javascript-Tests-Core') ];
56+
package: 'Javascript-Tests-Core'
57+
with: [ spec includes: #('Javascript-Tests-GemStone-Core') ] ].
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"noMethodMetaData" : true,
3+
"separateMethodMetaAndSource" : false,
4+
"useCypressPropertiesFile" : true }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*javascript-tests-gemstone-core
2+
testGRUtf8GemStoneCodecStream
3+
"This test is in response to https://github.com/GsDevKit/Grease/issues/33.
4+
This stream is used for FastCGI and doesn't show in other test cases
5+
due to their user of standard WriteStream instances."
6+
7+
| actual |
8+
actual := String streamContents: [ :stream |
9+
(GRUtf8GemStoneCodec new encoderFor: stream)
10+
javascript: '<script></script>' ].
11+
self
12+
assert: actual
13+
equals: '"\x3Cscript>\x3C/script>"'
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name" : "JSStreamTest"
3+
}

Diff for: repository/Javascript-Tests-GemStone-Core.package/monticello.meta/initializers.st

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(name 'Javascript-Tests-GemStone-Core')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

0 commit comments

Comments
 (0)