소스 검색

Finish tests

Steven Silvester 8 년 전
부모
커밋
47c2159bbb
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      test/src/terminal/terminal.spec.ts

+ 6 - 1
test/src/terminal/terminal.spec.ts

@@ -237,7 +237,12 @@ describe('terminal/index', () => {
     describe('#onUpdateRequest()', () => {
 
       it('should set the style of the terminal', () => {
-
+        Widget.attach(widget, document.body);
+        sendMessage(widget, WidgetMessage.UpdateRequest);
+        expect(widget.methods).to.contain('onUpdateRequest');
+        let style = window.getComputedStyle(widget.node);
+        expect(style.backgroundColor).to.be('rgb(0, 0, 0)');
+        expect(style.color).to.be('rgb(255, 255, 255)');
       });
 
     });