Roxen.git / server / etc / test / modules / TEST.pmod / http.pmod / WebDAV.pmod / TestBase.pike

version» Context lines:

Roxen.git/server/etc/test/modules/TEST.pmod/http.pmod/WebDAV.pmod/TestBase.pike:2212:    // When listing a file directly, it will have equivalent case    // in the returned list.    webdav_ls(dir_ls + "/" + file_ls,    ({ exp_dir[case_ls] + "/" + exp_file[case_ls] }) );    } else {    // In this case the result depends on whether the WebDAV backend    // is normalizing or not. For our WebServer tests it depends on    // the OS but other WebDAV modules may implement normalization    // themselves (then filesystem_behavior() is typically    // overridden by the test subclass.) +  if (normalizing || +  (!casesensitive && (unicode_method_create == "NFC"))) {    webdav_ls(dir_ls, -  normalizing ? +     ({ exp_dir[case_ls], -  exp_dir[case_ls] + "/" + exp_file[case_create] }) -  : ({}), -  normalizing ? STATUS_MULTI_STATUS : STATUS_NOT_FOUND); +  exp_dir[case_ls] + "/" + exp_file[case_create] }), +  STATUS_MULTI_STATUS);       // When listing a file directly, it will have equivalent case    // in the returned list.    webdav_ls(dir_ls + "/" + file_ls, -  normalizing ? -  ({ exp_dir[case_ls] + "/" + exp_file[case_ls] }) : -  ({ }), -  normalizing ? STATUS_MULTI_STATUS : STATUS_NOT_FOUND); +  ({ exp_dir[case_ls] + "/" + exp_file[case_ls] }), +  STATUS_MULTI_STATUS); +  } else { +  webdav_ls(dir_ls, ({}), STATUS_NOT_FOUND); +  webdav_ls(dir_ls + "/" + file_ls, ({ }), STATUS_NOT_FOUND);    }    }    }    }    }    }    } -  + }      // Test create directory and file containing special chars.   public void test_x_special_chars()   {    string testdir = this::testcase_dir;    // If you want to try single chars, just ad them as new strings to the array    // below.    array(string) FILENAMES = ({   #ifdef __NT__    /* NB: *, ? and | are apparently invalid characters in NTFS. */