Add a modeline to all the *.feature files

This really tripped me up yesterday, My "Vim default" is to use tabs.

This (where `!···` is a tab) does not work as you'll hope it works:

    Scenario: Retrying a failed download when the directory didn't exist (issue 2445)
        When I download http://localhost:(port)/data/downloads/download.bin to <path>
        And I wait for the error "Download error: No such file or directory: *"
        And I make the directory <mkdir>
        And I run :download-retry
!···!···And I wait until the download is finished
        Then the downloaded file <expected> should exist

        Examples:
        | path                 | mkdir   | expected             |
        | asd/zxc/             | asd/zxc | asd/zxc/download.bin |

Unfortunately, pytest-bdd uses the "Python 2 behaviour" of "expand all
tabs to 8 spaces", and doesn't give any errors on strange/inconsistent
whitespace. It can cause very confusing errors.
This commit is contained in:
Martin Tournoij 2017-03-31 16:16:31 +01:00
parent 6939f81de7
commit 8af5cfb4ac
No known key found for this signature in database
GPG Key ID: A6258419189EE585
26 changed files with 52 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Ad blocking
Scenario: Simple adblock update

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Going back and forward.
Testing the :back/:forward commands.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Caret mode
In caret mode, the user can select and yank text using the keyboard.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Using completion
Scenario: No warnings when completing with one entry (#1600)

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Downloading things from a website.
Background:

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Opening external editors
## :edit-url

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Using hints
# https://bugreports.qt.io/browse/QTBUG-58381

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Page history
Make sure the global page history is saved correctly.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Invoking a new process
Simulate what happens when running qutebrowser with an existing instance

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Javascript stuff
Integration with javascript.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Keyboard input
Tests for :bind and :unbind, :clear-keychain and other keyboard input

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Setting positional marks
Background:

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Various utility commands.
## :set-cmd-text

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Using :navigate
Scenario: :navigate with invalid argument

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Opening pages
Scenario: :open with URL

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Prompts
Various prompts (javascript, SSL errors, authentification, etc.)

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Scrolling
Tests the various scroll commands.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Searching on a page
Searching text on the page (like /foo) with different options.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Saving and loading sessions
Background:

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Setting settings.
Background:

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: :spawn
Scenario: Running :spawn

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Tab management
Tests for various :tab-* commands.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: quickmarks and bookmarks
## bookmarks

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Miscellaneous utility commands exposed to the user.
Background:

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Yanking and pasting.
:yank, {clipboard} and {primary} can be used to copy/paste the URL or title
from/to the clipboard and primary selection.

View File

@ -1,3 +1,5 @@
# vim: ft=cucumber fileencoding=utf-8 sts=4 sw=4 et:
Feature: Zooming in and out
Background: