test: added simple View test

This commit is contained in:
Misko Hevery
2014-09-28 20:02:32 -07:00
parent 9c7c7e8acf
commit 817c005845
9 changed files with 65 additions and 27 deletions

View File

@ -0,0 +1,16 @@
import {describe, id} from 'test_lib/test_lib';
import {ProtoView, View} from './view';
import {DOM} from 'facade/dom';
export function main() {
describe('view', () => {
describe('ProtoView', () => {
it('should create an instance of view', () => {
var template = DOM.createTemplate('Hello <b>world</b>!');
var pv = new ProtoView(template, null, null, null);
var view:View = pv.instantiate();
expect(view instanceof View).toBe(true);
});
});
});
}