From c67ca084d7160f836e7dd7f38ee9941718a1fa82 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 18 Mar 2021 18:17:54 -0700 Subject: [PATCH 1/2] Revert "tests/Gtk3: Functions that leads running dispose vfuncs can be safely called" This reverts commit ffac59100c24ac180065e145b7d04c6af5daf927. --- installed-tests/js/testGtk3.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/installed-tests/js/testGtk3.js b/installed-tests/js/testGtk3.js index fd0608d1..15187b67 100644 --- a/installed-tests/js/testGtk3.js +++ b/installed-tests/js/testGtk3.js @@ -191,21 +191,6 @@ describe('Gtk overrides', function () { 'Gtk overrides avoid crashing and print a stack trace'); }); - it('GTK vfuncs can be explicitly called during disposition', function () { - let called; - const GoodLabel = GObject.registerClass(class GoodLabel extends Gtk.Label { - vfunc_destroy() { - called = true; - } - }); - - let label = new GoodLabel(); - label.destroy(); - expect(called).toBeTruthy(); - label = null; - System.gc(); - }); - it('accepts string in place of GdkAtom', function () { expect(() => Gtk.Clipboard.get(1)).toThrow(); expect(() => Gtk.Clipboard.get(true)).toThrow(); -- 2.30.2