Warning, /pim/kdepim-runtime/resources/ical/autotests/icaltest.es is written in an unsupported language. File is not indexed.
0001 Resource.setType( "akonadi_ical_resource" ); 0002 Resource.setPathOption( "Path", "newical.ics" ); 0003 Resource.create(); 0004 0005 XmlOperations.setXmlFile( "ical-empty.xml" ); 0006 XmlOperations.setRootCollections( Resource.identifier() ); 0007 XmlOperations.setCollectionKey( "None" ); 0008 XmlOperations.ignoreCollectionField( "Name" ); // name is the resource identifier and thus unpredictable 0009 XmlOperations.setNormalizeRemoteIds( true ); 0010 XmlOperations.assertEqual(); 0011 0012 // item creation 0013 var i1 = ItemTest.newInstance(); 0014 i1.setParentCollection( Resource.identifier() ); 0015 i1.setMimeType( "text/calendar" ); 0016 i1.setPayloadFromFile( "event.ical" ); 0017 i1.create(); 0018 0019 var i2 = ItemTest.newInstance(); 0020 i2.setParentCollection( Resource.identifier() ); 0021 i2.setMimeType( "text/calendar" ); 0022 i2.setPayloadFromFile( "task.ical" ); 0023 i2.create(); 0024 0025 Resource.recreate(); 0026 0027 XmlOperations.setXmlFile( "ical-step1.xml" ); 0028 XmlOperations.setRootCollections( Resource.identifier() ); 0029 XmlOperations.ignoreCollectionField( "None" ); 0030 XmlOperations.assertEqual(); 0031