[gjs] installed-tests: fix deactivated GIMarshalling test suite



commit a6d342ba894522c62f3f7c75ebc97100c2b9edfe
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Fri Apr 11 00:33:58 2014 +0100

    installed-tests: fix deactivated GIMarshalling test suite
    
    I believe when the installed test suite got created, the way JS files
    are loaded changed. That resulted in the window object being different
    from the scope of the test files, leaving that particular test suite
    disabled.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728004

 installed-tests/js/testGIMarshalling.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/installed-tests/js/testGIMarshalling.js b/installed-tests/js/testGIMarshalling.js
index c736ad9..4000f9f 100644
--- a/installed-tests/js/testGIMarshalling.js
+++ b/installed-tests/js/testGIMarshalling.js
@@ -1,7 +1,6 @@
-
 if (!('assertEquals' in this)) { /* allow running this test standalone */
     imports.lang.copyPublicProperties(imports.jsUnit, this);
-    gjstestRun = function() { return imports.jsUnit.gjstestRun(window); };
+    gjstestRun = function() { return imports.jsUnit.gjstestRun(this); };
 }
 
 function assertArrayEquals(expected, got) {


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