gtk/tests/meson.build
Christian Hergert 5e341210a1 texthistory: add GtkTextHistory helper
The GtkTextHistory helper provides the fundamental undo/redo stack that
can be integrated with other text widgets. It allows coalescing related
actions to reduce both the number of undo actions to the user as well as
the memory overhead.

A new istring helper is used by GtkTextHistory to allow for "inline
strings" that gracefully grow to using allocations with g_realloc(). This
ensure that most undo operations require no additional allocations other
than the struct for the action itself.

A queue of undoable and redoable actions are maintained and the link for
the queue is embedded in the undo action union. This allows again, for
reducing the number of allocations involved for undo operations.
2019-11-05 09:34:29 -08:00

154 lines
3.5 KiB
Meson

gtk_tests = [
# testname, optional extra sources
['rendernode'],
['rendernode-create-tests'],
['overlayscroll'],
['syncscroll'],
['animated-resizing', ['frame-stats.c', 'variable.c']],
['animated-revealing', ['frame-stats.c', 'variable.c']],
['motion-compression'],
['scrolling-performance', ['frame-stats.c', 'variable.c']],
['blur-performance', ['../gsk/gskcairoblur.c']],
['simple'],
['print-editor'],
['video-timer', ['variable.c']],
['testaccel'],
['testadjustsize'],
['testappchooser'],
['testappchooserbutton'],
['testassistant'],
['testbaseline'],
['testbox'],
['testbuttons'],
['testcairo'],
['testcalendar'],
['testclipboard2'],
['testcolorchooser'],
['testcolorchooser2'],
['testcombo'],
['testcombochange'],
['testcellrenderertext'],
['testdialog'],
['testdnd'],
['testdnd2'],
['testellipsise'],
['testemblems'],
['testentrycompletion'],
['testentryicons'],
['testfilechooser'],
['testfilechooserbutton'],
['testflowbox'],
['testfontchooser'],
['testfontoptions'],
['testframe'],
['testfullscreen'],
['testgiconpixbuf'],
['testglarea'],
['testglblending', ['gtkgears.c']],
['testgrid'],
['testgtk'],
['testheaderbar'],
['testheightforwidth'],
['testiconview'],
['testiconview-keynav'],
['testicontheme'],
['testinfobar'],
['testimage'],
['testkineticscrolling'],
['testlist'],
['testlist2'],
['testlist3'],
['testlist4'],
['testlevelbar'],
['testlockbutton'],
['testmenubutton'],
['testmodelbutton'],
['testmountoperation'],
['testnotebookdnd'],
['testnouiprint'],
['testorientable'],
['testoverlay'],
['testoverlaystyleclass'],
['testprint', ['testprintfileoperation.c']],
['testscale'],
['testselectionmode'],
['testspinbutton'],
['testtoolbar'],
['testtoolbar2'],
['stresstest-toolbar'],
['testtreechanging'],
['testtreednd'],
['testtreeedit'],
['testtreemodel'],
['testtreeview'],
['testtreefocus'],
['testtreeflow'],
['testtreecolumns'],
['testtreecolumnsizing'],
['testtreesort'],
['testverticalcells'],
['treestoretest'],
['testgrouping'],
['testtooltips'],
['testexpand'],
['testexpander'],
['testvolumebutton'],
['testscrolledwindow'],
['testscrolledge'],
['testcellarea'],
['testswitch'],
['testnoscreen'],
['testtreepos'],
['testsensitive'],
['testtextview'],
['testpixbuf-scale'],
['testgmenu'],
['testlogout'],
['teststack'],
['testrevealer'],
['testrevealer2'],
['testtreelistmodel'],
['testsplitheaders'],
['teststackedheaders'],
['testwindowsize'],
['testpopover'],
['gdkgears', ['gtkgears.c']],
['listmodel'],
['testpopupat'],
['testgaction'],
['testwidgetfocus'],
['testwidgettransforms'],
['testcenterbox'],
['testgridbaseline'],
['showrendernode'],
['testborderdrawing'],
['testoutsetshadowdrawing'],
['testblur'],
['testtexture'],
['testwindowdrag'],
['testtexthistory', ['../gtk/gtktexthistory.c']],
]
if os_unix
gtk_tests += [['testfontchooserdialog']]
endif
if x11_enabled
gtk_tests += [['testerrors']]
endif
# Pass the source dir here so programs can change into the source directory
# and find .ui files and .png files and such that they load at runtime
test_args = ['-DGTK_SRCDIR="@0@"'.format(meson.current_source_dir())]
foreach t: gtk_tests
test_name = t.get(0)
test_srcs = ['@0@.c'.format(test_name), t.get(1, [])]
executable(test_name, test_srcs,
include_directories: [confinc, gdkinc],
c_args: test_args,
dependencies: [libgtk_dep, libm])
endforeach
subdir('visuals')