mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 06:40:08 +00:00
44d977844b
These tests come in two variants. The first takes .node and .offload file, parses the node file, and compares the resulting subsurface attachments to expected results. The second variant takes two .node/.offload file pairs and a .diff file, parses the node files, compares the resulting subsurface attachments, and then diffs the nodes, comparing the resulting area to the region in the .diff file.
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
subsurface {
|
|
child: debug {
|
|
message: "A node that is deep in, but still found";
|
|
child: debug {
|
|
message: "Affine transforms, debug nodes and single-child containers are ok";
|
|
child: transform {
|
|
transform: translate(10, 10) scale(5, 10);
|
|
child: container {
|
|
texture { }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
subsurface {
|
|
child: debug {
|
|
message: "Multi-child containers are not ok";
|
|
child: container {
|
|
color { }
|
|
texture { }
|
|
}
|
|
}
|
|
}
|
|
subsurface {
|
|
child: debug {
|
|
message: "other nodes, such as cross-fade, are not ok";
|
|
child: cross-fade {
|
|
start: texture { }
|
|
end: texture { }
|
|
progress: 0.5;
|
|
}
|
|
}
|
|
}
|
|
subsurface {
|
|
child: debug {
|
|
message: "Other nodes, such as cross-fade, are not ok";
|
|
child: cross-fade {
|
|
start: texture { }
|
|
end: texture { }
|
|
progress: 0.5;
|
|
}
|
|
}
|
|
}
|
|
subsurface {
|
|
child: debug {
|
|
message: "Clips (regardless how large) are not ok";
|
|
child: clip {
|
|
clip: 0 0 400 400;
|
|
child: texture { }
|
|
}
|
|
}
|
|
}
|
|
subsurface {
|
|
child: debug {
|
|
message: "Can't offload non-textures";
|
|
child: linear-gradient { }
|
|
}
|
|
}
|