Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/jasmine-jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
var value = css[prop]
// see issue #147 on gh
;if (value === 'auto' && $(actual).get(0).style[prop] === 'auto') continue
if ($(actual).css(prop) !== value) return { pass: false }
if ($(actual).css(prop) !== value) return {
pass: false
message: "Expected " +
actual.tagName.toLowerCase() + "." + actual.className.split(" ").join(".") + " " +
"to have " + prop + ":" + value + ", " +
"instead was " + prop + ":" + $(actual).css(prop)
}
}
return { pass: true }
}
Expand Down