Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Better error handling on general errors in the test window #4

Open
tbosch opened this issue Mar 2, 2013 · 0 comments
Open

Better error handling on general errors in the test window #4

tbosch opened this issue Mar 2, 2013 · 0 comments

Comments

@tbosch
Copy link
Contributor

tbosch commented Mar 2, 2013

Error event listener for general errors in iframes.

Something like this should do the trick (jasmine specific though...)

    var errors;
    uit.append(function (window, $) {
        window.onerror = function (event) {
            errors.push(event);
        };

    });
    beforeEach(function() {
        errors = [];
    });
    afterEach(function() {
        expect(errors).toEqual([]);
    });    
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant