Skip to content

Commit

Permalink
Update test to reflect newer Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgmer committed Oct 3, 2015
1 parent d9b340d commit 6787c19
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/specs/MediaQueryHelperSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ describe("Media Query Helper", function () {

// rough integration tests

it("should detect issue on WebKit", function (done) {
if (navigator.userAgent.indexOf('WebKit') < 0) {
it("should detect issue on Safari", function (done) {
if (navigator.userAgent.indexOf('WebKit') < 0 ||
navigator.userAgent.indexOf('Chrome') >= 0) {
done();
return;
}
Expand All @@ -18,8 +19,9 @@ describe("Media Query Helper", function () {
});
});

it("should not detect issue on Firefox", function (done) {
if (navigator.userAgent.indexOf('Firefox') < 0) {
it("should not detect issue on Firefox, newer Chromes", function (done) {
if (navigator.userAgent.indexOf('Firefox') < 0 &&
navigator.userAgent.indexOf('Chrome') < 0) {
done();
return;
}
Expand Down

0 comments on commit 6787c19

Please sign in to comment.