Fossil SCM
Fix test for th1 element manipulation: briefly switch off robot-restrict.
Commit
facf764847b2061931749b1fa3bac0d9ec340265bb145ac68e92639247941bc8
Parent
93f09491c1a93a5…
1 file changed
+9
-3
+9
-3
| --- test/th1.test | ||
| +++ test/th1.test | ||
| @@ -801,13 +801,19 @@ | ||
| 801 | 801 | #fossil test-th-eval "styleHeader {Page Title Here}" |
| 802 | 802 | #test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 803 | 803 | |
| 804 | 804 | ############################################################################### |
| 805 | 805 | |
| 806 | -test_in_checkout th1-header-2 { | |
| 807 | - fossil test-th-eval --open-config "styleHeader {Page Title Here}" | |
| 808 | -} {[regexp -- {<title>Fossil: Page Title Here</title>} $RESULT]} | |
| 806 | +# With the default robot-restrict setting, a command-line run gets the | |
| 807 | +# "Browser Verification" page instead of the header. We turn robot detection | |
| 808 | +# off just for this one operation, where it isn't relevant anyway. | |
| 809 | +# | |
| 810 | +fossil settings robot-restrict off | |
| 811 | +fossil test-th-eval --open-config "styleHeader {Page Title Here}" | |
| 812 | +test th1-header-2 {[regexp -- \ | |
| 813 | + {<title>Unnamed Fossil Project: Page Title Here</title>} $RESULT]} | |
| 814 | +fossil unset robot-restrict | |
| 809 | 815 | |
| 810 | 816 | ############################################################################### |
| 811 | 817 | |
| 812 | 818 | #fossil test-th-eval "styleFooter" |
| 813 | 819 | #test th1-footer-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 814 | 820 |
| --- test/th1.test | |
| +++ test/th1.test | |
| @@ -801,13 +801,19 @@ | |
| 801 | #fossil test-th-eval "styleHeader {Page Title Here}" |
| 802 | #test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 803 | |
| 804 | ############################################################################### |
| 805 | |
| 806 | test_in_checkout th1-header-2 { |
| 807 | fossil test-th-eval --open-config "styleHeader {Page Title Here}" |
| 808 | } {[regexp -- {<title>Fossil: Page Title Here</title>} $RESULT]} |
| 809 | |
| 810 | ############################################################################### |
| 811 | |
| 812 | #fossil test-th-eval "styleFooter" |
| 813 | #test th1-footer-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 814 |
| --- test/th1.test | |
| +++ test/th1.test | |
| @@ -801,13 +801,19 @@ | |
| 801 | #fossil test-th-eval "styleHeader {Page Title Here}" |
| 802 | #test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 803 | |
| 804 | ############################################################################### |
| 805 | |
| 806 | # With the default robot-restrict setting, a command-line run gets the |
| 807 | # "Browser Verification" page instead of the header. We turn robot detection |
| 808 | # off just for this one operation, where it isn't relevant anyway. |
| 809 | # |
| 810 | fossil settings robot-restrict off |
| 811 | fossil test-th-eval --open-config "styleHeader {Page Title Here}" |
| 812 | test th1-header-2 {[regexp -- \ |
| 813 | {<title>Unnamed Fossil Project: Page Title Here</title>} $RESULT]} |
| 814 | fossil unset robot-restrict |
| 815 | |
| 816 | ############################################################################### |
| 817 | |
| 818 | #fossil test-th-eval "styleFooter" |
| 819 | #test th1-footer-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 820 |