2015-11-09 18:17:13 +01:00
|
|
|
Feature: Using hints
|
|
|
|
|
|
|
|
Scenario: Following a hint.
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint a
|
2016-02-15 20:41:54 +01:00
|
|
|
Then data/hello.txt should be loaded
|
2015-11-09 18:17:13 +01:00
|
|
|
|
|
|
|
Scenario: Using :follow-hint outside of hint mode (issue 1105)
|
|
|
|
When I run :follow-hint
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the error "follow-hint: This command is only allowed in hint mode." should be shown
|
2015-11-09 18:17:13 +01:00
|
|
|
|
|
|
|
Scenario: Using :follow-hint with an invalid index.
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint xyz
|
2015-11-26 17:50:39 +01:00
|
|
|
Then the error "No hint xyz!" should be shown
|
2016-02-15 19:02:29 +01:00
|
|
|
|
|
|
|
### Hinting problematic links
|
|
|
|
|
|
|
|
Scenario: Following a hint (link containing formatting tags)
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint s
|
2016-02-15 20:41:54 +01:00
|
|
|
Then data/hello2.txt should be loaded
|
2016-02-15 19:02:29 +01:00
|
|
|
|
|
|
|
Scenario: Following a hint (link containing tag with display:block style)
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint d
|
2016-02-15 20:41:54 +01:00
|
|
|
Then data/hello3.txt should be loaded
|
2016-02-15 19:02:29 +01:00
|
|
|
|
|
|
|
Scenario: Following a hint (link containing tag with display:table style)
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint f
|
2016-02-15 20:41:54 +01:00
|
|
|
Then data/hello4.txt should be loaded
|
2016-02-15 19:02:29 +01:00
|
|
|
|
|
|
|
Scenario: Following a link wrapped across multiple lines.
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint g
|
2016-02-15 20:41:54 +01:00
|
|
|
Then data/hello.txt should be loaded
|
2016-02-15 23:31:49 +01:00
|
|
|
|
|
|
|
Scenario: Following a link with zoom 125%.
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :zoom 125
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint h
|
|
|
|
And I run :zoom 100
|
|
|
|
Then data/hello.txt should be loaded
|
|
|
|
|
|
|
|
Scenario: Following a link with zoom 125% and zoom-text-only == True.
|
|
|
|
When I open data/hints/link.html
|
|
|
|
And I run :set ui zoom-text-only true
|
|
|
|
And I run :zoom 125
|
|
|
|
And I run :hint links normal
|
|
|
|
And I run :follow-hint h
|
|
|
|
And I run :zoom 100
|
|
|
|
And I run :set ui zoom-text-only false
|
|
|
|
Then data/hello.txt should be loaded
|