diff --git a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/catchErrorHandlerFunction.st b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/catchErrorHandlerFunction.st new file mode 100644 index 000000000..5a7f7d690 --- /dev/null +++ b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/catchErrorHandlerFunction.st @@ -0,0 +1,6 @@ +javascript +catchErrorHandlerFunction + + ^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'), + (JSStream on: 'document.getElementById("result").innerHTML = "

Catch Error

"') + asFunction: #( 'result' ) \ No newline at end of file diff --git a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/errorHandlerFunction.st b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/errorHandlerFunction.st index 2c8f0935a..2dcf18c48 100644 --- a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/errorHandlerFunction.st +++ b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/errorHandlerFunction.st @@ -2,5 +2,5 @@ javascript errorHandlerFunction ^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'), - (JSStream on: 'document.getElementById("result").innerHTML = "

Error "+result.text()+"

"') + (JSStream on: 'document.getElementById("result").innerHTML = "

Error

"') asFunction: #( 'result' ) \ No newline at end of file diff --git a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderMethodPreflightTestOn..st b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderMethodPreflightTestOn..st index f7ec5462e..eab9cddc2 100644 --- a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderMethodPreflightTestOn..st +++ b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderMethodPreflightTestOn..st @@ -15,6 +15,6 @@ renderMethodPreflightTestOn: html with: self successHandlerFunction with: self errorHandlerFunction; call: 'catch' - with: self errorHandlerFunction); + with: self catchErrorHandlerFunction); with: text. html space ] ] \ No newline at end of file diff --git a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderSimpleRequestTestOn..st b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderSimpleRequestTestOn..st index ac9581a3b..e5c02215f 100644 --- a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderSimpleRequestTestOn..st +++ b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderSimpleRequestTestOn..st @@ -15,6 +15,6 @@ renderSimpleRequestTestOn: html with: self successHandlerFunction with: self errorHandlerFunction; call: 'catch' - with: self errorHandlerFunction); + with: self catchErrorHandlerFunction); with: text. html space ] ] \ No newline at end of file