Exemple #1
0
        public virtual void testSetDefaultsFromCaps()
        {
            JDFDoc  d = new JDFDoc("JDF");
            JDFNode n = d.getJDFRoot();

            n.setType("fnarf", false);
            devicecap.setDefaultsFromCaps(n, true, false);
            Assert.IsNotNull(n.getResourceLinks("Layout", null, null));
            JDFLayout        lo            = (JDFLayout)n.getResourcePool().getPoolChild(0, "Layout", null, null);
            JDFContentObject contentObject = lo.getContentObject(0);

            Assert.IsNotNull(contentObject);
            Assert.AreEqual(new JDFMatrix("1 0 0 1 1 1"), contentObject.getCTM());
            Assert.IsNotNull(lo.getContentObject(1));
        }