[gjs: 4/12] tests: Fix GIMarshallingTests.SubSubObject tests
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 4/12] tests: Fix GIMarshallingTests.SubSubObject tests
- Date: Sun, 11 Apr 2021 23:22:50 +0000 (UTC)
commit 5b2daed0f071593c4f0809f4b21eaadd455fe424
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Mar 20 12:32:52 2021 -0700
tests: Fix GIMarshallingTests.SubSubObject tests
The tests for SubSubObject were mistakenly using SubObject.
installed-tests/js/testGIMarshalling.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/installed-tests/js/testGIMarshalling.js b/installed-tests/js/testGIMarshalling.js
index 4d780412..b148b0e7 100644
--- a/installed-tests/js/testGIMarshalling.js
+++ b/installed-tests/js/testGIMarshalling.js
@@ -1500,22 +1500,22 @@ describe('Inherited GObject', function () {
['SubObject', 'SubSubObject'].forEach(klass => {
describe(klass, function () {
it('has a parent method that can be called', function () {
- const o = new GIMarshallingTests.SubObject({int: 42});
+ const o = new GIMarshallingTests[klass]({int: 42});
expect(() => o.method()).not.toThrow();
});
it('has a method that can be called', function () {
- const o = new GIMarshallingTests.SubObject({int: 0});
+ const o = new GIMarshallingTests[klass]({int: 0});
expect(() => o.sub_method()).not.toThrow();
});
it('has an overridden method that can be called', function () {
- const o = new GIMarshallingTests.SubObject({int: 0});
+ const o = new GIMarshallingTests[klass]({int: 0});
expect(() => o.overwritten_method()).not.toThrow();
});
- it('has a method with default implementation can be called', function () {
- const o = new GIMarshallingTests.SubObject({int: 42});
+ it('has a method with default implementation that can be called', function () {
+ const o = new GIMarshallingTests[klass]({int: 42});
o.method_with_default_implementation(43);
expect(o.int).toEqual(43);
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]