[gjs] tests: Remove all useless logging from tests
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Remove all useless logging from tests
- Date: Thu, 26 Jan 2012 15:06:55 +0000 (UTC)
commit 350727cacc755eecfd9671b917d8974d94dc5e12
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Jan 22 04:40:22 2012 -0500
tests: Remove all useless logging from tests
https://bugzilla.gnome.org/show_bug.cgi?id=668427
test/js/test0010basic.js | 2 +-
test/js/testDBus.js | 3 ---
test/js/testGDBus.js | 2 --
test/js/testParamSpec.js | 2 --
test/js/testSignals.js | 7 -------
5 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/test/js/test0010basic.js b/test/js/test0010basic.js
index 47812fa..9210843 100644
--- a/test/js/test0010basic.js
+++ b/test/js/test0010basic.js
@@ -1,7 +1,7 @@
// application/javascript;version=1.8
function testBasic1() {
var foo = 1+1;
- log("1 + 1 = " + foo);
+ assertEquals(2, foo);
}
gjstestRun();
diff --git a/test/js/testDBus.js b/test/js/testDBus.js
index 1794040..40f51ac 100644
--- a/test/js/testDBus.js
+++ b/test/js/testDBus.js
@@ -225,8 +225,6 @@ function testFrobateStuff() {
});
Mainloop.run('testDbus');
-
- log(theResult.toSource());
assertEquals("world", theResult.hello);
}
@@ -812,7 +810,6 @@ function testStructArray() {
Mainloop.run('testDbus');
assertNull(theExcp);
assertNotNull(theResult);
- log(theResult);
assertEquals(theResult[0][0], 128);
assertEquals(theResult[0][1], 123456);
assertEquals(theResult[1][0], 42);
diff --git a/test/js/testGDBus.js b/test/js/testGDBus.js
index 02dca97..e7f6495 100644
--- a/test/js/testGDBus.js
+++ b/test/js/testGDBus.js
@@ -257,7 +257,6 @@ function testFrobateStuff() {
Mainloop.run('testGDBus');
- log(theResult.toSource());
assertEquals("world", theResult.hello.deep_unpack());
}
@@ -520,7 +519,6 @@ function testStructArray() {
Mainloop.run('testGDBus');
assertNull(theExcp);
assertNotNull(theResult);
- log(theResult);
assertEquals(theResult[0][0], 128);
assertEquals(theResult[0][1], 123456);
assertEquals(theResult[1][0], 42);
diff --git a/test/js/testParamSpec.js b/test/js/testParamSpec.js
index d07e073..123665a 100644
--- a/test/js/testParamSpec.js
+++ b/test/js/testParamSpec.js
@@ -69,8 +69,6 @@ function testUInt64ParamSpec() {
assertEquals(nick, uint64Spec._nick);
assertEquals(blurb, uint64Spec._blurb);
assertEquals(flags, uint64Spec.flags);
-
- log(uint64Spec.default_value);
assertEquals(0x2266bbff, uint64Spec.default_value);
}
diff --git a/test/js/testSignals.js b/test/js/testSignals.js
index 30bd254..d1f7aa3 100644
--- a/test/js/testSignals.js
+++ b/test/js/testSignals.js
@@ -16,7 +16,6 @@ function testSimple() {
var foo = new Foo();
var id = foo.connect('bar',
function(theFoo, a, b) {
- log("Received signal 'bar'");
theFoo.a = a;
theFoo.b = b;
});
@@ -36,7 +35,6 @@ function testDisconnectDuringEmit() {
var toRemove = [];
var firstId = foo.connect('bar',
function(theFoo) {
- log("Received signal 'bar', disconnecting others");
theFoo.disconnect(toRemove[0]);
theFoo.disconnect(toRemove[1]);
});
@@ -70,17 +68,14 @@ function testMultipleSignals() {
foo.bonkHandlersCalled = 0;
foo.connect('bar',
function(theFoo) {
- log("Received signal 'bar'");
theFoo.barHandlersCalled += 1;
});
foo.connect('bonk',
function(theFoo) {
- log("Received signal 'bonk'");
theFoo.bonkHandlersCalled += 1;
});
foo.connect('bar',
function(theFoo) {
- log("Received signal 'bar' (handler 2)");
theFoo.barHandlersCalled += 1;
});
foo.emit('bar');
@@ -115,13 +110,11 @@ function testExceptionInCallback() {
foo.bar2Called = 0;
foo.connect('bar',
function(theFoo) {
- log("Received signal 'bar' (throwing exception)");
theFoo.bar1Called += 1;
throw new Error("Exception we are throwing on purpose");
});
foo.connect('bar',
function(theFoo) {
- log("Received signal 'bar' (handler 2)");
theFoo.bar2Called += 1;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]