var trp = testresult.getPointer().dupePointer();
var tn = trp.xpathQuery("test[@name=\'" + testCase + "\']/");
if (tn == null) {
tn = trp.addNode("test", null, { name: testCase });
}
trp.setPointer(tn);
// shouldn't need to check for array here
var cn = trp.xpathQuery("case[@name=\'" + logname + "\']/");
if (cn == null) {
cn = trp.addNode("case", null, { name: logname });
}
trp.setPointer(cn);
trp.addNode("node", null, { name: item });
parent.logitem(logname, item);
super.construct(parent,args);
logitem('constructorder', args['name']);
logitem('sequence', 'construct' + args['name']);
logitem('onconstructorder', this.name);
logitem('sequence', 'onconstruct' + this.name);
super.init();
logitem('initorder', this.name);
logitem('sequence', 'init' + this.name);
logitem('oninitorder', this.name);
logitem('sequence', 'oninit' + this.name);
canvas.logitem(this.name, logname, item);
assertTrue(compareCase('constructorder'));
assertTrue(compareCase('onconstructorder'));
assertTrue(compareCase('initorder'));
assertTrue(compareCase('oninitorder'));
assertTrue(compareCase('sequence'));
this.addTest("testConstruct");
this.addTest("testOnConstruct");
this.addTest("testInit");
this.addTest("testOnInit");
this.addTest("testInitializationSequence");
super.construct(parent, args);
constructorder = constructorder + ',' + this.id;
sequenceorder = sequenceorder + ',' + 'construct';
onconstructorder = onconstructorder + ',' + this.id;
sequenceorder = sequenceorder + ',' + 'onconstruct';
super.init();
initorder = initorder + ',' + this.id;
sequenceorder = sequenceorder + ',' + 'init';
oninitorder = oninitorder + ',' + this.id;
sequenceorder = sequenceorder + ',' + 'oninit';
super.construct(parent,args);
n2.constructorder = n2.constructorder + ',' + this.name;
n2.onconstructorder = n2.onconstructorder + ',' + this.name;
super.init();
n2.initorder = n2.initorder + ',' + this.name;
n2.oninitorder = n2.oninitorder + ',' + this.name;
super.construct(parent,args);
n2.constructorder = n2.constructorder + ',' + this.name;
n2.onconstructorder = n2.onconstructorder + ',' + this.name;
super.init();
n2.initorder = n2.initorder + ',' + this.name;
n2.oninitorder = n2.oninitorder + ',' + this.name;
assertEquals("", n2.constructorder);
assertEquals(",n2,a,b", n2.onconstructorder);
assertEquals(",a,b,n2", n2.initorder);
assertEquals(",a,b,n2", n2.oninitorder);
assertEquals(",onconstruct,init,oninit", n2.sequenceorder);
this.addTest("testConstructProto");
this.addTest("testOnConstructProto");
this.addTest("testInitProto");
this.addTest("testOnInitProto");
this.addTest("testInitializationSequenceProto");