/*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
Ext.test.session.addTest( 'Ext', new Y.Test.Case({
name: 'XTemplate',
planned: 3,
// 3
test_apply: function() {
var data = {
hello: 'Hello',
world: 'World',
items1: [
'test1',
'test2',
'test3'
],
items2: [
{ name: 'test1' },
{ name: 'test2' },
{ name: 'test3' }
],
kids: [{
name: 'Sara Grace',
gender: 'f',
age:3
},{
name: 'Zachary',
gender: 'm',
age:2
},{
name: 'John James',
gender: 'm',
age:.5
}]
};
var tpl1 = new Ext.XTemplate( '{hello} {world}.