Francois Gouget : testbot/cgi: Standardize the case of JsQuote().

Alexandre Julliard julliard at winehq.org
Wed Jun 8 15:39:29 CDT 2022


Module: tools
Branch: master
Commit: f326b4b05b338361994d854d78ba418d70001888
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=f326b4b05b338361994d854d78ba418d70001888

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Jun  8 16:40:34 2022 +0200

testbot/cgi: Standardize the case of JsQuote().

This better matches the TestBot's naming standard, particularly
ShQuote() and BatchQuote().

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/ObjectModel/CGI/Page.pm     | 4 ++--
 testbot/lib/WineTestBot/CGI/PageBase.pm | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/testbot/lib/ObjectModel/CGI/Page.pm b/testbot/lib/ObjectModel/CGI/Page.pm
index 406ca4f..1b9630c 100644
--- a/testbot/lib/ObjectModel/CGI/Page.pm
+++ b/testbot/lib/ObjectModel/CGI/Page.pm
@@ -142,14 +142,14 @@ sub escapeHTML($$)
 =pod
 =over 12
 
-=head1 C<jsQuote()>
+=head1 C<JsQuote()>
 
 Quotes a string for JavaScript code.
 
 =back
 =cut
 
-sub jsQuote($$)
+sub JsQuote($$)
 {
   my ($self, $String) = @_;
 
diff --git a/testbot/lib/WineTestBot/CGI/PageBase.pm b/testbot/lib/WineTestBot/CGI/PageBase.pm
index 40f5197..1fd15f0 100644
--- a/testbot/lib/WineTestBot/CGI/PageBase.pm
+++ b/testbot/lib/WineTestBot/CGI/PageBase.pm
@@ -374,7 +374,7 @@ sub GenerateErrorPopup($$)
   {
     print "<script type='text/javascript'>\n";
     print "<!--\n";
-    print "function ShowError() { alert(", $Page->jsQuote($ErrMessage), "); }\n";
+    print "function ShowError() { alert(", $Page->JsQuote($ErrMessage), "); }\n";
     my $ErrField = $Page->GetErrField();
     if ($ErrField)
     {




More information about the wine-cvs mailing list