浏览代码

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)');
       });
 
     });