/* HtmlDocumentTest.c generated by valac 0.28.1, the Vala compiler
 * generated from HtmlDocumentTest.vala, do not modify */

/* -*- Mode: vala; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/* Notation.vala
 *
 * Copyright (C) 2011-2013  Richard Schwarting <aquarichy@gmail.com>
 * Copyright (C) 2011-2015  Daniel Espinosa <esodan@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 *
 * Authors:
 *      Richard Schwarting <aquarichy@gmail.com>
 *      Daniel Espinosa <esodan@gmail.com>
 */

#include <glib.h>
#include <glib-object.h>
#include <gxml/gxml.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>


#define TYPE_GXML_TEST (gxml_test_get_type ())
#define GXML_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_GXML_TEST, GXmlTest))
#define GXML_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_GXML_TEST, GXmlTestClass))
#define IS_GXML_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_GXML_TEST))
#define IS_GXML_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_GXML_TEST))
#define GXML_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_GXML_TEST, GXmlTestClass))

typedef struct _GXmlTest GXmlTest;
typedef struct _GXmlTestClass GXmlTestClass;
typedef struct _GXmlTestPrivate GXmlTestPrivate;

#define TYPE_HTML_DOCUMENT_TEST (html_document_test_get_type ())
#define HTML_DOCUMENT_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HTML_DOCUMENT_TEST, HtmlDocumentTest))
#define HTML_DOCUMENT_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HTML_DOCUMENT_TEST, HtmlDocumentTestClass))
#define IS_HTML_DOCUMENT_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HTML_DOCUMENT_TEST))
#define IS_HTML_DOCUMENT_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HTML_DOCUMENT_TEST))
#define HTML_DOCUMENT_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HTML_DOCUMENT_TEST, HtmlDocumentTestClass))

typedef struct _HtmlDocumentTest HtmlDocumentTest;
typedef struct _HtmlDocumentTestClass HtmlDocumentTestClass;
typedef struct _HtmlDocumentTestPrivate HtmlDocumentTestPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _GXmlTest {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GXmlTestPrivate * priv;
};

struct _GXmlTestClass {
	GTypeClass parent_class;
	void (*finalize) (GXmlTest *self);
};

struct _HtmlDocumentTest {
	GXmlTest parent_instance;
	HtmlDocumentTestPrivate * priv;
};

struct _HtmlDocumentTestClass {
	GXmlTestClass parent_class;
};


static gpointer html_document_test_parent_class = NULL;

gpointer gxml_test_ref (gpointer instance);
void gxml_test_unref (gpointer instance);
GParamSpec* param_spec_gxml_test (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_gxml_test (GValue* value, gpointer v_object);
void value_take_gxml_test (GValue* value, gpointer v_object);
gpointer value_get_gxml_test (const GValue* value);
GType gxml_test_get_type (void) G_GNUC_CONST;
GType html_document_test_get_type (void) G_GNUC_CONST;
enum  {
	HTML_DOCUMENT_TEST_DUMMY_PROPERTY
};
void html_document_test_add_tests (void);
static void __lambda279_ (void);
#define GXML_TEST_CONFIG_TEST_DIR "../test"
static void ___lambda279__gcallback (void);
static void __lambda280_ (void);
static void ___lambda280__gcallback (void);
HtmlDocumentTest* html_document_test_new (void);
HtmlDocumentTest* html_document_test_construct (GType object_type);
GXmlTest* gxml_test_new (void);
GXmlTest* gxml_test_construct (GType object_type);


static void __lambda279_ (void) {
	GError * _inner_error_ = NULL;
	{
		GXmlHtmlDocument* doc = NULL;
		GXmlHtmlDocument* _tmp0_ = NULL;
		GXmlNode* _tmp1_ = NULL;
		GXmlNode* _tmp2_ = NULL;
		GXmlNode* _tmp3_ = NULL;
		GXmlNode* _tmp4_ = NULL;
		GXmlNode* _tmp5_ = NULL;
		GXmlNode* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		GXmlElement* n = NULL;
		GXmlElement* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
		gchar* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
#line 31 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp0_ = gxml_html_document_new_from_path (GXML_TEST_CONFIG_TEST_DIR "/index.html", 0, &_inner_error_);
#line 31 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		doc = _tmp0_;
#line 31 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 144 "HtmlDocumentTest.c"
			goto __catch189_g_error;
		}
#line 32 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_test_message ("Checking root element...");
#line 33 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp1_ = gxml_xdocument_get_root ((GXmlxDocument*) doc);
#line 33 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp2_ = _tmp1_;
#line 33 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp3_ = _tmp2_;
#line 33 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp3_ != NULL, "doc.root != null");
#line 33 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (_tmp3_);
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp4_ = gxml_xdocument_get_root ((GXmlxDocument*) doc);
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp5_ = _tmp4_;
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp6_ = _tmp5_;
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp7_ = gxml_node_get_name (_tmp6_);
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp8_ = _tmp7_;
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp9_ = _tmp8_;
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp10_ = g_utf8_strdown (_tmp9_, (gssize) (-1));
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp11_ = _tmp10_;
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp12_ = g_utf8_strdown ("html", (gssize) (-1));
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp13_ = _tmp12_;
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (g_strcmp0 (_tmp11_, _tmp13_) == 0, "doc.root.name.down () == \"html\".down ()");
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp13_);
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp11_);
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp9_);
#line 34 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (_tmp6_);
#line 35 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_test_message ("Searching for elemento with id 'user'...");
#line 36 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp14_ = gxml_html_document_get_element_by_id (doc, "user");
#line 36 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		n = _tmp14_;
#line 37 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (n != NULL, "n != null");
#line 38 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp15_ = gxml_node_get_name ((GXmlNode*) n);
#line 38 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp16_ = _tmp15_;
#line 38 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp17_ = _tmp16_;
#line 38 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (g_strcmp0 (_tmp17_, "p") == 0, "n.name == \"p\"");
#line 38 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp17_);
#line 39 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (n, GXML_TYPE_ELEMENT), "n is GXml.Element");
#line 40 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp18_ = gxml_element_get_content (G_TYPE_CHECK_INSTANCE_CAST (n, GXML_TYPE_ELEMENT, GXmlElement));
#line 40 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp19_ = _tmp18_;
#line 40 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp20_ = _tmp19_;
#line 40 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (g_strcmp0 (_tmp20_, "") == 0, "((GXml.Element) n).content == \"\"");
#line 40 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp20_);
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (n);
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (doc);
#line 223 "HtmlDocumentTest.c"
	}
	goto __finally189;
	__catch189_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp21_ = NULL;
		gchar* _tmp22_ = NULL;
		gchar* _tmp23_ = NULL;
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		e = _inner_error_;
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_inner_error_ = NULL;
#line 42 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp21_ = e->message;
#line 42 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp22_ = g_strconcat ("ERROR: ", _tmp21_, NULL);
#line 42 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp23_ = _tmp22_;
#line 42 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_test_message ("%s", _tmp23_);
#line 42 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp23_);
#line 43 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_assert_not_reached ();
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_error_free0 (e);
#line 250 "HtmlDocumentTest.c"
	}
	__finally189:
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_clear_error (&_inner_error_);
#line 30 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		return;
#line 261 "HtmlDocumentTest.c"
	}
}


static void ___lambda279__gcallback (void) {
#line 29 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	__lambda279_ ();
#line 269 "HtmlDocumentTest.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	return self ? g_object_ref (self) : NULL;
#line 276 "HtmlDocumentTest.c"
}


static void __lambda280_ (void) {
	GError * _inner_error_ = NULL;
	{
		GXmlHtmlDocument* doc = NULL;
		GXmlHtmlDocument* _tmp0_ = NULL;
		GXmlNode* _tmp1_ = NULL;
		GXmlNode* _tmp2_ = NULL;
		GXmlNode* _tmp3_ = NULL;
		GXmlNode* _tmp4_ = NULL;
		GXmlNode* _tmp5_ = NULL;
		GXmlNode* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		GXmlElementList* np = NULL;
		GXmlNode* _tmp14_ = NULL;
		GXmlNode* _tmp15_ = NULL;
		GXmlNode* _tmp16_ = NULL;
		GXmlElementList* _tmp17_ = NULL;
		GXmlElementList* _tmp18_ = NULL;
		GXmlElementList* _tmp19_ = NULL;
		GXmlElementList* _tmp20_ = NULL;
		gint _tmp21_ = 0;
		gint _tmp22_ = 0;
		GXmlElementList* l = NULL;
		GXmlElementList* _tmp23_ = NULL;
		GXmlElementList* _tmp24_ = NULL;
		GXmlElementList* _tmp25_ = NULL;
		gint _tmp26_ = 0;
		gint _tmp27_ = 0;
		gboolean fdiv = FALSE;
		gboolean fp = FALSE;
		gboolean _tmp28_ = FALSE;
		gboolean _tmp50_ = FALSE;
		gboolean _tmp51_ = FALSE;
#line 48 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp0_ = gxml_html_document_new_from_path (GXML_TEST_CONFIG_TEST_DIR "/index.html", 0, &_inner_error_);
#line 48 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		doc = _tmp0_;
#line 48 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 325 "HtmlDocumentTest.c"
			goto __catch190_g_error;
		}
#line 49 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_test_message ("Checking root element...");
#line 50 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp1_ = gxml_xdocument_get_root ((GXmlxDocument*) doc);
#line 50 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp2_ = _tmp1_;
#line 50 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp3_ = _tmp2_;
#line 50 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp3_ != NULL, "doc.root != null");
#line 50 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (_tmp3_);
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp4_ = gxml_xdocument_get_root ((GXmlxDocument*) doc);
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp5_ = _tmp4_;
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp6_ = _tmp5_;
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp7_ = gxml_node_get_name (_tmp6_);
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp8_ = _tmp7_;
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp9_ = _tmp8_;
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp10_ = g_utf8_strdown (_tmp9_, (gssize) (-1));
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp11_ = _tmp10_;
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp12_ = g_utf8_strdown ("html", (gssize) (-1));
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp13_ = _tmp12_;
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (g_strcmp0 (_tmp11_, _tmp13_) == 0, "doc.root.name.down () == \"html\".down ()");
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp13_);
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp11_);
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp9_);
#line 51 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (_tmp6_);
#line 52 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_test_message ("Searching for element with property class and value app...");
#line 53 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp14_ = gxml_xdocument_get_root ((GXmlxDocument*) doc);
#line 53 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp15_ = _tmp14_;
#line 53 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp16_ = _tmp15_;
#line 53 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp17_ = gxml_node_get_elements_by_property_value (_tmp16_, "class", "app");
#line 53 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp18_ = _tmp17_;
#line 53 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (_tmp16_);
#line 53 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		np = _tmp18_;
#line 54 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp19_ = np;
#line 54 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp19_ != NULL, "np != null");
#line 55 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp20_ = np;
#line 55 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp21_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp20_);
#line 55 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp22_ = _tmp21_;
#line 55 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp22_ == 2, "np.size == 2");
#line 56 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_test_message ("Searching for elemento with class 'app'...");
#line 57 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp23_ = gxml_html_document_get_elements_by_class_name (doc, "app");
#line 57 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		l = _tmp23_;
#line 58 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp24_ = l;
#line 58 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp24_ != NULL, "l != null");
#line 59 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp25_ = l;
#line 59 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp26_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp25_);
#line 59 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp27_ = _tmp26_;
#line 59 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp27_ == 2, "l.size == 2");
#line 61 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		fp = FALSE;
#line 61 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp28_ = fp;
#line 61 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		fdiv = _tmp28_;
#line 422 "HtmlDocumentTest.c"
		{
			GXmlElementList* _e_list = NULL;
			GXmlElementList* _tmp29_ = NULL;
			GXmlElementList* _tmp30_ = NULL;
			gint _e_size = 0;
			GXmlElementList* _tmp31_ = NULL;
			gint _tmp32_ = 0;
			gint _tmp33_ = 0;
			gint _e_index = 0;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_tmp29_ = l;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_tmp30_ = _g_object_ref0 (_tmp29_);
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_e_list = _tmp30_;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_tmp31_ = _e_list;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_tmp32_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp31_);
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_tmp33_ = _tmp32_;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_e_size = _tmp33_;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_e_index = -1;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			while (TRUE) {
#line 450 "HtmlDocumentTest.c"
				gint _tmp34_ = 0;
				gint _tmp35_ = 0;
				gint _tmp36_ = 0;
				GXmlElement* e = NULL;
				GXmlElementList* _tmp37_ = NULL;
				gint _tmp38_ = 0;
				GXmlElement* _tmp39_ = NULL;
				GXmlElement* _tmp40_ = NULL;
				gchar* _tmp41_ = NULL;
				gchar* _tmp42_ = NULL;
				gchar* _tmp43_ = NULL;
				gboolean _tmp44_ = FALSE;
				GXmlElement* _tmp45_ = NULL;
				gchar* _tmp46_ = NULL;
				gchar* _tmp47_ = NULL;
				gchar* _tmp48_ = NULL;
				gboolean _tmp49_ = FALSE;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp34_ = _e_index;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_e_index = _tmp34_ + 1;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp35_ = _e_index;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp36_ = _e_size;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				if (!(_tmp35_ < _tmp36_)) {
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
					break;
#line 480 "HtmlDocumentTest.c"
				}
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp37_ = _e_list;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp38_ = _e_index;
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp39_ = gxml_element_list_get (_tmp37_, _tmp38_);
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				e = _tmp39_;
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp40_ = e;
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp41_ = gxml_node_get_name ((GXmlNode*) _tmp40_);
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp42_ = _tmp41_;
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp43_ = _tmp42_;
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp44_ = g_strcmp0 (_tmp43_, "div") == 0;
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_g_free0 (_tmp43_);
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				if (_tmp44_) {
#line 63 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
					fdiv = TRUE;
#line 506 "HtmlDocumentTest.c"
				}
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp45_ = e;
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp46_ = gxml_node_get_name ((GXmlNode*) _tmp45_);
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp47_ = _tmp46_;
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp48_ = _tmp47_;
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_tmp49_ = g_strcmp0 (_tmp48_, "p") == 0;
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_g_free0 (_tmp48_);
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				if (_tmp49_) {
#line 64 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
					fp = TRUE;
#line 524 "HtmlDocumentTest.c"
				}
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
				_g_object_unref0 (e);
#line 528 "HtmlDocumentTest.c"
			}
#line 62 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
			_g_object_unref0 (_e_list);
#line 532 "HtmlDocumentTest.c"
		}
#line 66 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp50_ = fdiv;
#line 66 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp50_, "fdiv");
#line 67 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp51_ = fp;
#line 67 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_vala_assert (_tmp51_, "fp");
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (l);
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (np);
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_object_unref0 (doc);
#line 548 "HtmlDocumentTest.c"
	}
	goto __finally190;
	__catch190_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp52_ = NULL;
		gchar* _tmp53_ = NULL;
		gchar* _tmp54_ = NULL;
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		e = _inner_error_;
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_inner_error_ = NULL;
#line 69 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp52_ = e->message;
#line 69 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp53_ = g_strconcat ("ERROR: ", _tmp52_, NULL);
#line 69 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_tmp54_ = _tmp53_;
#line 69 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_test_message ("%s", _tmp54_);
#line 69 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_free0 (_tmp54_);
#line 70 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_assert_not_reached ();
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		_g_error_free0 (e);
#line 575 "HtmlDocumentTest.c"
	}
	__finally190:
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		g_clear_error (&_inner_error_);
#line 47 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
		return;
#line 586 "HtmlDocumentTest.c"
	}
}


static void ___lambda280__gcallback (void) {
#line 46 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	__lambda280_ ();
#line 594 "HtmlDocumentTest.c"
}


void html_document_test_add_tests (void) {
#line 29 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	g_test_add_func ("/gxml/htmldocument/api/element_id", ___lambda279__gcallback);
#line 46 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	g_test_add_func ("/gxml/htmldocument/api/element_class", ___lambda280__gcallback);
#line 603 "HtmlDocumentTest.c"
}


HtmlDocumentTest* html_document_test_construct (GType object_type) {
	HtmlDocumentTest* self = NULL;
#line 27 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	self = (HtmlDocumentTest*) gxml_test_construct (object_type);
#line 27 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	return self;
#line 613 "HtmlDocumentTest.c"
}


HtmlDocumentTest* html_document_test_new (void) {
#line 27 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	return html_document_test_construct (TYPE_HTML_DOCUMENT_TEST);
#line 620 "HtmlDocumentTest.c"
}


static void html_document_test_class_init (HtmlDocumentTestClass * klass) {
#line 27 "/home/despinosa/Proyectos/gxml/test/HtmlDocumentTest.vala"
	html_document_test_parent_class = g_type_class_peek_parent (klass);
#line 627 "HtmlDocumentTest.c"
}


static void html_document_test_instance_init (HtmlDocumentTest * self) {
}


GType html_document_test_get_type (void) {
	static volatile gsize html_document_test_type_id__volatile = 0;
	if (g_once_init_enter (&html_document_test_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (HtmlDocumentTestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) html_document_test_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HtmlDocumentTest), 0, (GInstanceInitFunc) html_document_test_instance_init, NULL };
		GType html_document_test_type_id;
		html_document_test_type_id = g_type_register_static (TYPE_GXML_TEST, "HtmlDocumentTest", &g_define_type_info, 0);
		g_once_init_leave (&html_document_test_type_id__volatile, html_document_test_type_id);
	}
	return html_document_test_type_id__volatile;
}



