Merge lp:~ubuntu-branches/ubuntu/oneiric/tomboy/oneiric-201107271207 into lp:ubuntu/oneiric/tomboy

Proposed by Ubuntu Package Importer
Status: Rejected
Rejected by: James Westby
Proposed branch: lp:~ubuntu-branches/ubuntu/oneiric/tomboy/oneiric-201107271207
Merge into: lp:ubuntu/oneiric/tomboy
Diff against target: 1344 lines (+12/-1144) (has conflicts)
21 files modified
.pc/01_dllmaps.patch/Tomboy/Tomboy.exe.config.in (+0/-7)
.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs (+0/-83)
.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs (+0/-111)
.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs (+0/-37)
.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs (+0/-102)
.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs (+0/-166)
.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs (+0/-208)
.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs (+0/-306)
.pc/20_remove_pcfile_requires/data/tomboy-addins.pc.in (+0/-10)
.pc/30_fix_manpage_syntax/data/tomboy.1 (+0/-105)
Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs (+1/-1)
Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs (+1/-1)
Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs (+1/-1)
Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs (+1/-1)
Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs (+1/-1)
Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs (+1/-1)
Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs (+1/-1)
Tomboy/Tomboy.exe.config.in (+2/-2)
data/tomboy-addins.pc.in (+1/-0)
data/tomboy.1 (+1/-0)
debian/source/local-options (+1/-0)
Contents conflict in .pc/applied-patches
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/oneiric/tomboy/oneiric-201107271207
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+71868@code.launchpad.net

Description of the change

The package importer has detected a possible inconsistency between the package history in the archve and the history in bzr. As the archive is authoritative the importer has made lp:ubuntu/oneiric/tomboy reflect what is in the archive and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/tomboy/oneiric-201107271207. This merge proposal was created so that an Ubuntu developer can review the situations and perform a merge/upload if necessary. There are three typical cases where this can happen.
  1. Where someone pushes a change to bzr and someone else uploads the package without that change. This is the reason that this check is done by the importer. If this appears to be the case then a merge/upload should be done if the changes that were in bzr are still desirable.
  2. The importer incorrectly detected the above situation when someone made a change in bzr and then uploaded it.
  3. The importer incorrectly detected the above situation when someone just uploaded a package and didn't touch bzr.

If this case doesn't appear to be the first situation then set the status of the merge proposal to "Rejected" and help avoid the problem in future by filing a bug at https://bugs.launchpad.net/udd linking to this merge proposal.

(this is an automatically generated message)

To post a comment you must log in.

Unmerged revisions

83. By Iain Lane

Run dh_autoreconf with --as-needed to enable support in ltmain.sh

82. By Iain Lane

* Merge with Debian experimental, remaning changes:
  + Use dh-translations instead of manually stripping schema
  + Ubuntu patches:
    - Add Launchpad integration
    - Use Ubuntu One SSO
    - Add app indicator support
    - Use Ubuntu One as default sync server
    - Add initial note about Ubuntu One
  + autoreconf for some of the above changes
* Refresh patches that don't apply cleanly
* [6a8551d] Imported Upstream version 1.7.2
  + New addin for advanced preferences
  + Remove minumum size on Search All Notes window
  + Fix note title matching in TrieTree
  + Enforce minimum size on Name column in Search All Notes window

81. By Iain Lane

Merging shared upstream rev into target branch.

80. By Iain Lane

Use unapply-patches to satisfy bzr merge-package

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed directory '.pc/01_dllmaps.patch'
2=== removed directory '.pc/01_dllmaps.patch/Tomboy'
3=== removed file '.pc/01_dllmaps.patch/Tomboy/Tomboy.exe.config.in'
4--- .pc/01_dllmaps.patch/Tomboy/Tomboy.exe.config.in 2011-06-21 16:42:35 +0000
5+++ .pc/01_dllmaps.patch/Tomboy/Tomboy.exe.config.in 1970-01-01 00:00:00 +0000
6@@ -1,7 +0,0 @@
7-<configuration>
8- <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
9- <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
10- <dllmap dll="libgtkspell" target="libgtkspell.so.0"/>
11- <dllmap dll="libtomboy" target="libtomboy.so"/>
12- <dllmap dll="panel-applet-2" target="libpanel-applet-2.so.0"/>
13-</configuration>
14
15=== removed directory '.pc/10_disable_unit_tests'
16=== removed directory '.pc/10_disable_unit_tests/Tomboy'
17=== removed directory '.pc/10_disable_unit_tests/Tomboy/Addins'
18=== removed directory '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService'
19=== removed directory '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api'
20=== removed directory '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests'
21=== removed file '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs'
22--- .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs 2011-06-21 16:42:35 +0000
23+++ .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs 1970-01-01 00:00:00 +0000
24@@ -1,83 +0,0 @@
25-// Permission is hereby granted, free of charge, to any person obtaining
26-// a copy of this software and associated documentation files (the
27-// "Software"), to deal in the Software without restriction, including
28-// without limitation the rights to use, copy, modify, merge, publish,
29-// distribute, sublicense, and/or sell copies of the Software, and to
30-// permit persons to whom the Software is furnished to do so, subject to
31-// the following conditions:
32-//
33-// The above copyright notice and this permission notice shall be
34-// included in all copies or substantial portions of the Software.
35-//
36-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
40-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
41-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
42-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43-//
44-// Copyright (c) 2009 Novell, Inc. (http://www.novell.com)
45-//
46-// Authors:
47-// Sandy Armstrong <sanfordarmstrong@gmail.com>
48-//
49-
50-#if ENABLE_TESTS
51-
52-using System;
53-
54-using Tomboy.WebSync.Api;
55-using Hyena.Json;
56-
57-using NUnit.Framework;
58-
59-namespace Tomboy.WebSync.Api.Tests
60-{
61- [TestFixture]
62- public class NoteInfoTests
63- {
64- [Test]
65- public void ParseTest ()
66- {
67- Deserializer deserializer = new Deserializer ();
68-
69- string noteJson = "{\"guid\": \"002e91a2-2e34-4e2d-bf88-21def49a7705\"," +
70- "\"title\" :\"New Note 6\"," +
71- "\"note-content\" :\"New Note 6\\nDescribe youre note <b>here</b>.\"," +
72- "\"note-content-version\" : 0.2," +
73- "\"last-change-date\" : \"2009-04-19T21:29:23.2197340-07:00\"," +
74- "\"last-metadata-change-date\" : \"2009-04-19T21:29:23.2197340-07:00\"," +
75- "\"create-date\" : \"2008-03-06T13:44:46.4342680-08:00\"," +
76- "\"last-sync-revision\" : 57," +
77- "\"open-on-startup\" : false," +
78- "\"tags\" : [\"tag1\",\"tag2\"]" +
79- "}";
80- deserializer.SetInput (noteJson);
81- JsonObject noteObj = (JsonObject) deserializer.Deserialize ();
82- //Assert.AreEqual (57, (int)noteObj["last-sync-revision"]);
83- NoteInfo note = NoteInfo.ParseJson (noteObj);
84- Assert.AreEqual ("002e91a2-2e34-4e2d-bf88-21def49a7705", note.Guid, "GUID");
85- Assert.AreEqual ("New Note 6\nDescribe youre note <b>here</b>.", note.NoteContent, "NoteContent");
86- Assert.AreEqual (0.2, note.NoteContentVersion, "NoteContentVersion");
87- Assert.AreEqual ("New Note 6", note.Title, "Title");
88- Assert.AreEqual (DateTime.Parse ("2009-04-19T21:29:23.2197340-07:00"),
89- note.LastChangeDate, "LastChangeDate");
90- Assert.AreEqual (DateTime.Parse ("2009-04-19T21:29:23.2197340-07:00"),
91- note.LastMetadataChangeDate, "LastMetadataChangeDate");
92- Assert.AreEqual (DateTime.Parse ("2008-03-06T13:44:46.4342680-08:00"),
93- note.CreateDate, "CreateDate");
94- Assert.AreEqual (57, note.LastSyncRevision, "LastSyncRevision");
95-
96- Assert.IsTrue (note.OpenOnStartup.HasValue, "OpenOnStartup should have value");
97- Assert.IsFalse (note.OpenOnStartup.Value, "OpenOnStartup value");
98-
99- Assert.IsNotNull (note.Tags, "Tags should not be null");
100-
101- // TODO: Test resourceref,command,lack of guid,nullables,etc,
102- // ApplicationException when missing comma in string, wrong type, etc
103- }
104- }
105-}
106-
107-#endif
108\ No newline at end of file
109
110=== removed file '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs'
111--- .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs 2011-06-21 16:42:35 +0000
112+++ .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs 1970-01-01 00:00:00 +0000
113@@ -1,111 +0,0 @@
114-// Permission is hereby granted, free of charge, to any person obtaining
115-// a copy of this software and associated documentation files (the
116-// "Software"), to deal in the Software without restriction, including
117-// without limitation the rights to use, copy, modify, merge, publish,
118-// distribute, sublicense, and/or sell copies of the Software, and to
119-// permit persons to whom the Software is furnished to do so, subject to
120-// the following conditions:
121-//
122-// The above copyright notice and this permission notice shall be
123-// included in all copies or substantial portions of the Software.
124-//
125-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
126-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
127-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
128-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
129-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
130-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
131-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
132-//
133-// Copyright (c) 2009 Novell, Inc. (http://www.novell.com)
134-//
135-// Authors:
136-// Sandy Armstrong <sanfordarmstrong@gmail.com>
137-//
138-
139-#if ENABLE_TESTS
140-
141-using System;
142-
143-using Tomboy.WebSync.Api;
144-using Hyena.Json;
145-
146-using NUnit.Framework;
147-
148-namespace Tomboy.WebSync.Api.Tests
149-{
150- [TestFixture]
151- public class ResourceReferenceTests
152- {
153- [Test]
154- public void ParseTest ()
155- {
156- Deserializer deserializer = new Deserializer ();
157-
158- string refJson =
159- "{ \"api-ref\" : \"http://domain/api/1.0/sally/notes\", \"href\" : \"http://domain/sally/notes\"}";
160- deserializer.SetInput (refJson);
161- JsonObject refObj = (JsonObject) deserializer.Deserialize ();
162- ResourceReference resourceRef = ResourceReference.ParseJson (refObj);
163-
164- Assert.AreEqual ("http://domain/api/1.0/sally/notes",
165- resourceRef.ApiRef,
166- "ApiRef");
167- Assert.AreEqual ("http://domain/sally/notes",
168- resourceRef.Href,
169- "Href");
170-
171- refJson =
172- "{ \"api-ref\" : \"http://domain/api/1.0/sally/notes\"}";
173- deserializer.SetInput (refJson);
174- refObj = (JsonObject) deserializer.Deserialize ();
175- resourceRef = ResourceReference.ParseJson (refObj);
176-
177- Assert.AreEqual ("http://domain/api/1.0/sally/notes",
178- resourceRef.ApiRef,
179- "ApiRef");
180- Assert.IsNull (resourceRef.Href, "Href should be null when none specified");
181-
182- refJson =
183- "{ \"href\" : \"http://domain/sally/notes\"}";
184- deserializer.SetInput (refJson);
185- refObj = (JsonObject) deserializer.Deserialize ();
186- resourceRef = ResourceReference.ParseJson (refObj);
187-
188- Assert.AreEqual ("http://domain/sally/notes",
189- resourceRef.Href,
190- "Href");
191- Assert.IsNull (resourceRef.ApiRef, "ApiRef should be null when none specified");
192- }
193-
194- [Test]
195- public void ExceptionTest ()
196- {
197- bool expectedExceptionRaised = false;
198- try {
199- ResourceReference.ParseJson (null);
200- } catch (ArgumentNullException) {
201- expectedExceptionRaised = true;
202- }
203- Assert.IsTrue (expectedExceptionRaised,
204- "ArgumentNullException expected on null input");
205-
206- expectedExceptionRaised = false;
207-
208- Deserializer deserializer = new Deserializer ();
209- string invalidRefJson =
210- "{ \"api-ref\" : 5, \"href\" : \"http://domain/sally/notes\"}";
211- deserializer.SetInput (invalidRefJson);
212- JsonObject refObj = (JsonObject) deserializer.Deserialize ();
213- try {
214- ResourceReference.ParseJson (refObj);
215- } catch (InvalidCastException) {
216- expectedExceptionRaised = true;
217- }
218- Assert.IsTrue (expectedExceptionRaised,
219- "InvalidCastException expected on invalid input");
220- }
221- }
222-}
223-
224-#endif
225\ No newline at end of file
226
227=== removed file '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs'
228--- .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs 2011-06-21 16:42:35 +0000
229+++ .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs 1970-01-01 00:00:00 +0000
230@@ -1,37 +0,0 @@
231-// Permission is hereby granted, free of charge, to any person obtaining
232-// a copy of this software and associated documentation files (the
233-// "Software"), to deal in the Software without restriction, including
234-// without limitation the rights to use, copy, modify, merge, publish,
235-// distribute, sublicense, and/or sell copies of the Software, and to
236-// permit persons to whom the Software is furnished to do so, subject to
237-// the following conditions:
238-//
239-// The above copyright notice and this permission notice shall be
240-// included in all copies or substantial portions of the Software.
241-//
242-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
243-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
244-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
245-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
246-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
247-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
248-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
249-//
250-// Copyright (c) 2009 Novell, Inc. (http://www.novell.com)
251-//
252-// Authors:
253-// Sandy Armstrong <sanfordarmstrong@gmail.com>
254-//
255-
256-#if ENABLE_TESTS
257-
258-using System;
259-
260-namespace Tomboy.WebSync.Api.Tests
261-{
262- public class UserInfoTests
263- {
264- }
265-}
266-
267-#endif
268\ No newline at end of file
269
270=== removed directory '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json'
271=== removed directory '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests'
272=== removed file '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs'
273--- .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs 2011-06-21 16:42:35 +0000
274+++ .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs 1970-01-01 00:00:00 +0000
275@@ -1,102 +0,0 @@
276-//
277-// DeserializerTests.cs
278-//
279-// Author:
280-// Aaron Bockover <abockover@novell.com>
281-//
282-// Copyright (C) 2008 Novell, Inc.
283-//
284-// Permission is hereby granted, free of charge, to any person obtaining
285-// a copy of this software and associated documentation files (the
286-// "Software"), to deal in the Software without restriction, including
287-// without limitation the rights to use, copy, modify, merge, publish,
288-// distribute, sublicense, and/or sell copies of the Software, and to
289-// permit persons to whom the Software is furnished to do so, subject to
290-// the following conditions:
291-//
292-// The above copyright notice and this permission notice shall be
293-// included in all copies or substantial portions of the Software.
294-//
295-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
296-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
297-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
298-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
299-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
300-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
301-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
302-//
303-
304-#if ENABLE_TESTS
305-
306-using System;
307-using System.Reflection;
308-using NUnit.Framework;
309-
310-using Hyena.Json;
311-
312-namespace Hyena.Json.Tests
313-{
314- [TestFixture]
315- public class DeserializerTests
316- {
317- private Deserializer deserializer;
318-
319- [TestFixtureSetUp]
320- public void Setup ()
321- {
322- deserializer = new Deserializer ();
323- }
324-
325- [Test]
326- public void Literal ()
327- {
328- Assert.AreEqual ("hello", (string)deserializer.SetInput ("\"hello\"").Deserialize ());
329- Assert.AreEqual (-1.76e-3, (double)deserializer.SetInput ("-1.76e-3").Deserialize ());
330- Assert.AreEqual (null, deserializer.SetInput ("null").Deserialize ());
331- Assert.AreEqual (true, (bool)deserializer.SetInput ("true").Deserialize ());
332- Assert.AreEqual (false, (bool)deserializer.SetInput ("false").Deserialize ());
333- }
334-
335- [Test]
336- public void Array ()
337- {
338- JsonArray array = (JsonArray)deserializer.SetInput ("[]").Deserialize ();
339- Assert.AreEqual (0, array.Count);
340-
341- array = (JsonArray)deserializer.SetInput ("[[]]").Deserialize ();
342- Assert.AreEqual (1, array.Count);
343- Assert.AreEqual (0, ((JsonArray)array[0]).Count);
344-
345- array = (JsonArray)deserializer.SetInput ("[[true,[]]]").Deserialize ();
346- Assert.AreEqual (1, array.Count);
347- Assert.AreEqual (2, ((JsonArray)array[0]).Count);
348- Assert.AreEqual (0, ((JsonArray)((JsonArray)array[0])[1]).Count);
349-
350- array = (JsonArray)deserializer.SetInput ("[\"a\", 1.0, true]").Deserialize ();
351- Assert.AreEqual (3, array.Count);
352- Assert.AreEqual ("a", (string)array[0]);
353- Assert.AreEqual (1, (double)array[1]);
354- Assert.AreEqual (true, (bool)array[2]);
355- }
356-
357- [Test]
358- public void Object ()
359- {
360- JsonObject obj = (JsonObject)deserializer.SetInput ("{}").Deserialize ();
361- Assert.AreEqual (0, obj.Count);
362-
363- obj = (JsonObject)deserializer.SetInput ("{\"a\":{}}").Deserialize ();
364- Assert.AreEqual (1, obj.Count);
365- Assert.AreEqual (0, ((JsonObject)obj["a"]).Count);
366-
367- obj = (JsonObject)deserializer.SetInput ("{\"a\":[{\"b\":false},\"c\"]}").Deserialize ();
368- Assert.AreEqual (1, obj.Count);
369- JsonArray arr = (JsonArray)obj["a"];
370- Assert.AreEqual (2, arr.Count);
371- Assert.AreEqual (false, ((JsonObject)arr[0])["b"]);
372- Assert.AreEqual ("c", (string)arr[1]);
373- }
374- }
375-}
376-
377-#endif
378
379=== removed file '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs'
380--- .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs 2011-06-21 16:42:35 +0000
381+++ .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs 1970-01-01 00:00:00 +0000
382@@ -1,166 +0,0 @@
383-// Permission is hereby granted, free of charge, to any person obtaining
384-// a copy of this software and associated documentation files (the
385-// "Software"), to deal in the Software without restriction, including
386-// without limitation the rights to use, copy, modify, merge, publish,
387-// distribute, sublicense, and/or sell copies of the Software, and to
388-// permit persons to whom the Software is furnished to do so, subject to
389-// the following conditions:
390-//
391-// The above copyright notice and this permission notice shall be
392-// included in all copies or substantial portions of the Software.
393-//
394-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
395-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
396-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
397-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
398-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
399-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
400-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
401-//
402-// Copyright (c) 2009 Novell, Inc. (http://www.novell.com)
403-//
404-// Authors:
405-// Sandy Armstrong <sanfordarmstrong@gmail.com>
406-//
407-
408-#if ENABLE_TESTS
409-
410-using System;
411-
412-using Hyena.Json;
413-
414-using NUnit.Framework;
415-
416-namespace Hyena.Json.Tests
417-{
418- [TestFixture]
419- public class SerializerTests
420- {
421- [Test]
422- public void SerializeBoolTest ()
423- {
424- Serializer ser = new Serializer (true);
425- Assert.AreEqual ("true", ser.Serialize ());
426- ser.SetInput (false);
427- Assert.AreEqual ("false", ser.Serialize ());
428- }
429-
430- [Test]
431- public void SerializeIntTest ()
432- {
433- Serializer ser = new Serializer (12);
434- Assert.AreEqual ("12", ser.Serialize ());
435- ser.SetInput (-658);
436- Assert.AreEqual ("-658", ser.Serialize ());
437- ser.SetInput (0);
438- Assert.AreEqual ("0", ser.Serialize ());
439- }
440-
441- [Test]
442- public void SerializeDoubleTest ()
443- {
444- Serializer ser = new Serializer (12.5);
445- Assert.AreEqual ("12.5", ser.Serialize ());
446- ser.SetInput (-658.1);
447- Assert.AreEqual ("-658.1", ser.Serialize ());
448- ser.SetInput (0.0);
449- Assert.AreEqual ("0", ser.Serialize ());
450- ser.SetInput (0.1);
451- Assert.AreEqual ("0.1", ser.Serialize ());
452- }
453-
454- [Test]
455- public void SerializeStringTest ()
456- {
457- VerifyString ("The cat\njumped \"over\" the rat! We escape with \\\"",
458- @"""The cat\njumped \""over\"" the rat! We escape with \\\""""");
459- }
460-
461- [Test]
462- public void EscapedCharactersTest ()
463- {
464- VerifyString ("\\", @"""\\""");
465- VerifyString ("\b", @"""\b""");
466- VerifyString ("\f", @"""\f""");
467- VerifyString ("\n", @"""\n""");
468- VerifyString ("\r", @"""\r""");
469- VerifyString ("\t", @"""\t""");
470- VerifyString ("\u2022", "\"\u2022\"");
471- }
472-
473- private void VerifyString (string original, string expectedSerialized)
474- {
475- Serializer ser = new Serializer (original);
476- string output = ser.Serialize ();
477- Assert.AreEqual (expectedSerialized, output, "Serialized Output");
478- Assert.AreEqual (original, new Deserializer (output).Deserialize (),
479- "Input should be identical after serialized then deserialized back to string");
480- }
481-
482- [Test]
483- public void SerializeNullTest ()
484- {
485- Serializer ser = new Serializer (null);
486- Assert.AreEqual ("null", ser.Serialize ());
487- }
488-
489- [Test]
490- public void SerializeArrayTest ()
491- {
492- JsonArray simpleArray = new JsonArray ();
493- simpleArray.Add (1);
494- simpleArray.Add ("text");
495- simpleArray.Add (0.1);
496- simpleArray.Add ("5");
497- simpleArray.Add (false);
498- simpleArray.Add (null);
499-
500- Serializer ser = new Serializer (simpleArray);
501- Assert.AreEqual ("[1,\"text\",0.1,\"5\",false,null]",
502- ser.Serialize ());
503-
504- JsonArray emptyArray = new JsonArray ();
505- ser.SetInput (emptyArray);
506- Assert.AreEqual ("[]", ser.Serialize ());
507- }
508-
509- // TODO: Test arrays/objects in each other, various levels deep
510-
511- [Test]
512- public void SerializeObjectTest ()
513- {
514- JsonObject obj1 = new JsonObject ();
515- obj1 ["intfield"] = 1;
516- obj1 ["text field"] = "text";
517- obj1 ["double-field"] = 0.1;
518- obj1 ["Boolean, Field"] = true;
519- obj1 ["\"Null\"\nfield"] = null;
520-
521- Serializer ser = new Serializer (obj1);
522- // Test object equality, since order not guaranteed
523- string output = ser.Serialize ();
524- JsonObject reconstitutedObj1 = (JsonObject) new Deserializer (output).Deserialize ();
525- AssertJsonObjectsEqual (obj1, reconstitutedObj1);
526-
527- JsonObject obj2 = new JsonObject ();
528- obj2 ["double-field"] = 0.1;
529- obj2 ["\"Null\"\nfield"] = null;
530- ser.SetInput (obj2);
531- output = ser.Serialize ();
532- Assert.IsTrue ((output == "{\"double-field\":0.1,\"\\\"Null\\\"\\nfield\":null}") ||
533- (output == "{\"\\\"Null\\\"\\nfield\":null,\"double-field\":0.1}"),
534- "Serialized output format");
535- }
536-
537- private void AssertJsonObjectsEqual (JsonObject expectedObj, JsonObject actualObj)
538- {
539- Assert.AreEqual (expectedObj.Count, actualObj.Count, "Field count");
540- foreach (var expectedPair in expectedObj)
541- Assert.AreEqual (expectedPair.Value,
542- actualObj [expectedPair.Key],
543- expectedPair.Key + " field");
544- }
545- }
546-}
547-
548-#endif
549\ No newline at end of file
550
551=== removed file '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs'
552--- .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs 2011-06-21 16:42:35 +0000
553+++ .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs 1970-01-01 00:00:00 +0000
554@@ -1,208 +0,0 @@
555-//
556-// TokenizerTests.cs
557-//
558-// Author:
559-// Aaron Bockover <abockover@novell.com>
560-//
561-// Copyright (C) 2008 Novell, Inc.
562-//
563-// Permission is hereby granted, free of charge, to any person obtaining
564-// a copy of this software and associated documentation files (the
565-// "Software"), to deal in the Software without restriction, including
566-// without limitation the rights to use, copy, modify, merge, publish,
567-// distribute, sublicense, and/or sell copies of the Software, and to
568-// permit persons to whom the Software is furnished to do so, subject to
569-// the following conditions:
570-//
571-// The above copyright notice and this permission notice shall be
572-// included in all copies or substantial portions of the Software.
573-//
574-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
575-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
576-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
577-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
578-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
579-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
580-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
581-//
582-
583-#if ENABLE_TESTS
584-
585-using System;
586-using System.Reflection;
587-using NUnit.Framework;
588-
589-using Hyena.Json;
590-
591-namespace Hyena.Json.Tests
592-{
593- [TestFixture]
594- public class TokenizerTests
595- {
596- private Tokenizer tokenizer;
597-
598- [TestFixtureSetUp]
599- public void Setup ()
600- {
601- tokenizer = new Tokenizer ();
602- }
603-
604- [Test]
605- public void Whitespace ()
606- {
607- AssertTokenStream ("");
608- AssertTokenStream (" ");
609- AssertTokenStream ("\f\n\r\t ");
610- }
611-
612- [Test]
613- public void BoolNull ()
614- {
615- // Boolean/null tests
616- AssertTokenStream ("true", Token.Bool (true));
617- AssertTokenStream ("false", Token.Bool (false));
618- AssertTokenStream ("null", Token.Null);
619- }
620-
621- [Test]
622- public void NumberInt ()
623- {
624- // Number tests
625- AssertTokenStream ("0", Token.Integer (0));
626- AssertTokenStream ("-0", Token.Integer (-0));
627-
628- AssertTokenStream ("9", Token.Integer (9));
629- AssertTokenStream ("-9", Token.Integer (-9));
630-
631- AssertTokenStream ("14", Token.Integer (14));
632- AssertTokenStream ("-14", Token.Integer (-14));
633-
634- AssertTokenStream ("15309", Token.Integer (15309));
635- AssertTokenStream ("-15309", Token.Integer (-15309));
636- }
637-
638- [Test]
639- public void NumberFloat ()
640- {
641- AssertTokenStream ("0.0", Token.Number (0.0));
642- AssertTokenStream ("-0.0", Token.Number (-0.0));
643-
644- AssertTokenStream ("1.9", Token.Number (1.9));
645- AssertTokenStream ("-1.9", Token.Number (-1.9));
646-
647- AssertTokenStream ("9.1", Token.Number (9.1));
648- AssertTokenStream ("-9.1", Token.Number (-9.1));
649-
650- AssertTokenStream ("15309.0", Token.Number (15309.0));
651- AssertTokenStream ("15309.9", Token.Number (15309.9));
652- AssertTokenStream ("-15309.01", Token.Number (-15309.01));
653- AssertTokenStream ("-15309.9009", Token.Number (-15309.9009));
654- }
655-
656- [Test]
657- public void NumberExponent ()
658- {
659- AssertTokenStream ("20.6e3", Token.Number (20.6e3));
660- AssertTokenStream ("20.6e+3", Token.Number (20.6e+3));
661- AssertTokenStream ("20.6e-3", Token.Number (20.6e-3));
662- AssertTokenStream ("-20.6e3", Token.Number (-20.6e3));
663- AssertTokenStream ("-20.6e+3", Token.Number (-20.6e+3));
664- AssertTokenStream ("-20.6e-3", Token.Number (-20.6e-3));
665-
666- AssertTokenStream ("1e1", Token.Number (1e1));
667- AssertTokenStream ("1E2", Token.Number (1E2));
668- AssertTokenStream ("1.0e1", Token.Number (1.0e1));
669- AssertTokenStream ("1.0E1", Token.Number (1.0E1));
670- }
671-
672- [Test]
673- public void Strings ()
674- {
675- AssertTokenStream (@"""""", Token.String (""));
676- AssertTokenStream (@"""a""", Token.String ("a"));
677- AssertTokenStream (@"""ab""", Token.String ("ab"));
678- AssertTokenStream (@" ""a b"" ", Token.String ("a b"));
679- AssertTokenStream (@"""\""\""""", Token.String ("\"\""));
680- AssertTokenStream (@" ""a \"" \"" b"" ", Token.String ("a \" \" b"));
681- AssertTokenStream (@"""\ubeef""", Token.String ("\ubeef"));
682- AssertTokenStream (@"""\u00a9""", Token.String ("\u00a9"));
683- AssertTokenStream (@"""\u0000\u0001\u0002""", Token.String ("\u0000\u0001\u0002"));
684- AssertTokenStream (@"""1\uabcdef0""", Token.String ("1\uabcdef0"));
685- AssertTokenStream (@"""\b\f\n\r\t""", Token.String ("\b\f\n\r\t"));
686- }
687-
688- [Test]
689- public void Container ()
690- {
691- AssertTokenStream ("{}", Token.ObjectStart, Token.ObjectFinish);
692- AssertTokenStream ("[]", Token.ArrayStart, Token.ArrayFinish);
693- AssertTokenStream ("{ }", Token.ObjectStart, Token.ObjectFinish);
694- AssertTokenStream ("[ ]", Token.ArrayStart, Token.ArrayFinish);
695- AssertTokenStream ("[{}]", Token.ArrayStart, Token.ObjectStart, Token.ObjectFinish, Token.ArrayFinish);
696- AssertTokenStream ("[[[ { } ]]]",
697- Token.ArrayStart, Token.ArrayStart, Token.ArrayStart,
698- Token.ObjectStart, Token.ObjectFinish,
699- Token.ArrayFinish, Token.ArrayFinish, Token.ArrayFinish);
700- }
701-
702- [Test]
703- public void Array ()
704- {
705- AssertTokenStream ("[1]", Token.ArrayStart, Token.Integer (1), Token.ArrayFinish);
706- AssertTokenStream ("[1,0]", Token.ArrayStart, Token.Integer (1), Token.Comma, Token.Integer (0), Token.ArrayFinish);
707- AssertTokenStream ("[\"a\",true,null]", Token.ArrayStart, Token.String ("a"), Token.Comma,
708- Token.Bool (true), Token.Comma, Token.Null, Token.ArrayFinish);
709- AssertTokenStream ("[0,1,[[2,[4]],5],6]", Token.ArrayStart, Token.Integer (0), Token.Comma, Token.Integer (1),
710- Token.Comma, Token.ArrayStart, Token.ArrayStart, Token.Integer (2), Token.Comma, Token.ArrayStart,
711- Token.Integer (4), Token.ArrayFinish, Token.ArrayFinish, Token.Comma, Token.Integer (5), Token.ArrayFinish,
712- Token.Comma, Token.Integer (6), Token.ArrayFinish);
713- }
714-
715- [Test]
716- public void Object ()
717- {
718- AssertTokenStream ("{\"a\":{}}", Token.ObjectStart, Token.String ("a"), Token.Colon, Token.ObjectStart,
719- Token.ObjectFinish, Token.ObjectFinish);
720- AssertTokenStream ("{\"a\":{\"b\":[],\"c\":false}}", Token.ObjectStart, Token.String ("a"),
721- Token.Colon, Token.ObjectStart, Token.String ("b"), Token.Colon, Token.ArrayStart, Token.ArrayFinish,
722- Token.Comma, Token.String ("c"), Token.Colon, Token.Bool (false), Token.ObjectFinish, Token.ObjectFinish);
723- AssertTokenStream ("[{\"a\":{},{}]", Token.ArrayStart, Token.ObjectStart, Token.String ("a"), Token.Colon,
724- Token.ObjectStart, Token.ObjectFinish, Token.Comma, Token.ObjectStart, Token.ObjectFinish, Token.ArrayFinish);
725- }
726-
727- private void AssertTokenStream (string input, params Token [] tokens)
728- {
729- int cmp_idx = 0;
730- tokenizer.SetInput (input);
731-
732- while (true) {
733- Token token = tokenizer.Scan ();
734- if (token == null) {
735- if (cmp_idx != tokens.Length) {
736- throw new ApplicationException ("Unexpected EOF");
737- }
738- break;
739- }
740-
741- Token compare = tokens[cmp_idx++];
742- if (compare.Type != token.Type) {
743- throw new ApplicationException (String.Format ("TokenTypes do not match (exp {0}, got {1}",
744- compare.Type, token.Type));
745- }
746-
747- if (compare.Value == null && token.Value == null) {
748- continue;
749- }
750-
751- if ((compare.Type == TokenType.Integer && (int)compare.Value != (int)token.Value) ||
752- (compare.Type == TokenType.Number && (double)compare.Value != (double)token.Value) ||
753- (compare.Type == TokenType.String && (string)compare.Value != (string)token.Value) ||
754- (compare.Type == TokenType.Boolean && (bool)compare.Value != (bool)token.Value)) {
755- throw new ApplicationException ("Token values do not match");
756- }
757- }
758- }
759- }
760-}
761-
762-#endif
763
764=== removed directory '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Tests'
765=== removed file '.pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs'
766--- .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs 2011-06-21 16:42:35 +0000
767+++ .pc/10_disable_unit_tests/Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs 1970-01-01 00:00:00 +0000
768@@ -1,306 +0,0 @@
769-// Permission is hereby granted, free of charge, to any person obtaining
770-// a copy of this software and associated documentation files (the
771-// "Software"), to deal in the Software without restriction, including
772-// without limitation the rights to use, copy, modify, merge, publish,
773-// distribute, sublicense, and/or sell copies of the Software, and to
774-// permit persons to whom the Software is furnished to do so, subject to
775-// the following conditions:
776-//
777-// The above copyright notice and this permission notice shall be
778-// included in all copies or substantial portions of the Software.
779-//
780-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
781-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
782-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
783-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
784-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
785-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
786-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
787-//
788-// Copyright (c) 2009 Novell, Inc. (http://www.novell.com)
789-//
790-// Authors:
791-// Sandy Armstrong <sanfordarmstrong@gmail.com>
792-//
793-
794-#if ENABLE_TESTS
795-
796-using System;
797-using System.Collections.Generic;
798-using System.IO;
799-using System.Reflection;
800-
801-using Tomboy.WebSync;
802-using Tomboy.WebSync.Api;
803-
804-using NUnit.Framework;
805-
806-namespace Tomboy.WebSync.Tests
807-{
808- [TestFixture]
809- public class NoteConvertTests
810- {
811- [TestFixtureSetUp]
812- public void FixtureSetUp ()
813- {
814- InMemoryPreferencesClient memPrefsClient = new InMemoryPreferencesClient ();
815-
816- Type prefsType = typeof (Preferences);
817- FieldInfo prefsClientField =
818- prefsType.GetField ("client", BindingFlags.NonPublic
819- | BindingFlags.Static);
820- prefsClientField.SetValue (null, memPrefsClient);
821-
822- Type servicesType = typeof (Services);
823- FieldInfo servicesClientField =
824- servicesType.GetField ("prefs", BindingFlags.NonPublic
825- | BindingFlags.Static);
826- servicesClientField.SetValue (null, memPrefsClient);
827- }
828-
829- [TestFixtureTearDown]
830- public void FixtureTearDown ()
831- {
832- Type prefsType = typeof (Preferences);
833- FieldInfo prefsClientField =
834- prefsType.GetField ("client", BindingFlags.NonPublic
835- | BindingFlags.Static);
836- prefsClientField.SetValue (null, null);
837-
838- Type servicesType = typeof (Services);
839- FieldInfo servicesClientField =
840- servicesType.GetField ("client", BindingFlags.NonPublic
841- | BindingFlags.Static);
842- servicesClientField.SetValue (null, null);
843- }
844-
845- [Test]
846- public void ToNoteInfoTest ()
847- {
848- // Note content stress tests
849- string [] titles = new string [18];
850- string [] contents = new string [18];
851- string [] expectedInfoContents = new string [18];
852-
853- titles [0] = "(Untitled 238)";
854- contents [0] = @"<note-content version=""0.1"">
855-
856-Title Actually on Third Line
857-
858-(edited before moving to third line)
859-
860-<link:internal>new note 322</link:internal>
861-
862-title on second lin</note-content>";
863- expectedInfoContents [0] = @"Title Actually on Third Line
864-
865-(edited before moving to third line)
866-
867-<link:internal>new note 322</link:internal>
868-
869-title on second lin";
870-
871- titles [1] = "Title on Fourth Line";
872- contents [1] = @"<note-content version=""0.1"">
873-
874-
875-Title on Fourth Line
876-
877-Describe your new note here.</note-content>";
878- expectedInfoContents [1] = @"
879-Title on Fourth Line
880-
881-Describe your new note here.";
882-
883- titles [2] = "New Note 322";
884- contents [2] = @"<note-content version=""0.1"">
885-Title on second lin
886-
887-(edited after moving to second line)</note-content>";
888- expectedInfoContents [2] = @"Title on second lin
889-
890-(edited after moving to second line)";
891-
892- titles [3] = "New Note 326";
893- contents [3] = @"<note-content version=""0.1"">
894-
895-
896-
897-
898-
899-
900-
901-New Note 326
902-
903-Describe your new note here.</note-content>";
904- expectedInfoContents [3] = @"
905-
906-
907-
908-
909-
910-New Note 326
911-
912-Describe your new note here.";
913-
914- titles [4] = "(Untitled 331)";
915- contents [4] = @"<note-content version=""0.1"" />";
916- expectedInfoContents [4] = string.Empty;
917-
918- titles [5] = "(Untitled 329)";
919- contents [5] = @"<note-content version=""0.1"">
920-Text on second line added after first line totally deleted
921-Describe your new note here.</note-content>";
922- expectedInfoContents [5] = @"Text on second line added after first line totally deleted
923-Describe your new note here.";
924-
925- titles [6] = "Seventy Six trombones in the big parade blah blah blah blah blah blah blah blah hlkjsfdijsdflksjf lsajfsdlj lskjf sljk lsjf sljflsjf lsjkf sljfsl slfj sljfslkjf lsjf lsjf lsj fsdlj fsdlj fsljkf sljkf slfjk slkfj slfj sldfj sljkf lsakjfslajf sljf lsfjk sl dfjlsf j";
926- contents [6] = @"<note-content version=""0.1"">Seventy Six trombones in the big parade blah blah blah blah blah blah blah blah hlkjsfdijsdflksjf lsajfsdlj lskjf sljk lsjf sljflsjf lsjkf sljfsl slfj sljfslkjf lsjf lsjf lsj fsdlj fsdlj fsljkf sljkf slfjk slkfj slfj sldfj sljkf lsakjfslajf sljf lsfjk sl dfjlsf j
927-Title on Third Lne yeah?
928-
929-(edited before moving to second line...didn't mean third)</note-content>";
930- expectedInfoContents [6] = @"Title on Third Lne yeah?
931-
932-(edited before moving to second line...didn't mean third)";
933-
934- titles [7] = "New Note 329";
935- contents [7] = @"<note-content version=""0.1"">New Note 329
936-
937-Describe your new note here.</note-content>";
938- expectedInfoContents [7] = @"Describe your new note here.";
939-
940- titles [8] = "New Note 329";
941- contents [8] = @"<note-content version=""0.1""><note-title>New Note 329</note-title>
942-
943-Describe your new note here.</note-content>";
944- expectedInfoContents [8] = @"<note-title></note-title>Describe your new note here.";
945-
946- titles [9] = "New Note 329";
947- contents [9] = @"<note-content version=""0.1""><note-title><b>New Note 329</b></note-title>
948-
949-Describe your new note here.</note-content>";
950- expectedInfoContents [9] = @"<note-title><b></b></note-title>Describe your new note here.";
951-
952- titles [10] = "New Note 329";
953- contents [10] = @"<note-content version=""0.1""><size:huge><note-title>New Note 329</note-title>
954-
955-Describe your new note here.</size:huge></note-content>";
956- expectedInfoContents [10] = @"<size:huge><note-title></note-title>Describe your new note here.</size:huge>";
957-
958- titles [11] = "New Note 329";
959- contents [11] = @"<note-content version=""0.1""><size:huge>New Note 329
960-
961-Describe your new note here.</size:huge></note-content>";
962- expectedInfoContents [11] = @"<size:huge>Describe your new note here.</size:huge>";
963-
964- titles [12] = "New Note 330";
965- contents [12] = @"<note-content version=""0.1"">New Note 330
966-Describe your new note here.</note-content>";
967- expectedInfoContents [12] = @"Describe your new note here.";
968-
969- titles [13] = "New Note 331";
970- contents [13] = @"<note-content version=""0.1"">New Note 331
971-
972-
973-Describe your new note here.</note-content>";
974- expectedInfoContents [13] = @"
975-Describe your new note here.";
976-
977- titles [14] = "New Note 331";
978- contents [14] = @"<note-content version="""">New Note 331
979-
980-Describe your new note here.</note-content>";
981- expectedInfoContents [14] = @"Describe your new note here.";
982-
983- titles [15] = "New Note 331";
984- contents [15] = @"<note-content xmlns:link=""http://beatniksoftware.com/tomboy/link"" xmlns:size=""http://beatniksoftware.com/tomboy/size"" version=""0.1"">New Note 331
985-
986-Describe your new note here.</note-content>";
987- expectedInfoContents [15] = @"Describe your new note here.";
988-
989- titles [16] = "New Note 331";
990- contents [16] = @"<note-content xmlns:link=""http://beatniksoftware.com/tomboy/link"" version=""0.1"" xmlns:size=""http://beatniksoftware.com/tomboy/size"">New Note 331
991-
992-Describe your new note here.</note-content>";
993- expectedInfoContents [16] = @"Describe your new note here.";
994-
995- titles [17] = "New Note 331";
996- contents [17] = @"<note-content version=""0.1"" xmlns:size=""http://beatniksoftware.com/tomboy/size"">New Note 331
997-
998-Describe your new note here.</note-content>";
999- expectedInfoContents [17] = @"Describe your new note here.";
1000-
1001-
1002- for (int i = 0; i < titles.Length; i++) {
1003- NoteData data = new NoteData ("note://tomboy/12345");
1004- data.Title = titles [i];
1005- data.Text = contents [i];
1006- string tmpFileName = "ToNoteInfoTest.tmp";
1007- File.Create (tmpFileName).Close ();
1008- File.SetCreationTime (tmpFileName, new DateTime (2009, 1, 5));
1009- File.SetLastWriteTime (tmpFileName, new DateTime (2009, 1, 6));
1010-
1011- Note note = Note.CreateExistingNote (data, tmpFileName, null);
1012-
1013- NoteInfo info = NoteConvert.ToNoteInfo (note);
1014- Assert.AreEqual (titles [i], info.Title, "Title " + i.ToString ());
1015- Assert.AreEqual (expectedInfoContents [i], info.NoteContent, "NoteContent " + i.ToString ());
1016- Assert.AreEqual (0.1, info.NoteContentVersion.Value, "NoteContentVersion " + i.ToString ());
1017- }
1018- }
1019- }
1020-
1021- public class InMemoryPreferencesClient : IPreferencesClient
1022- {
1023- private Dictionary<string, object> prefs =
1024- new Dictionary<string, object> ();
1025- private Dictionary<string, NotifyEventHandler> events =
1026- new Dictionary<string, NotifyEventHandler> ();
1027-
1028- #region IPreferencesClient implementation
1029- public void Set (string key, object val)
1030- {
1031- prefs [key] = val;
1032- foreach (string nkey in events.Keys) {
1033- NotifyEventHandler handler = events [nkey] as NotifyEventHandler;
1034- if (handler != null && key.StartsWith (nkey)) {
1035- NotifyEventArgs args = new NotifyEventArgs (key, val);
1036- handler (this, args);
1037- }
1038- }
1039- }
1040-
1041- public object Get (string key)
1042- {
1043- object val;
1044- if (prefs.TryGetValue (key, out val))
1045- return val;
1046- throw new NoSuchKeyException (key);
1047- }
1048-
1049- public void AddNotify (string dir, NotifyEventHandler notify)
1050- {
1051- lock (events) {
1052- if (!events.ContainsKey (dir))
1053- events [dir] = notify;
1054- else
1055- events [dir] += notify;
1056- }
1057- }
1058-
1059- public void RemoveNotify (string dir, NotifyEventHandler notify)
1060- {
1061- lock (events) {
1062- if (events.ContainsKey (dir))
1063- events [dir] -= notify;
1064- }
1065- }
1066-
1067- public void SuggestSync ()
1068- {
1069- }
1070- #endregion
1071- }
1072-}
1073-
1074-#endif
1075\ No newline at end of file
1076
1077=== removed directory '.pc/20_remove_pcfile_requires'
1078=== removed directory '.pc/20_remove_pcfile_requires/data'
1079=== removed file '.pc/20_remove_pcfile_requires/data/tomboy-addins.pc.in'
1080--- .pc/20_remove_pcfile_requires/data/tomboy-addins.pc.in 2011-06-21 16:42:35 +0000
1081+++ .pc/20_remove_pcfile_requires/data/tomboy-addins.pc.in 1970-01-01 00:00:00 +0000
1082@@ -1,10 +0,0 @@
1083-prefix=@prefix@
1084-exec_prefix=@exec_prefix@
1085-libdir=@libdir@
1086-addinsdir=@libdir@/tomboy/addins
1087-
1088-Name: Tomboy Addin Library
1089-Description: Library providing the interfaces for Tomboy addins
1090-Requires: gtk-sharp-2.0
1091-Version: @VERSION@
1092-Libs: -r:${libdir}/tomboy/Tomboy.exe
1093
1094=== removed directory '.pc/30_fix_manpage_syntax'
1095=== removed directory '.pc/30_fix_manpage_syntax/data'
1096=== removed file '.pc/30_fix_manpage_syntax/data/tomboy.1'
1097--- .pc/30_fix_manpage_syntax/data/tomboy.1 2011-06-21 16:42:35 +0000
1098+++ .pc/30_fix_manpage_syntax/data/tomboy.1 1970-01-01 00:00:00 +0000
1099@@ -1,105 +0,0 @@
1100-.TH TOMBOY 1 "October 14, 2004" gnome "GNOME User's Manuals"
1101-.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
1102-.\" other parms are allowed: see man(7), man(1)
1103-
1104-.SH NAME
1105-tomboy \- A simple note-taking application for Gnome
1106-
1107-.SH SYNOPSIS
1108-.B tomboy
1109-.I "[OPTION] ..."
1110-
1111-.SH "DESCRIPTION"
1112-This manual page documents briefly the
1113-.BR tomboy
1114-command.
1115-./"Instead, it has documentation in the GNU Info format; see below.
1116-.PP
1117-.B Tomboy
1118-is a desktop note-taking application for Linux and Unix. Simple and
1119-easy to use, but with potential to help you organize the ideas and
1120-information you deal with every day.
1121-.PP
1122-Tomboy's usefulness lies in the ability to relate notes and ideas
1123-together, using a WikiWiki-like linking system.
1124-.PP
1125-When run without any options, the Tomboy note menu appears in the
1126-Gnome Panel's notification tray area. Selecting a note from the menu
1127-displays the note's spatial window.
1128-.PP
1129-Changes to notes are saved automatically. Links to URLs, files, and
1130-other notes are detected as you type. Rich editing such as
1131-highlighting, bold, italics, undo/redo, and variable font sizes are
1132-supported.
1133-.PP
1134-Global keybindings exist to allow fast access to Tomboy notes and
1135-dialogs. These keybindings are set in GConf (see below) and may be
1136-activated from any application.
1137-
1138-.SH OPTIONS
1139-The program follows the usual GNU command line syntax, with
1140-options starting with two dashes (`--').
1141-A summary of options are included below.
1142-.\"For a complete description, see the Info files.
1143-.TP
1144-.B \-\-new-note
1145-Create and display a new note.
1146-.TP
1147-.B \-\-new-note TITLE
1148-Create and display a new note with the title given.
1149-.TP
1150-.B \-\-open-note TITLE/URL
1151-Display the existing note matching TITLE or URL.
1152-.TP
1153-.B \-\-start-here
1154-Display the "Start Here" note.
1155-.TP
1156-.B \-\-highlight-search TEXT
1157-Search and highlight TEXT in the opened note.
1158-.TP
1159-.B \-\-help
1160-Show summary of options.
1161-.TP
1162-.B \-\-version
1163-Show version of program.
1164-.TP
1165-.B \-\-debug
1166-Turn on debugging output.
1167-
1168-.SH "GCONF SETTINGS"
1169-Tomboy has several preference settings stored in GConf. Changes to
1170-Settings are applied instantly to any running Tomboy instance. A
1171-summary of the GConf settings and their purpose are described below.
1172-.TP
1173-.B /apps/tomboy/global_keybindings/open_start_here
1174-Global X keybinding for displaying the "Start Here" note.
1175-The default keybinding is <Alt>F11.
1176-.TP
1177-.B /apps/tomboy/global_keybindings/show_note_menu
1178-Global X keybinding for displaying the Tomboy applet's note menu.
1179-The default keybinding is <Alt>F12.
1180-.TP
1181-.B /apps/tomboy/global_keybindings/create_new_note
1182-Global X keybinding for creating and displaying a new note.
1183-.TP
1184-.B /apps/tomboy/global_keybindings/open_recent_changes
1185-Global X keybinding for opening the recent changes dialog.
1186-.TP
1187-.B /apps/tomboy/global_keybindings/open_search
1188-Global X keybinding for opening the note search dialog.
1189-
1190-.SH "SEE ALSO"
1191-.I http://www.beatniksoftware.com/tomboy/
1192-.\"The program is documented fully by
1193-.\".IR "The Rise and Fall of a Fooish Bar" ,
1194-.\"available via the Info system.
1195-
1196-.SH BUGS
1197-Please send bug reports to the Tomboy mailing list
1198-(tomboy-list@beatniksoftware.com) or enter them in the Gnome Bugzilla
1199-bug tracker (http://bugzilla.gnome.org/enter_bug.cgi?product=Tomboy).
1200-
1201-.SH AUTHOR
1202-Alex Graveley <alex@beatniksoftware.com>
1203-
1204-This manual page was originally written by Luca Capello <luca@pca.it>.
1205
1206=== renamed file '.pc/applied-patches' => '.pc/applied-patches.THIS'
1207=== modified file 'Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs'
1208--- Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs 2011-06-21 16:42:35 +0000
1209+++ Tomboy/Addins/WebSyncService/Api/Tests/NoteInfoTests.cs 2011-08-17 12:47:15 +0000
1210@@ -23,7 +23,7 @@
1211 // Sandy Armstrong <sanfordarmstrong@gmail.com>
1212 //
1213
1214-#if false
1215+#if ENABLE_TESTS
1216
1217 using System;
1218
1219
1220=== modified file 'Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs'
1221--- Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs 2011-06-21 16:42:35 +0000
1222+++ Tomboy/Addins/WebSyncService/Api/Tests/ResourceReferenceTests.cs 2011-08-17 12:47:15 +0000
1223@@ -23,7 +23,7 @@
1224 // Sandy Armstrong <sanfordarmstrong@gmail.com>
1225 //
1226
1227-#if false
1228+#if ENABLE_TESTS
1229
1230 using System;
1231
1232
1233=== modified file 'Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs'
1234--- Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs 2011-06-21 16:42:35 +0000
1235+++ Tomboy/Addins/WebSyncService/Api/Tests/UserInfoTests.cs 2011-08-17 12:47:15 +0000
1236@@ -23,7 +23,7 @@
1237 // Sandy Armstrong <sanfordarmstrong@gmail.com>
1238 //
1239
1240-#if false
1241+#if ENABLE_TESTS
1242
1243 using System;
1244
1245
1246=== modified file 'Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs'
1247--- Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs 2011-06-21 16:42:35 +0000
1248+++ Tomboy/Addins/WebSyncService/Hyena.Json/Tests/DeserializerTests.cs 2011-08-17 12:47:15 +0000
1249@@ -26,7 +26,7 @@
1250 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1251 //
1252
1253-#if false
1254+#if ENABLE_TESTS
1255
1256 using System;
1257 using System.Reflection;
1258
1259=== modified file 'Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs'
1260--- Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs 2011-06-21 16:42:35 +0000
1261+++ Tomboy/Addins/WebSyncService/Hyena.Json/Tests/SerializerTests.cs 2011-08-17 12:47:15 +0000
1262@@ -23,7 +23,7 @@
1263 // Sandy Armstrong <sanfordarmstrong@gmail.com>
1264 //
1265
1266-#if false
1267+#if ENABLE_TESTS
1268
1269 using System;
1270
1271
1272=== modified file 'Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs'
1273--- Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs 2011-06-21 16:42:35 +0000
1274+++ Tomboy/Addins/WebSyncService/Hyena.Json/Tests/TokenizerTests.cs 2011-08-17 12:47:15 +0000
1275@@ -26,7 +26,7 @@
1276 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1277 //
1278
1279-#if false
1280+#if ENABLE_TESTS
1281
1282 using System;
1283 using System.Reflection;
1284
1285=== modified file 'Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs'
1286--- Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs 2011-07-06 10:06:49 +0000
1287+++ Tomboy/Addins/WebSyncService/Tests/NoteConvertTests.cs 2011-08-17 12:47:15 +0000
1288@@ -23,7 +23,7 @@
1289 // Sandy Armstrong <sanfordarmstrong@gmail.com>
1290 //
1291
1292-#if false
1293+#if ENABLE_TESTS
1294
1295 using System;
1296 using System.Collections.Generic;
1297
1298=== modified file 'Tomboy/NoteManager.cs'
1299=== modified file 'Tomboy/RecentChanges.cs'
1300=== modified file 'Tomboy/Tomboy.exe.config.in'
1301--- Tomboy/Tomboy.exe.config.in 2011-06-21 16:42:35 +0000
1302+++ Tomboy/Tomboy.exe.config.in 2011-08-17 12:47:15 +0000
1303@@ -1,7 +1,7 @@
1304 <configuration>
1305- <dllmap dll="glib-2.0.dll" target="libglib-2.0.so.0"/>
1306+ <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
1307 <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/>
1308 <dllmap dll="libgtkspell" target="libgtkspell.so.0"/>
1309- <dllmap dll="libtomboy" target="/usr/lib/tomboy/libtomboy.so"/>
1310+ <dllmap dll="libtomboy" target="libtomboy.so"/>
1311 <dllmap dll="panel-applet-2" target="libpanel-applet-2.so.0"/>
1312 </configuration>
1313
1314=== modified file 'configure.in'
1315=== modified file 'data/tomboy-addins.pc.in'
1316--- data/tomboy-addins.pc.in 2011-06-21 16:42:35 +0000
1317+++ data/tomboy-addins.pc.in 2011-08-17 12:47:15 +0000
1318@@ -5,5 +5,6 @@
1319
1320 Name: Tomboy Addin Library
1321 Description: Library providing the interfaces for Tomboy addins
1322+Requires: gtk-sharp-2.0
1323 Version: @VERSION@
1324 Libs: -r:${libdir}/tomboy/Tomboy.exe
1325
1326=== modified file 'data/tomboy.1'
1327--- data/tomboy.1 2011-06-21 16:42:35 +0000
1328+++ data/tomboy.1 2011-08-17 12:47:15 +0000
1329@@ -13,6 +13,7 @@
1330 This manual page documents briefly the
1331 .BR tomboy
1332 command.
1333+./"Instead, it has documentation in the GNU Info format; see below.
1334 .PP
1335 .B Tomboy
1336 is a desktop note-taking application for Linux and Unix. Simple and
1337
1338=== added file 'debian/source/local-options'
1339--- debian/source/local-options 1970-01-01 00:00:00 +0000
1340+++ debian/source/local-options 2011-08-17 12:47:15 +0000
1341@@ -0,0 +1,1 @@
1342+unapply-patches
1343
1344=== modified file 'po/POTFILES.in'

Subscribers

People subscribed via source and target branches

to all changes: