Fossil SCM
Fix th1.test: changed trace log output; changed HTML header; new TH1 commands.
Commit
2660ad0f3501f7f819351951c4dd3b1c05223916bff2408339abc9f2c591d99d
Parent
cb9106b2800a68d…
1 file changed
+13
-11
+13
-11
| --- test/th1.test | ||
| +++ test/th1.test | ||
| @@ -739,18 +739,18 @@ | ||
| 739 | 739 | $normalized_result {} normalized_result |
| 740 | 740 | |
| 741 | 741 | if {$th1Hooks} { |
| 742 | 742 | test th1-trace-2 {$normalized_result eq \ |
| 743 | 743 | {------------------ BEGIN TRACE LOG ------------------ |
| 744 | -th1-init 0x0 => 0x0<br /> | |
| 744 | +th1-init 0x0 => 0x0<br> | |
| 745 | 745 | |
| 746 | 746 | ------------------- END TRACE LOG -------------------}} |
| 747 | 747 | } else { |
| 748 | 748 | test th1-trace-2 {$normalized_result eq \ |
| 749 | 749 | {------------------ BEGIN TRACE LOG ------------------ |
| 750 | -th1-init 0x0 => 0x0<br /> | |
| 751 | -th1-setup {} => TH_OK<br /> | |
| 750 | +th1-init 0x0 => 0x0<br> | |
| 751 | +th1-setup {} => TH_OK<br> | |
| 752 | 752 | |
| 753 | 753 | ------------------- END TRACE LOG -------------------}} |
| 754 | 754 | } |
| 755 | 755 | |
| 756 | 756 | ############################################################################### |
| @@ -767,18 +767,18 @@ | ||
| 767 | 767 | $normalized_result {} normalized_result |
| 768 | 768 | |
| 769 | 769 | if {$th1Hooks} { |
| 770 | 770 | test th1-trace-4 {$normalized_result eq \ |
| 771 | 771 | {------------------ BEGIN TRACE LOG ------------------ |
| 772 | -th1-init 0x0 => 0x0<br /> | |
| 772 | +th1-init 0x0 => 0x0<br> | |
| 773 | 773 | this is a trace message. |
| 774 | 774 | ------------------- END TRACE LOG -------------------}} |
| 775 | 775 | } else { |
| 776 | 776 | test th1-trace-4 {$normalized_result eq \ |
| 777 | 777 | {------------------ BEGIN TRACE LOG ------------------ |
| 778 | -th1-init 0x0 => 0x0<br /> | |
| 779 | -th1-setup {} => TH_OK<br /> | |
| 778 | +th1-init 0x0 => 0x0<br> | |
| 779 | +th1-setup {} => TH_OK<br> | |
| 780 | 780 | this is a trace message. |
| 781 | 781 | ------------------- END TRACE LOG -------------------}} |
| 782 | 782 | } |
| 783 | 783 | |
| 784 | 784 | ############################################################################### |
| @@ -789,11 +789,13 @@ | ||
| 789 | 789 | |
| 790 | 790 | ############################################################################### |
| 791 | 791 | |
| 792 | 792 | fossil test-th-eval "defHeader" |
| 793 | 793 | test th1-defHeader-2 {[string match *<body> [normalize_result]] || \ |
| 794 | - [string match "*<body class=\"\$current_feature\">" [normalize_result]]} | |
| 794 | + [string match "*<body class=\"\$current_feature\ | |
| 795 | + rpage-\$requested_page\ | |
| 796 | + cpage-\$canonical_page\">" [normalize_result]]} | |
| 795 | 797 | |
| 796 | 798 | ############################################################################### |
| 797 | 799 | |
| 798 | 800 | fossil test-th-eval "styleHeader {Page Title Here}" |
| 799 | 801 | test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| @@ -1062,14 +1064,14 @@ | ||
| 1062 | 1064 | set base_commands {anoncap anycap array artifact break breakpoint \ |
| 1063 | 1065 | builtin_request_js capexpr captureTh1 catch cgiHeaderLine checkout \ |
| 1064 | 1066 | combobox continue copybtn date decorate defHeader dir enable_htmlify \ |
| 1065 | 1067 | enable_output encode64 error expr for foreach getParameter glob_match \ |
| 1066 | 1068 | globalState hascap hasfeature html htmlize http httpize if info \ |
| 1067 | - insertCsrf lappend lindex linecount list llength lsearch markdown \ | |
| 1068 | - nonce proc puts query randhex redirect regexp reinitialize rename \ | |
| 1069 | - render repository return searchable set setParameter setting stime \ | |
| 1070 | - string styleFooter styleHeader styleScript tclReady trace unset \ | |
| 1069 | + insertCsrf lappend lindex linecount list llength lsearch markdown nonce \ | |
| 1070 | + proc puts query randhex redirect regexp reinitialize rename render \ | |
| 1071 | + repository return searchable set setParameter setting stime string \ | |
| 1072 | + styleFooter styleHeader styleScript submenu tclReady trace unset \ | |
| 1071 | 1073 | unversioned uplevel upvar utime verifyCsrf verifyLogin wiki} |
| 1072 | 1074 | set tcl_commands {tclEval tclExpr tclInvoke tclIsSafe tclMakeSafe} |
| 1073 | 1075 | if {$th1Tcl} { |
| 1074 | 1076 | test th1-info-commands-1 {$sorted_result eq [lsort "$base_commands $tcl_commands"]} |
| 1075 | 1077 | } else { |
| 1076 | 1078 |
| --- test/th1.test | |
| +++ test/th1.test | |
| @@ -739,18 +739,18 @@ | |
| 739 | $normalized_result {} normalized_result |
| 740 | |
| 741 | if {$th1Hooks} { |
| 742 | test th1-trace-2 {$normalized_result eq \ |
| 743 | {------------------ BEGIN TRACE LOG ------------------ |
| 744 | th1-init 0x0 => 0x0<br /> |
| 745 | |
| 746 | ------------------- END TRACE LOG -------------------}} |
| 747 | } else { |
| 748 | test th1-trace-2 {$normalized_result eq \ |
| 749 | {------------------ BEGIN TRACE LOG ------------------ |
| 750 | th1-init 0x0 => 0x0<br /> |
| 751 | th1-setup {} => TH_OK<br /> |
| 752 | |
| 753 | ------------------- END TRACE LOG -------------------}} |
| 754 | } |
| 755 | |
| 756 | ############################################################################### |
| @@ -767,18 +767,18 @@ | |
| 767 | $normalized_result {} normalized_result |
| 768 | |
| 769 | if {$th1Hooks} { |
| 770 | test th1-trace-4 {$normalized_result eq \ |
| 771 | {------------------ BEGIN TRACE LOG ------------------ |
| 772 | th1-init 0x0 => 0x0<br /> |
| 773 | this is a trace message. |
| 774 | ------------------- END TRACE LOG -------------------}} |
| 775 | } else { |
| 776 | test th1-trace-4 {$normalized_result eq \ |
| 777 | {------------------ BEGIN TRACE LOG ------------------ |
| 778 | th1-init 0x0 => 0x0<br /> |
| 779 | th1-setup {} => TH_OK<br /> |
| 780 | this is a trace message. |
| 781 | ------------------- END TRACE LOG -------------------}} |
| 782 | } |
| 783 | |
| 784 | ############################################################################### |
| @@ -789,11 +789,13 @@ | |
| 789 | |
| 790 | ############################################################################### |
| 791 | |
| 792 | fossil test-th-eval "defHeader" |
| 793 | test th1-defHeader-2 {[string match *<body> [normalize_result]] || \ |
| 794 | [string match "*<body class=\"\$current_feature\">" [normalize_result]]} |
| 795 | |
| 796 | ############################################################################### |
| 797 | |
| 798 | fossil test-th-eval "styleHeader {Page Title Here}" |
| 799 | test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| @@ -1062,14 +1064,14 @@ | |
| 1062 | set base_commands {anoncap anycap array artifact break breakpoint \ |
| 1063 | builtin_request_js capexpr captureTh1 catch cgiHeaderLine checkout \ |
| 1064 | combobox continue copybtn date decorate defHeader dir enable_htmlify \ |
| 1065 | enable_output encode64 error expr for foreach getParameter glob_match \ |
| 1066 | globalState hascap hasfeature html htmlize http httpize if info \ |
| 1067 | insertCsrf lappend lindex linecount list llength lsearch markdown \ |
| 1068 | nonce proc puts query randhex redirect regexp reinitialize rename \ |
| 1069 | render repository return searchable set setParameter setting stime \ |
| 1070 | string styleFooter styleHeader styleScript tclReady trace unset \ |
| 1071 | unversioned uplevel upvar utime verifyCsrf verifyLogin wiki} |
| 1072 | set tcl_commands {tclEval tclExpr tclInvoke tclIsSafe tclMakeSafe} |
| 1073 | if {$th1Tcl} { |
| 1074 | test th1-info-commands-1 {$sorted_result eq [lsort "$base_commands $tcl_commands"]} |
| 1075 | } else { |
| 1076 |
| --- test/th1.test | |
| +++ test/th1.test | |
| @@ -739,18 +739,18 @@ | |
| 739 | $normalized_result {} normalized_result |
| 740 | |
| 741 | if {$th1Hooks} { |
| 742 | test th1-trace-2 {$normalized_result eq \ |
| 743 | {------------------ BEGIN TRACE LOG ------------------ |
| 744 | th1-init 0x0 => 0x0<br> |
| 745 | |
| 746 | ------------------- END TRACE LOG -------------------}} |
| 747 | } else { |
| 748 | test th1-trace-2 {$normalized_result eq \ |
| 749 | {------------------ BEGIN TRACE LOG ------------------ |
| 750 | th1-init 0x0 => 0x0<br> |
| 751 | th1-setup {} => TH_OK<br> |
| 752 | |
| 753 | ------------------- END TRACE LOG -------------------}} |
| 754 | } |
| 755 | |
| 756 | ############################################################################### |
| @@ -767,18 +767,18 @@ | |
| 767 | $normalized_result {} normalized_result |
| 768 | |
| 769 | if {$th1Hooks} { |
| 770 | test th1-trace-4 {$normalized_result eq \ |
| 771 | {------------------ BEGIN TRACE LOG ------------------ |
| 772 | th1-init 0x0 => 0x0<br> |
| 773 | this is a trace message. |
| 774 | ------------------- END TRACE LOG -------------------}} |
| 775 | } else { |
| 776 | test th1-trace-4 {$normalized_result eq \ |
| 777 | {------------------ BEGIN TRACE LOG ------------------ |
| 778 | th1-init 0x0 => 0x0<br> |
| 779 | th1-setup {} => TH_OK<br> |
| 780 | this is a trace message. |
| 781 | ------------------- END TRACE LOG -------------------}} |
| 782 | } |
| 783 | |
| 784 | ############################################################################### |
| @@ -789,11 +789,13 @@ | |
| 789 | |
| 790 | ############################################################################### |
| 791 | |
| 792 | fossil test-th-eval "defHeader" |
| 793 | test th1-defHeader-2 {[string match *<body> [normalize_result]] || \ |
| 794 | [string match "*<body class=\"\$current_feature\ |
| 795 | rpage-\$requested_page\ |
| 796 | cpage-\$canonical_page\">" [normalize_result]]} |
| 797 | |
| 798 | ############################################################################### |
| 799 | |
| 800 | fossil test-th-eval "styleHeader {Page Title Here}" |
| 801 | test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| @@ -1062,14 +1064,14 @@ | |
| 1064 | set base_commands {anoncap anycap array artifact break breakpoint \ |
| 1065 | builtin_request_js capexpr captureTh1 catch cgiHeaderLine checkout \ |
| 1066 | combobox continue copybtn date decorate defHeader dir enable_htmlify \ |
| 1067 | enable_output encode64 error expr for foreach getParameter glob_match \ |
| 1068 | globalState hascap hasfeature html htmlize http httpize if info \ |
| 1069 | insertCsrf lappend lindex linecount list llength lsearch markdown nonce \ |
| 1070 | proc puts query randhex redirect regexp reinitialize rename render \ |
| 1071 | repository return searchable set setParameter setting stime string \ |
| 1072 | styleFooter styleHeader styleScript submenu tclReady trace unset \ |
| 1073 | unversioned uplevel upvar utime verifyCsrf verifyLogin wiki} |
| 1074 | set tcl_commands {tclEval tclExpr tclInvoke tclIsSafe tclMakeSafe} |
| 1075 | if {$th1Tcl} { |
| 1076 | test th1-info-commands-1 {$sorted_result eq [lsort "$base_commands $tcl_commands"]} |
| 1077 | } else { |
| 1078 |