[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 /** 2 * @requires javelin-view-renderer 3 * javelin-view 4 */ 5 6 describe('JX.ViewRenderer', function() { 7 it('should render children then parent', function() { 8 var child_rendered = false; 9 var child_rendered_first = false; 10 11 var child = new JX.View({}); 12 var parent = new JX.View({}); 13 parent.addChild(child); 14 child.render = function(_) { 15 child_rendered = true; 16 }; 17 18 parent.render = function(rendered_children) { 19 child_rendered_first = child_rendered; 20 }; 21 22 JX.ViewRenderer.render(parent); 23 expect(child_rendered_first).toBe(true); 24 }); 25 });
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |