Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix: isFinite remplace isNumber
Browse files Browse the repository at this point in the history
Pour valider Saucelabs dans IE
  • Loading branch information
gtoubiana committed Jan 22, 2017
1 parent 8e90156 commit 2fd1994
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 29 deletions.
Binary file modified dist/acte-0.0.17-dist.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/acte.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/acte.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/js/script.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/private/functions/dateVersJour.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
const dateVersJour = (date) => {
let result;

if (date instanceof Date && Number.isInteger(date.getMonth())) {
if (date instanceof Date && isFinite(date.getMonth())) {
const jour = date.getDate();
const mois = parseInt(date.getMonth() + 1, 10);
const an = date.getFullYear();
Expand Down
2 changes: 1 addition & 1 deletion test/jasmine/lib/acte.js
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ if (!Array.prototype.reduce) {
function dateVersJour(date) {
var result = void 0;

if (date instanceof Date && Number.isInteger(date.getMonth())) {
if (date instanceof Date && isFinite(date.getMonth())) {
var jour = date.getDate();
var mois = parseInt(date.getMonth() + 1, 10);
var an = date.getFullYear();
Expand Down
38 changes: 14 additions & 24 deletions test/karma/karma.conf-ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ module.exports = function karma(config) {
// Check out https://saucelabs.com/platforms
const customLaunchers = {

sl_phone_ios: {
base: 'SauceLabs',
browserName: 'iphone',
platform: 'OS X 10.10',
version: '9.3',
},
sl_phone_android: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
deviceName: 'Android Emulator',
version: 'latest',
deviceType: 'phone',
},
sl_firefox_osx: {
base: 'SauceLabs',
browserName: 'firefox',
Expand Down Expand Up @@ -80,30 +94,6 @@ module.exports = function karma(config) {
version: '8',
platform: 'Windows 7',
},

// sl_iphone6_ios: {
// base: 'SauceLabs',
// browserName: 'Safari',
// appiumVersion: '1.5.3',
// deviceName: 'iPhone 6',
// deviceOrientation: 'portrait',
// platformName: 'iOS',
// platformVersion: '9.3',
// },
sl_phone_ios: {
base: 'SauceLabs',
browserName: 'iphone',
platform: 'OS X 10.10',
version: '9.3',
},
sl_phone_android: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
deviceName: 'Android Emulator',
version: 'latest',
deviceType: 'phone',
},
};
let sauceLabs;
let concurrency;
Expand Down

0 comments on commit 2fd1994

Please sign in to comment.