Make sure the selected node doesn't draw anything until another node does.
Make sure the parent does not draw any children.
Make sure the selected node draws, but doesn't matter what.
Output every draw instruction to stdout (dumpDraws), and, optionally, to an SVG file (dumpDrawsToSVG).
Output every draw instruction to stdout (dumpDraws), and, optionally, to an SVG file (dumpDrawsToSVG).
Ensure the node emits a debug signal.
Assert true if a node is attempted to be drawn, but the node does not need to draw anything for the assert to succeed.
auto functions may generate incorrect mangling. This is worked-around with pragma(mangle).
import fluid.structs; Space child, grandchild; auto root = testSpace( layout!1, child = vspace( layout!2, grandchild = vspace( layout!3 ), ), ); root.drawAndAssert( root.drawsChild(), child.drawsChild(), ); root.drawAndAssert( root.drawsChild(child), child.drawsChild(grandchild), ); root.drawAndAssert( root.drawsChild(child), child.drawsChild(grandchild), grandchild.doesNotDrawChildren(), root.doesNotDrawChildren(), ); root.drawAndAssertFailure( root.doesNotDrawChildren(), ); root.drawAndAssertFailure( child.doesNotDrawChildren(), ); root.drawAndAssert( grandchild.doesNotDrawChildren(), ); root.drawAndAssertFailure( grandchild.drawsChild(), ); root.drawAndAssertFailure( root.drawsChild(grandchild), );
Module for testing Fluid nodes using the new I/O system.