[gjs: 3/4] tests: Remove irrelevant error tests
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/4] tests: Remove irrelevant error tests
- Date: Sat, 3 Nov 2018 21:35:47 +0000 (UTC)
commit c9ac7c8f0b4225a9681bb0ca2630d80313519a61
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Nov 3 00:32:32 2018 -0400
tests: Remove irrelevant error tests
These don't test separate code paths. Now that we're adding more cases
for logging errors, we don't need to test each one separately with a
prefix.
installed-tests/js/testExceptions.js | 18 ------------------
1 file changed, 18 deletions(-)
---
diff --git a/installed-tests/js/testExceptions.js b/installed-tests/js/testExceptions.js
index 988f8785..a2ce5b04 100644
--- a/installed-tests/js/testExceptions.js
+++ b/installed-tests/js/testExceptions.js
@@ -152,24 +152,6 @@ describe('logError', function () {
logError(e, 'prefix');
}
});
-
- it('logs a non-thrown error with prefix', function marker() {
- GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_WARNING,
- 'JS ERROR: prefix: Gio.IOErrorEnum: a message\nmarker@*');
- logError(new Gio.IOErrorEnum({ message: 'a message', code: 0 }), 'prefix');
- });
-
- it('logs a GLib.Error with prefix', function () {
- GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_WARNING,
- 'JS ERROR: prefix: Gio.IOErrorEnum: a message\n*');
- logError(new GLib.Error(Gio.IOErrorEnum, 0, 'a message'), 'prefix');
- });
-
- it('logs a JS-created GLib.Error with prefix', function () {
- GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_WARNING,
- 'JS ERROR: prefix: GLib.Error my-error: a message\n*');
- logError(new GLib.Error(GLib.quark_from_string('my-error'), 0, 'a message'), 'prefix');
- });
});
describe('Exception from function with too few arguments', function () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]