Firefox will consistently throw an error when calling queryCommandState for insertUnorderedList and insertOrderedList commands when there's no selection or a contenteditable hasn't got focus. Error as follows:
scribe-plugin-toolbar uses this command to determine the state of the list buttons. The failed call would result in the list command buttons still remaining active when scribe loses focus.
Firefox will consistently throw an error when calling
queryCommandState
forinsertUnorderedList
andinsertOrderedList
commands when there's no selection or a contenteditable hasn't got focus. Error as follows:scribe-plugin-toolbar
uses this command to determine the state of the list buttons. The failed call would result in the list command buttons still remaining active when scribe loses focus.This issue has been recurring for a while in Firefox builds, so it makes sense to catch this until they get around to fixing it, see: https://bugzilla.mozilla.org/show_bug.cgi?id=562623
Fixes #208.
Also, added ability to pass an argument to
run-tests.sh
so you can specify which test specs to run.