karma-runner / karma-ie-launcher

A Karma plugin. Launcher for Internet Explorer.
MIT License
59 stars 23 forks source link

Emulator Launchers don't work #23

Closed CGowdy closed 10 years ago

CGowdy commented 10 years ago

Not sure if i'm running this correctly but the customLauncher options don't appear to be working for me in IE11 or IE10. I expect IE11 to not work as well because microsoft is trying to get rid of it but I would figure this should work in IE10 at least.

this is my sample code in the Karma config

    // IE Version Config
    customLaunchers: {
        IE10: {
            base: 'IE',
            'X-UA-Compatible': 'IE=EmulateIE10'
        },
        IE9: {
            base: 'IE',
            'x-ua-compatible': 'IE=EmulateIE9'
        }
    },

    // start these browsers
    // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
    browsers: ['Chrome', 'Firefox', 'IE', 'IE9', 'IE10'],

This is IE 11 output image

This is IE10 output image

If I go into dev tools and change the version the Karma output changes accordingly. I very well may be missing something and i've tried editting some of the code myself to get something...but with no avail.

I'm using the latest version of karma and the karma-ie-launcher

sylvain-hamel commented 10 years ago

You will need karma 0.12.3 for this to work. See https://github.com/karma-runner/karma/blob/master/CHANGELOG.md.

CGowdy commented 10 years ago

I have version 0.12.3

sylvain-hamel commented 10 years ago

Ok, your screenshot show 0.12.2.

CGowdy commented 10 years ago

WHOA! check that out... You were absolutely right. Sorry if I sounded rude. I must've done an update on our server between posting the issue and your first comment. Thanks a BUNCH!

Gonna close this issue. But ask a question hoping I might get something...gonna look online as well.

When I try to emulate IE10 it doesn't work. Are the options for emulating IE 10 correct?

sylvain-hamel commented 10 years ago

@CGowdy no problem. I suspect the casing in X-UA-Compatible prevents it from working. Put it in lowercase like you did for IE9.

FYI: here at work we use it with IE8, IE9, IE10, IE11.

CGowdy commented 10 years ago

sigh I love it when things work when used correctly... Thanks a bunch @sylvain-hamel Now to get IE to actually run on our jenkins server.....

sylvain-hamel commented 10 years ago

;) you're welcome.