add specs which simulate mouse action in PaneResizeHandleElement to test the resize behavior.

This commit is contained in:
liuxiong332
2015-03-23 19:47:05 +08:00
parent 8b137719a0
commit 47742768a2
2 changed files with 99 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ class PaneResizeHandleElement extends HTMLElement
attachedCallback: ->
@isHorizontal = @parentElement.classList.contains("horizontal")
@classList.add if @isHorizontal then 'horizontal' else 'vertical'
resizeToFitContent: ->
# clear flex-grow css style of both pane