Skip to content

Commit

Permalink
Only null option
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypw committed Nov 24, 2024
1 parent e17574c commit 50a8105
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/tests/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -177,20 +177,20 @@ stdout.printf ("# null option callback\n");
default_tabs = (int) window.notebook.n_pages;
});

option ("{'new-tab':<true>}", "@a{sv} {}", () => {
stdout.printf ("# new tab true callback\n");
unowned var window = (MainWindow) application.active_window;
assert_nonnull (window);
var n_tabs = (int) window.notebook.n_pages;
assert_cmpint (n_tabs - default_tabs, CompareOperator.EQ, 1);
});
// option ("{'new-tab':<true>}", "@a{sv} {}", () => {
// stdout.printf ("# new tab true callback\n");
// unowned var window = (MainWindow) application.active_window;
// assert_nonnull (window);
// var n_tabs = (int) window.notebook.n_pages;
// assert_cmpint (n_tabs - default_tabs, CompareOperator.EQ, 1);
// });

option ("{'new-tab':<false>}", "@a{sv} {}", () => {
unowned var window = (MainWindow) application.active_window;
assert_nonnull (window);
var n_tabs = (int) window.notebook.n_pages;
assert_cmpint (n_tabs, CompareOperator.EQ, default_tabs);
});
// option ("{'new-tab':<false>}", "@a{sv} {}", () => {
// unowned var window = (MainWindow) application.active_window;
// assert_nonnull (window);
// var n_tabs = (int) window.notebook.n_pages;
// assert_cmpint (n_tabs, CompareOperator.EQ, default_tabs);
// });
});

// GLib.Test.add_func ("/application/command-line/new-window", () => {
Expand Down

0 comments on commit 50a8105

Please sign in to comment.