Fix some typos

This commit is contained in:
Florian Bruhin 2019-08-01 18:24:47 +02:00
parent c14f646198
commit 6e0c17b510
7 changed files with 13 additions and 13 deletions

View File

@ -79,7 +79,7 @@ QtWebEngine is based on Google's https://www.chromium.org/Home[Chromium]. While
Qt only updates to a new Chromium release on every minor Qt release (all ~6 Qt only updates to a new Chromium release on every minor Qt release (all ~6
months), every patch release backports security fixes from newer Chromium months), every patch release backports security fixes from newer Chromium
versions. In other words: As long as you're using an up-to-date Qt, you should versions. In other words: As long as you're using an up-to-date Qt, you should
be recieving security updates on a regular basis, without qutebrowser having to be receiving security updates on a regular basis, without qutebrowser having to
do anything. Chromium's process isolation and do anything. Chromium's process isolation and
https://chromium.googlesource.com/chromium/src/+/master/docs/design/sandbox.md[sandboxing] https://chromium.googlesource.com/chromium/src/+/master/docs/design/sandbox.md[sandboxing]
features are also enabled as a second line of defense. features are also enabled as a second line of defense.
@ -314,7 +314,7 @@ Lastly, set your `qt.args` to point to that directory and restart qutebrowser:
Unable to use `spawn` on MacOS.:: Unable to use `spawn` on MacOS.::
When running qutebrowser from the prebuilt binary (`qutebrowser.app`) it *will When running qutebrowser from the prebuilt binary (`qutebrowser.app`) it *will
not* read any files that would alter your `$PATH` (e.g. `.profile`, `.bashrc`, not* read any files that would alter your `$PATH` (e.g. `.profile`, `.bashrc`,
etc). This is not a bug, just that `.profile` is not propogated to GUI etc). This is not a bug, just that `.profile` is not propagated to GUI
applications in MacOS. applications in MacOS.
+ +
See https://github.com/qutebrowser/qutebrowser/issues/4273[Issue #4273] for See https://github.com/qutebrowser/qutebrowser/issues/4273[Issue #4273] for

View File

@ -244,7 +244,7 @@ def run(args):
# Enter username and password using insert-key and fake-key <Tab> # Enter username and password using insert-key and fake-key <Tab>
# (which supports more passwords than fake-key only), then switch back # (which supports more passwords than fake-key only), then switch back
# into insert-mode, so the form can be directly submitted by hitting # into insert-mode, so the form can be directly submitted by hitting
# enter afterwards. It dosen't matter when we go into insert mode, but # enter afterwards. It doesn't matter when we go into insert mode, but
# the other commands need to be be executed sequentially, so we add # the other commands need to be be executed sequentially, so we add
# delays with later. # delays with later.
qute_command('insert-text {} ;;' qute_command('insert-text {} ;;'

View File

@ -100,7 +100,7 @@
const head = document.getElementsByTagName("head")[0]; const head = document.getElementsByTagName("head")[0];
if (head === undefined) { if (head === undefined) {
// no head yet, stick it whereever // no head yet, stick it wherever
document.documentElement.appendChild(oStyle); document.documentElement.appendChild(oStyle);
} else { } else {
head.appendChild(oStyle); head.appendChild(oStyle);

View File

@ -250,7 +250,7 @@ window._qutebrowser.webelem = (function() {
}; };
// Runs a function in a frame until the result is not null, then return // Runs a function in a frame until the result is not null, then return
// If no frame succeds, return null // If no frame succeeds, return null
function run_frames(func) { function run_frames(func) {
for (let i = 0; i < window.frames.length; ++i) { for (let i = 0; i < window.frames.length; ++i) {
const frame = window.frames[i]; const frame = window.frames[i];

View File

@ -46,7 +46,7 @@ class Message:
text = attr.ib() text = attr.ib()
MsgType = enum.Enum('MsgType', 'insufficent_coverage, perfect_file') MsgType = enum.Enum('MsgType', 'insufficient_coverage, perfect_file')
# A list of (test_file, tested_file) tuples. test_file can be None. # A list of (test_file, tested_file) tuples. test_file can be None.
@ -276,7 +276,7 @@ def check(fileobj, perfect_files):
if filename in perfect_src_files and is_bad: if filename in perfect_src_files and is_bad:
text = "{} has {:.2f}% line and {:.2f}% branch coverage!".format( text = "{} has {:.2f}% line and {:.2f}% branch coverage!".format(
filename, line_cov, branch_cov) filename, line_cov, branch_cov)
messages.append(Message(MsgType.insufficent_coverage, filename, messages.append(Message(MsgType.insufficient_coverage, filename,
text)) text))
elif (filename not in perfect_src_files and not is_bad and elif (filename not in perfect_src_files and not is_bad and
filename not in WHITELISTED_FILES): filename not in WHITELISTED_FILES):
@ -339,7 +339,7 @@ def main_check_all():
os.remove('coverage.xml') os.remove('coverage.xml')
messages = [msg for msg in messages messages = [msg for msg in messages
if msg.typ == MsgType.insufficent_coverage] if msg.typ == MsgType.insufficient_coverage]
if messages: if messages:
for msg in messages: for msg in messages:
print(msg.text) print(msg.text)

View File

@ -130,7 +130,7 @@ def test_untested(covtest):
""") """)
covtest.run() covtest.run()
expected = check_coverage.Message( expected = check_coverage.Message(
check_coverage.MsgType.insufficent_coverage, check_coverage.MsgType.insufficient_coverage,
'module.py', 'module.py',
'module.py has 75.00% line and 100.00% branch coverage!') 'module.py has 75.00% line and 100.00% branch coverage!')
assert covtest.check() == [expected] assert covtest.check() == [expected]
@ -159,7 +159,7 @@ def test_untested_floats(covtest):
""") """)
covtest.run() covtest.run()
expected = check_coverage.Message( expected = check_coverage.Message(
check_coverage.MsgType.insufficent_coverage, check_coverage.MsgType.insufficient_coverage,
'module.py', 'module.py',
'module.py has 58.33% line and 100.00% branch coverage!') 'module.py has 58.33% line and 100.00% branch coverage!')
assert covtest.check() == [expected] assert covtest.check() == [expected]
@ -178,7 +178,7 @@ def test_untested_branches(covtest):
""") """)
covtest.run() covtest.run()
expected = check_coverage.Message( expected = check_coverage.Message(
check_coverage.MsgType.insufficent_coverage, check_coverage.MsgType.insufficient_coverage,
'module.py', 'module.py',
'module.py has 100.00% line and 50.00% branch coverage!') 'module.py has 100.00% line and 50.00% branch coverage!')
assert covtest.check() == [expected] assert covtest.check() == [expected]

View File

@ -15,7 +15,7 @@ MANIFEST.json
------------- -------------
Here's an excerpt of the https://github.com/google/fonts/blob/master/apache/opensans/METADATA.json[MANIFEST.json] file Here's an excerpt of the https://github.com/google/fonts/blob/master/apache/opensans/METADATA.json[MANIFEST.json] file
from https://github.com/google/fonts/blob/master/apache/opensans/[the offical repository]: from https://github.com/google/fonts/blob/master/apache/opensans/[the official repository]:
---- ----
{ {
@ -252,4 +252,4 @@ The Apache 2.0 License text
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
---- ----