forked from SeasideSt/Seaside
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
1523181
commit 4bd1087
Showing
7 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"noMethodMetaData" : true, | ||
"separateMethodMetaAndSource" : false, | ||
"useCypressPropertiesFile" : true } |
14 changes: 14 additions & 0 deletions
14
...ts-GemStone-Core.package/JSStreamTest.extension/instance/testGRUtf8GemStoneCodecStream.st
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,14 @@ | ||
*javascript-tests-gemstone-core | ||
testGRUtf8GemStoneCodecStream | ||
"This test is in response to https://github.com/GsDevKit/Grease/issues/33. | ||
This stream is used for FastCGI and doesn't show in other test cases | ||
due to their user of standard WriteStream instances." | ||
|
||
| actual | | ||
actual := String streamContents: [ :stream | | ||
(GRUtf8GemStoneCodec new encoderFor: stream) | ||
javascript: '<script></script>' ]. | ||
self | ||
assert: actual | ||
equals: '"\x3Cscript>\x3C/script>"' | ||
|
3 changes: 3 additions & 0 deletions
3
repository/Javascript-Tests-GemStone-Core.package/JSStreamTest.extension/properties.json
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,3 @@ | ||
{ | ||
"name" : "JSStreamTest" | ||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
repository/Javascript-Tests-GemStone-Core.package/monticello.meta/package
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 @@ | ||
(name 'Javascript-Tests-GemStone-Core') |
2 changes: 2 additions & 0 deletions
2
repository/Javascript-Tests-GemStone-Core.package/properties.json
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,2 @@ | ||
{ | ||
} |