[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 /** 2 * @requires javelin-view-html 3 * javelin-view-interpreter 4 */ 5 6 7 describe('JX.HTMLView', function() { 8 var html = new JX.ViewInterpreter(); 9 10 JX.HTMLView.registerToInterpreter(html); 11 12 it('should fail validation for a little view', function() { 13 var little_view = 14 html.div({className: 'pretty'}, 15 html.p({}, 16 html.span({sigil: 'hook', invalid: 'foo'}, 17 'Check out ', 18 html.a({href: 'https://fb.com/', target: '_blank' }, 'Facebook')))); 19 20 21 expect(function() { 22 little_view.validate(); 23 }).toThrow(); 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 |