Skip to content

Commit ab87149

Browse files
author
Caleb Ely
committed
Add test for Windows Phone IE 11
1 parent 7dd692a commit ab87149

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

test/test.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ casper.test.begin("when using IE10", 7, function(test) {
464464
});
465465
});
466466

467-
468467
casper.test.begin("when using IE10 on a Windows Phone", 7, function(test) {
469468
casper.userAgent(ua.ie.win_phone.v_10);
470469

@@ -490,6 +489,31 @@ casper.test.begin("when using IE10 on a Windows Phone", 7, function(test) {
490489
});
491490
});
492491

492+
casper.test.begin("when using IE11 on a Windows Phone", 7, function(test) {
493+
casper.userAgent(ua.ie.win_phone.v_11);
494+
495+
casper.start(test_url).then(function(){
496+
497+
var browser = casper.evaluate(function(){
498+
return $.browser;
499+
});
500+
501+
test.assert(browser.msie, "Browser should be IE");
502+
test.assertEquals(browser.name, ua.ie.name,"Browser name should be " + ua.ie.name);
503+
504+
test.assertEquals(browser.version, "11.0", "Version should be 11.0");
505+
test.assertEquals(browser.versionNumber, 11, "Version should be 11");
506+
507+
test.assert(browser.mobile, "Browser platform should be mobile");
508+
test.assert(browser["windows phone"], "Platform should be Windows Phone");
509+
510+
test.assertFalsy(browser.webkit, "Browser should NOT be WebKit based");
511+
512+
}).run(function(){
513+
test.done();
514+
});
515+
});
516+
493517
casper.test.begin("when using IE11", 7, function(test) {
494518
casper.userAgent(ua.ie.windows.v_11);
495519

0 commit comments

Comments
 (0)