diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-12-13 21:11:09 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:20 -0300 |
commit | e648d0b0398f46afd2d5c5113a3b95a0522f5c2a (patch) | |
tree | c189ec4a77c348a4db1f7ce80706d812a729837a /tests/testinserttemplate.h | |
parent | 5e5009140ec778dd217ce254770ed25c755a906c (diff) |
Fixed insert-template tag when used inside a module level inject-code tag.
Also added unit tests.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/testinserttemplate.h')
-rw-r--r-- | tests/testinserttemplate.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/testinserttemplate.h b/tests/testinserttemplate.h new file mode 100644 index 000000000..fd3ca1d72 --- /dev/null +++ b/tests/testinserttemplate.h @@ -0,0 +1,39 @@ +/* + * This file is part of the API Extractor project. + * + * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). + * + * Contact: PySide team <contact@pyside.org> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + * + */ + +#ifndef TESTINSERTTEMPLATE_H +#define TESTINSERTTEMPLATE_H + +#include <QObject> + +class TestInsertTemplate : public QObject +{ + Q_OBJECT + private slots: + void testInsertTemplateOnClassInjectCode(); + void testInsertTemplateOnModuleInjectCode(); + void testInvalidTypeSystemTemplate(); + void testValidAndInvalidTypeSystemTemplate(); +}; + +#endif |