VideoTools/third_party/gotk3/gtk/print_test.go
Stu d4efa91ce1 Add vendored gotk3 GTK3 bindings for Go
Vendor gotk3 library to ensure consistent GTK3 bindings across
environments and simplify dependency management.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-15 05:40:43 -05:00

56 lines
1.1 KiB
Go

package gtk
import (
"testing"
)
func init() {
Init(nil)
}
// TestPageSetup tests creating and manipulating PageSetup
func TestPageSetup(t *testing.T) {
_, err := PageSetupNew()
if err != nil {
t.Error(err)
}
}
// TestPaperSize tests creating and manipulating PaperSize
func TestPaperSize(t *testing.T) {
_, err := PaperSizeNew(PAPER_NAME_A4)
if err != nil {
t.Error(err)
}
}
// TestPrintContext tests creating and manipulating PrintContext
// TestPrintOperation tests creating and manipulating PrintOperation
func TestPrintOperation(t *testing.T) {
_, err := PrintOperationNew()
if err != nil {
t.Error(err)
}
}
// TestPrintOperationPreview tests creating and manipulating PrintOperationPreview
// TestPrintSettings tests creating and manipulating PrintSettings
func TestPrintSettings(t *testing.T) {
settings, err := PrintSettingsNew()
if err != nil {
t.Error(err)
}
settings.Set("Key1", "String1")
settings.SetBool("Key2", true)
settings.Set("Key3", "String2")
settings.SetInt("Key4", 2)
settings.ForEach(func(key, value string) {
})
}
// TestPrintContext tests creating and manipulating PrintContext