
We can now highlight multiple lines, adding #L1-L2 to the hash. We can select the ending line with shift + click. Closes travis-ci/travis-ci#1829
13 lines
388 B
CoffeeScript
13 lines
388 B
CoffeeScript
object = Ember.Object.extend(Travis.LineNumberParser)
|
|
subject = object.create()
|
|
|
|
module "Travis.LineNumberParser",
|
|
test "without line numbers", ->
|
|
deepEqual subject.fetchLineNumbers(''), []
|
|
|
|
test "with a start date only", ->
|
|
deepEqual subject.fetchLineNumbers('#L5'), ['5']
|
|
|
|
test "with a start and end dates", ->
|
|
deepEqual subject.fetchLineNumbers('#L5-L6'), ['5', '6']
|