Select DOM elements with wildcard syntax - DOM lookups were being done with non-existent literal selectors, so it was returning empty lists. As assertions were to be made while iterating over the list of elements, nothing was actually being verified. - Common code has been centralized in the setup function. By declaring CSS selectors once, we minimize the odds of inadvertently using the wrong selector, as happened here. - Had these tests actually been iterating over a non-empty list, this would have thrown undefined exceptions. jQuery.each calls its handler with an index and an item/object as the arguments. However, the object is a DOM-object, not a jQuery-object. These tests break, as they had assumed the latter.
Name |
Last commit
|
Last update |
---|---|---|
.tx | Loading commit data... | |
cms | Loading commit data... | |
common | Loading commit data... | |
conf/locale | Loading commit data... | |
docs | Loading commit data... | |
i18n | Loading commit data... | |
jenkins | Loading commit data... | |
lms | Loading commit data... | |
pavelib | Loading commit data... | |
rakelib | Loading commit data... | |
requirements | Loading commit data... | |
scripts | Loading commit data... | |
test_root | Loading commit data... | |
vendor_extra/tinymce | Loading commit data... | |
.gitattributes | Loading commit data... | |
.gitignore | Loading commit data... | |
.jshintrc | Loading commit data... | |
.ruby-gemset | Loading commit data... | |
.ruby-version | Loading commit data... | |
AUTHORS | Loading commit data... | |
Brewfile | Loading commit data... | |
CHANGELOG.rst | Loading commit data... | |
CONTRIBUTING.rst | Loading commit data... | |
Gemfile | Loading commit data... | |
Gemfile.lock | Loading commit data... | |
LICENSE | Loading commit data... | |
README.md | Loading commit data... | |
manage.py | Loading commit data... | |
mongo_indexes.md | Loading commit data... | |
package.json | Loading commit data... | |
pavement.py | Loading commit data... | |
pylintrc | Loading commit data... | |
rakefile | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... |