From 760eb45e26e14f1a18f467e025b9cf41971c9109 Mon Sep 17 00:00:00 2001 From: Johan Brichau Date: Sun, 28 Jan 2024 09:27:22 +0100 Subject: [PATCH] try again --- .../instance/catchErrorHandlerFunction.st | 6 ------ .../instance/renderMethodPreflightTestOn..st | 4 +--- .../instance/renderSimpleRequestTestOn..st | 4 +--- 3 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/catchErrorHandlerFunction.st diff --git a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/catchErrorHandlerFunction.st b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/catchErrorHandlerFunction.st deleted file mode 100644 index f28eaf1a3..000000000 --- a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/catchErrorHandlerFunction.st +++ /dev/null @@ -1,6 +0,0 @@ -javascript -catchErrorHandlerFunction - - ^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'), - (JSStream on: 'document.getElementById("result").innerHTML = "

"+result.text()+"

"') - 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 eab9cddc2..c3fae22da 100644 --- a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderMethodPreflightTestOn..st +++ b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderMethodPreflightTestOn..st @@ -13,8 +13,6 @@ renderMethodPreflightTestOn: html onClick: ((JSStream on:('fetch(<1p>, {method: "DELETE"})' expandMacrosWith: url asString)) call: 'then' with: self successHandlerFunction - with: self errorHandlerFunction; - call: 'catch' - with: self catchErrorHandlerFunction); + with: self errorHandlerFunction); 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 e5c02215f..e5b1d5b61 100644 --- a/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderSimpleRequestTestOn..st +++ b/repository/Seaside-Tests-Functional.package/WACORSFilterFunctionalTest.class/instance/renderSimpleRequestTestOn..st @@ -13,8 +13,6 @@ renderSimpleRequestTestOn: html ((JSStream on: ('fetch(<1p>)' expandMacrosWith: url asString)) call: 'then' with: self successHandlerFunction - with: self errorHandlerFunction; - call: 'catch' - with: self catchErrorHandlerFunction); + with: self errorHandlerFunction); with: text. html space ] ] \ No newline at end of file