[gjs] tests: Consolidate importer tests



commit 96dfa2963ee42152a1da7874fe42310307a3b456
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue Dec 13 21:14:46 2016 -0800

    tests: Consolidate importer tests
    
    test0020importer.js can be moved into testImporter.js, so that all
    importer tests are in the same place.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=775444

 Makefile-test.am                       |    1 -
 installed-tests/js/test0020importer.js |    8 --------
 installed-tests/js/testImporter.js     |    5 +++++
 3 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/Makefile-test.am b/Makefile-test.am
index 7bff53e..f4e23ef 100644
--- a/Makefile-test.am
+++ b/Makefile-test.am
@@ -231,7 +231,6 @@ CLEANFILES += $(TEST_INTROSPECTION_GIRS) $(TEST_INTROSPECTION_TYPELIBS)
 
 common_jstests_files =                                         \
        installed-tests/js/test0010basic.js                     \
-       installed-tests/js/test0020importer.js                  \
        installed-tests/js/test0030basicBoxed.js                \
        installed-tests/js/test0040mainloop.js                  \
        installed-tests/js/testself.js                          \
diff --git a/installed-tests/js/testImporter.js b/installed-tests/js/testImporter.js
index ee91160..8e3f9f0 100644
--- a/installed-tests/js/testImporter.js
+++ b/installed-tests/js/testImporter.js
@@ -1,5 +1,10 @@
 const JSUnit = imports.jsUnit;
 
+function testImporterGI() {
+    var GLib = imports.gi.GLib;
+    JSUnit.assertEquals(GLib.MAJOR_VERSION, 2);
+}
+
 function testImporter() {
     JSUnit.assertNotUndefined(imports);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]