Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Slight refactoring and tests #1

Open
wants to merge 1 commit into from

1 participant

@napcs

Uses Jasmine and a spy to ensure the callback is only executed when
the browser is in compatibility mode. The logic for determining
compatibility mode is wrapped in a function so it can be stubbed out in
tests.

Feel free to use this, or discard it. I mostly did this for fun because I wanted to see how hard it would be to test jquery plugins. :)

@napcs napcs Adds tests and slight refactoring to the code
Uses Jasmine and a spy to ensure the callback is only executed when
the browser is in compatibility mode. The logic for determining
compatibility mode is wrapped in a function so it can be stubbed out in
tests.
5cc7ec4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 3, 2013
  1. @napcs

    Adds tests and slight refactoring to the code

    napcs authored
    Uses Jasmine and a spy to ensure the callback is only executed when
    the browser is in compatibility mode. The logic for determining
    compatibility mode is wrapped in a function so it can be stubbed out in
    tests.
Something went wrong with that request. Please try again.