mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Round top position before comparing to height
This commit is contained in:
parent
e461c4d94a
commit
d8a3848c1a
@ -550,7 +550,7 @@ describe "Pane", ->
|
||||
expect(row2.height()).toBe 2/3 * container.height()
|
||||
expect(pane2.outerWidth()).toBe column1.outerWidth()
|
||||
expect(pane2.outerHeight()).toBe 1/3 * container.height()
|
||||
expect(pane2.position().top).toBe row2.height()
|
||||
expect(Math.round(pane2.position().top)).toBe row2.height()
|
||||
|
||||
expect(row2.children().length).toBe 2
|
||||
column3 = row2.children(':eq(0)').view()
|
||||
@ -568,7 +568,7 @@ describe "Pane", ->
|
||||
expect(pane4.outerWidth()).toBe column3.width()
|
||||
expect(pane4.outerHeight()).toBe 1/3 * container.height()
|
||||
expect(pane5.outerWidth()).toBe column3.width()
|
||||
expect(pane5.position().top).toBe pane4.outerHeight()
|
||||
expect(Math.round(pane5.position().top)).toBe pane4.outerHeight()
|
||||
expect(pane5.outerHeight()).toBe 1/3 * container.height()
|
||||
|
||||
pane5.remove()
|
||||
|
Loading…
Reference in New Issue
Block a user