Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | minor cleanups in some of the ajax test code. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
7716c9852063a7d935b998e500127f0e |
| User & Date: | stephan 2012-02-13 09:48:31.641 |
Context
|
2012-02-13
| ||
| 20:19 | Update to the latest version of SQLite, which among other things, includes the fix for unix whereby the umask is ignored when creating journal files. That means that any process that has write permission on a repository should be able to recover hot journals. ... (check-in: 0a72346109 user: drh tags: trunk) | |
| 09:48 | minor cleanups in some of the ajax test code. ... (check-in: 7716c98520 user: stephan tags: trunk) | |
|
2012-02-12
| ||
| 12:41 | moved an incorrectly placed assertion in (json wiki save). ... (check-in: 4272d03e32 user: stephan tags: trunk) | |
Changes
Changes to ajax/i-test/rhino-test.js.
| ︙ | ︙ | |||
197 198 199 200 201 202 203 |
var args = [TestApp.fossilBinary, 'json', '--json-input', '-'];
var p = java.lang.Runtime.getRuntime().exec(args);
var outs = p.getOutputStream();
var osr = new java.io.OutputStreamWriter(outs);
var osb = new java.io.BufferedWriter(osr);
var json = JSON.stringify(req);
osb.write(json,0, json.length);
| < > | > > | 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
var args = [TestApp.fossilBinary, 'json', '--json-input', '-'];
var p = java.lang.Runtime.getRuntime().exec(args);
var outs = p.getOutputStream();
var osr = new java.io.OutputStreamWriter(outs);
var osb = new java.io.BufferedWriter(osr);
var json = JSON.stringify(req);
osb.write(json,0, json.length);
osb.close();
req = json = outs = osr = osb = undefined;
var ins = p.getInputStream();
var isr = new java.io.InputStreamReader(ins);
var br = new java.io.BufferedReader(isr);
var line;
while( null !== (line=br.readLine())){
print(line);
}
br.close();
isr.close();
ins.close();
p.waitFor();
}
testExternalProcess.description = 'Run fossil as external process.';
function testExternalProcessHandler(){
var aj = TestApp.fossil.ajaj;
var oldImpl = aj.sendImpl;
aj.sendImpl = FossilAjaj.rhinoLocalBinarySendImpl;
|
| ︙ | ︙ | |||
236 237 238 239 240 241 242 |
(function runAllTests(){
var testList = [
testHAI,
testIAmNobody,
testAnonymousLogin,
testAnonWiki,
testAnonLogout,
| | | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
(function runAllTests(){
var testList = [
testHAI,
testIAmNobody,
testAnonymousLogin,
testAnonWiki,
testAnonLogout,
testExternalProcess,
testExternalProcessHandler
];
var i, f;
for( i = 0; i < testList.length; ++i ){
f = testList[i];
try{
print("Running test #"+(i+1)+": "+(f.description || "no description."));
|
| ︙ | ︙ |