Skip to content

Commit

Permalink
remove console error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jan 27, 2024
1 parent 7ad83c4 commit f1b1b6a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
javascript
errorHandlerFunction

^ (JSStream on: 'console.error(arguments[0])') , (JSStream on:
^ "(JSStream on: 'console.error(arguments[0])') , "(JSStream on:
'document.getElementById("result").style.backgroundColor = "red"')
, (JSStream on:
'document.getElementById("result").innerHTML = "<p>Error</p>"')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ renderContentOn: html
self runningOnGemStone
ifTrue: [
html
paragraph:
'Make sure the CORS adaptor is running manually since we cannot check it when running on GemStone.' ].
paragraph: 'Make sure the CORS adaptor is running manually since we cannot check it when running on GemStone.' ].
(self runningOnGemStone not
and: [
WACORSResourceExample corsAdaptor isNil
and: [ WACORSResourceExample corsAdaptor isNil
or: [ WACORSResourceExample corsAdaptor isRunning not ] ])
ifTrue: [ self renderAdaptorSetupOn: html ]
ifFalse: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
javascript
successHandlerFunction

^ (JSStream on: 'console.log(arguments[0])') , (JSStream on:
^ "(JSStream on: 'console.log(arguments[0])') ," (JSStream on:
'document.getElementById("result").style.backgroundColor = "darkgreen"')
, (JSStream on:
'document.getElementById("result").innerHTML = "<p>Success</p>"')
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SystemOrganization addCategory: #'Seaside-Tests-Functional'!
self packageOrganizer ensurePackage: #'Seaside-Tests-Functional' withTags: #()!
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ testCORSFilterFunctionalTest
self should: [ driver findElementByPartialLinkText: 'Register CORS Resource' ] raise: BPNoSuchElementException.

self assert: (driver findElementByID: 'allowed-origins') getText equals: 'None'.
" (((driver findElementByID: 'get-requests') findElementsByTagName: 'button')
(((driver findElementByID: 'get-requests') findElementsByTagName: 'button')
detect: [ :button | button getText = 'Same Origin' ]) click.
(Delay forMilliseconds: 1000) wait.
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Success'."
self assert: ((driver findElementByID: 'result') findElementByTagName: 'p') getText equals: 'Success'.
(((driver findElementByID: 'get-requests') findElementsByTagName: 'button')
detect: [ :button | button getText = 'Cross Origin' ]) click.
(Delay forMilliseconds: 1000) wait.
Expand Down

0 comments on commit f1b1b6a

Please sign in to comment.