collection: Have gobject-introspection and glib-mkenums recognize flags
[platform/upstream/libsecret.git] / libsecret / tests / test-unstable.js
1 /*
2  * Copyright 2012 Red Hat Inc.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published
6  * by the Free Software Foundation; either version 2.1 of the licence or (at
7  * your option) any later version.
8  *
9  * See the included COPYING file for more information.
10  */
11
12 const Mock = imports.gi.MockService;
13 const Secret = imports.gi.SecretUnstable;
14 const GLib = imports.gi.GLib;
15
16 const JsUnit = imports.jsUnit;
17 const assertNotEquals = JsUnit.assertNotEquals;
18
19 Mock.start("mock-service-normal.py");
20
21 var service = Secret.Service.get_sync(Secret.ServiceFlags.NONE, null);
22 var path = service.read_alias_dbus_path_sync("default", null);
23
24 /* Just running this without error is good enough for us to test the unstable gir */
25 assertNotEquals(path, null);
26
27 Mock.stop();