Lively Kernel canvas
// this script is evaluated on world load
truenull
10000.21626289756446074Wikicontroltrue
Rationale:JournalentryMarch17161
10003.4881750588846896e-8Wikicontroltrue
Runtestsfalsenull>' + result.selector;\n\t\t\tmsg += '\\n';\n\t\t\tmsg += result.err.message;\n\t\t\treturn msg;\n\t\t}).join('\\n---------\\n');\n\t\t$morph('testResult').setExtent(pt(400,20))\n\t\t$morph('testResult').setFill(Color.red);\n\t\t$morph('testResult').setTextString(failStr);\n\t} // runFinished\n}) /*require*/"]]>null
NetworkTest
Savefalsenull
truenull
200
false1truefalse
nulltruetestResult.failed[0].errtestResult.failed[0].errtestResult.failed[0].stackProperties.all(testResult.failed[0].err)newDate()-newDate()newlively.Tests.NetworkTest.WebResourceTest().runTest('test05aCopyTo')newlively.Tests.NetworkTest.WebResourceTest().runTest('test05bCopyDirTo')newWebResource(newURL('http://localhost/lively/foo/')).create()x=newURL('http://foo/bar/baz')x.filename()truetruefalse13truetruefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
nullfalsetruenullfalse
lively.Tests.NetworkTest.WebResourceTest:test06SubElementsfalsenullfalse
false
false
falsenullfalse
localrequirementsfalsetruefalse0false
initializerfalsetruefalse0false
lively.Tests.NetworkTest.WebResourceTestfalsetruefalse0false
WebResourcefalsetruefalse0false309-1nullnulltruetruetrue
1true
null
null
null
nulltruetrue
-----falsetruefalse0false309-1nullnulltruetruetrue
1true
null
null
null
nulltruetrue
truetrue2000000truetrue
1truetruetrue
Browseworld...falsenull
Pushchangesbackfalsenull
Refreshfalsenull
Evalonfalsenull
Sortfalsenull
truetruefalsenullnullnullnullfalse
nulltrue//propfindmodel={setResponseXML:function(xml){this.xml=xml}}url=URL.source.getDirectory()request=newNetRequest({model:model,setResponseXML:'setResponseXML'})request.propfind(url,'infinity')model.xmlExporter.stringify(model.xml)//extractrawNodes=newQuery("/D:multistatus/D:response").findAll(model.xml.documentElement);baseUrl=urlcolItems=rawNodes.map(function(rawNode){returnnewlively.storage.CollectionItem(rawNode,baseUrl)});x=colItems[340].asSVNVersionInfo()18truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsefalse
100022.20690555591744Wikicontroltrue
nulltrue//findversions//newNetRequest({model:this,setStatus:"setRequestStatus",setResponseText:"formatQuote"});url=newURL('http://localhost/svn/localLivelyRepo/trunk/');versionModel={setResponseXML:function(xml){this.xml=xml}}res=newSVNResource(url.getDirectory(),Record.newPlainInstance({URL:url.toString(),Metadata:null,HeadRevision:null}));res.fetchMetadata(true,null);timestamps=res.getMetadata();timestamps[0]revs=timestamps.collect(function(ea){returnea.toString()});14truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
nullfalsetruenullfalse
WebResourcefalsenullfalse
false
false
falsenullfalse
localrequirementsfalsetruefalse0false
initializerfalsetruefalse0false
lively.Tests.NetworkTest.WebResourceTestfalsetruefalse0false
WebResourcefalsetruefalse0false3103nullnulltruenullfalsenulltruetrue
1true
null
null
null
nulltruetrue
initializefalsetruefalse0false
getURLfalsetruefalse0false
getNamefalsetruefalse0false
isSyncfalsetruefalse0false
getContentfalsetruefalse0false
setContentfalsetruefalse0false
existsfalsetruefalse0false
isCollectionfalsetruefalse0false
copyTofalsetruefalse0false
subElementsfalsetruefalse0false
subCollectionsfalsetruefalse0false
subDocumentsfalsetruefalse0false
createfalsetruefalse0false
delfalsetruefalse0false310-1nullnulltruetruetrue
1true
null
null
null
nulltruetrue
Object.subclass('WebResource',{initialize:function(url){this._url=newURL(url);this._isSync=true;},getURL:function(){returnthis._url},getName:function(){returnthis.getURL().filename()},isSync:function(){returnthis._isSync},getContent:function(rev,contentType){varresource=newSVNResource(this.getURL().toString(),Record.newPlainInstance({URL:this.getURL().toString(),ContentText:null}));if(contentType)resource.contentType=contentType;resource.fetch(true,null,rev);returnresource.getContentText();},setContent:function(content,contentType){varresource=newResource(Record.newPlainInstance({URL:this.getURL().toString()}));if(contentType)resource.contentType=contentType;resource.store(content,true);},exists:function(optCb){if(this.isSync())returnnewNetRequest().beSync().get(this.getURL()).transport.status<400;varmodel={setStatus:function(status){optCb&&optCb(status.code<400)}}returnnewNetRequest({model:model,setStatus:"setStatus"}).get(this.getURL());},isCollection:function(){return!this.getURL().isLeaf()},copyTo:function(url){varotherResource=newWebResource(url);otherResource.create();newNetRequest().copy(this.getURL(),url,true/*overwrite*/);returnotherResource;},subElements:function(){varwebfile=newlively.storage.WebFile(Record.newPlainInstance({DirectoryList:[],RootNode:this.getURL()}));webfile.fetchContent(this.getURL(),true);varurls=webfile.getModel().getDirectoryList();urls.shift();returnurls.collect(function(url){returnnewWebResource(url)});},subCollections:function(){returnthis.subElements().select(function(ea){returnea.isCollection()});},subDocuments:function(){returnthis.subElements().select(function(ea){return!ea.isCollection()});},create:function(){if(!this.isCollection()){this.setContent('');return}newNetRequest().beSync().mkcol(this.getURL());},del:function(){newNetRequest().beSync().del(this.getURL());},});65truetrue2000000truetrue
1truetruetrue
Browseworld...falsenull
Pushchangesbackfalsenull
Refreshfalsenull
Evalonfalsenull
Sortfalsenull
truetruenullfalsenullnullnullnullfalsenull75