~ubuntu-branches/ubuntu/precise/gwibber/precise

« back to all changes in this revision

Viewing changes to test/vala/test-vala.vala

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2011-11-21 09:29:54 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20111121092954-v13j1zaju7dvqer3
Tags: 3.3.1-0ubuntu1
* New upstream release
  - Added a "debug" settings key to allow debug logging without running from 
    a terminal.  
  - Ensure _profile is passed a dict, if not it failed
  - Clean up indicator handling, setup the counts up front to ensure the 
    ordering is consistent.
  - Only trim the padding off the entry if we are running in the client.  
    This fixes the gray bar that was displayed below the poster entry 
    in gwibber-poster.
  - Translation fixes for liked and shared strings (LP: #833807)
  - Added LINGUAS file to ensure the po files make it in the 
    DIST (LP: #866038)
  - specify --shared-library when compiling the typelib, this fixes 
    GI (LP: #893125)
* lp_861903.patch, lp_882633.patch, and lp_884831.patch dropped, fixed 
  upstream
* debian/control
  - build depend on valac-0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Canonical Ltd
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License
 
6
 * version 3.0 as published by the Free Software Foundation.
 
7
 *
 
8
 * This library is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License version 3.0 for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public
 
14
 * License along with this library. If not, see
 
15
 * <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Authored by Ken VanDine <ken@vandine.org>
 
18
 */
 
19
 
 
20
using Gwibber.Test;
 
21
 
 
22
private class Main : Object
 
23
{
 
24
  private Main ()
 
25
  {
 
26
    var u = new Gwibber.Test.Utils ();
 
27
    u.setup ("com.Gwibber.Service");
 
28
    u.available.connect (run_tests);
 
29
  }
 
30
 
 
31
  private void run_tests (bool b)
 
32
  {
 
33
    unowned string[] args = null;
 
34
    Gwibber.Service service = new Gwibber.Service ();
 
35
    Test.init (ref args);
 
36
    /* Gwibber.Utils test */
 
37
    UtilsSuite utils_suite;
 
38
    utils_suite = new UtilsSuite();
 
39
    Test.run ();
 
40
    service.quit ();
 
41
    Gtk.main_quit ();
 
42
  }
 
43
 
 
44
  static int main (string[] args)
 
45
  {
 
46
    Environment.set_variable ("XDG_DATA_HOME", Config.TESTDIR+"/data", true);
 
47
    Environment.set_variable ("XDG_CACHE_HOME", Config.TESTDIR+"/data", true);
 
48
    Gtk.init (ref args);
 
49
    var m = new Main ();
 
50
    Gtk.main ();
 
51
 
 
52
    return 0;
 
53
  }
 
54
}