Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial. Closes gh-28

  • Loading branch information...
commit e2becc674afe1207f719362c37b843f7ef70cf29 1 parent 30abf0f
@piotras authored
Showing with 34 additions and 0 deletions.
  1. +34 −0 tests/test_structure_constructor.js
View
34 tests/test_structure_constructor.js
@@ -0,0 +1,34 @@
+
+var mocha = require('mocha'),
+ should = require('should');
+
+var gir = require('../gir');
+gir.init();
+
+var GLib = gir.load('GLib');
+var GObject = gir.load('GObject');
+
+var gtk = gir.load('Gtk', '3.0');
+gtk.init(0);
+
+describe('Structure constructor', function() {
+
+ describe('with properties', function() {
+
+ it('GLib.MainLoop', function() {
+ var loop = new GLib.MainLoop(null, false);
+ loop.should.be.a('object');
+ var running = loop.is_running();
+ running.should.equal(false);
+ });
+ });
+
+ describe('without properties', function() {
+
+ it('GLib.MainContext', function() {
+ var context = new GLib.MainContext();
+ context.should.be.a('object');
+ });
+ });
+});
+
Please sign in to comment.
Something went wrong with that request. Please try again.