Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Gimp/plug-ins/script-fu/test/tests/PDB/   (Gimp Bildeditor Version 3.2.0©)  Datei vom 14.2.2026 mit Größe 670 B image not shown  

Quelle  misc.scm  Sprache: unbekannt

 
Spracherkennung für: .scm vermutete Sprache: Lisp {Lisp[72] MT940[52] Masm[24]} [Methode: maximale Elemente, drei Dimensionen]


; Miscellaneous tests of the PDB
; These are not associated with an object class


; Restored at end of this script
(script-fu-use-v3)

(test! "misc item-id-is-foo")

; 0 is not a valid id for any object
(assert `(not (gimp-item-id-is-channel 0)))
(assert `(not (gimp-item-id-is-drawable 0)))
(assert `(not (gimp-item-id-is-group-layer 0)))
(assert `(not (gimp-item-id-is-layer 0)))
(assert `(not (gimp-item-id-is-layer-mask 0)))
(assert `(not (gimp-item-id-is-path 0)))
(assert `(not (gimp-item-id-is-selection 0)))
(assert `(not (gimp-item-id-is-text-layer 0)))

; -1 is not a valid item id
(assert `(not (gimp-item-id-is-valid -1)))

; !!! Restore
(script-fu-use-v2)

[Dauer der Verarbeitung: 0.3 Sekunden, vorverarbeitet 2026-10-27]