Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test related to Grease issue 33. #1442

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ baselinejavascript: spec
package: 'Javascript-Core'
with: [ spec includes: #('Javascript-GemStone-Core') ];
package: 'Javascript-GemStone-Core'
with: [ spec requires: #('Javascript-Core') ] ].
with: [ spec requires: #('Javascript-Core') ];
package: 'Javascript-Tests-GemStone-Core'
with: [ spec requires: #('Javascript-Tests-Core') ];
package: 'Javascript-Tests-Core'
with: [ spec includes: #('Javascript-Tests-GemStone-Core') ] ].
4 changes: 4 additions & 0 deletions repository/Javascript-Tests-GemStone-Core.package/.filetree
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"noMethodMetaData" : true,
"separateMethodMetaAndSource" : false,
"useCypressPropertiesFile" : true }
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>"'

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "JSStreamTest"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(name 'Javascript-Tests-GemStone-Core')
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
Loading