[gjs/gnome-3-12: 5/6] installed-tests: fix deactivated GIMarshalling test suite
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/gnome-3-12: 5/6] installed-tests: fix deactivated GIMarshalling test suite
- Date: Mon, 14 Apr 2014 21:13:10 +0000 (UTC)
commit e4a11af4e09df81e0a400d23d8b3116344fe1bba
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]